@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

html {
    scroll-behavior: smooth;
}

:root {
    --marine: #d8a7b1 /* #d8a7b1 */;
    --sand: #f5ebe0 /* #f5ebe0*/;
    --dark: #4a3c3c /* #1b262c*/;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background: var(--sand);
    color: #d8a7b1;
}


.free-shipping {
    background-color: var(--sand); /* sfondo chiaro */
    overflow: hidden;
    white-space: nowrap;

}

.scrolling-text p {
    display: inline-block;
    padding-left: 100%; /* parte fuori dallo schermo a destra */
    animation: scroll-left 15s linear infinite;
    font-weight: bold;
    font-size: 1rem;
    color: #d8a7b1; /* colore testo */
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

/* Responsive */
@media (max-width: 600px) {
    .scrolling-text p {
        font-size: 0.9rem;
    }
}


/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: transparent;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background-color: #d8a7b1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo {
    height: 50px;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    height: 2px;
    width: 100%;
    background: #e8b4bc;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a:hover {
    color: #e8b4bc;
}

.nav-links a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Toggle hamburger */
.menu-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
    z-index: 1001;
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 40%;
        background: #d8a7b1;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem 2rem;
        gap: 1.5rem;
        transition: right 0.4s ease-in-out;
        z-index: 999;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding-bottom: 0.8rem;
    }

    .menu-toggle {
        display: block;
    }
}

/* Hero */
.hero {
    padding-top: 80px; /* o quanto è alta la navbar */
    position: relative;
    height: 90vh;
    background: url('https://www.equipemedicinaestetica.it/wp-content/uploads/2018/12/criolipolisi-1.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding-bottom: 100px; /* Spazio per non sovrapporre il bottone */
    overflow: hidden;
}


/* SOLO l’immagine cambia */
.hero-home {
    background-image: url('https://www.equipemedicinaestetica.it/wp-content/uploads/2018/12/criolipolisi-1.jpg');
}

.hero-noleggio {
    background-image: url('https://www.equipemedicinaestetica.it/wp-content/uploads/2018/12/criolipolisi-1.jpg');
}

.hero-acquisto {
    background-image: url('https://www.equipemedicinaestetica.it/wp-content/uploads/2018/12/criolipolisi-1.jpg');
}


.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(106, 27, 27, 0.5);
    opacity: 0.45; /* più basso = più trasparente */
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

/* Pulsante hero */
.btn {
    background: #d8a7b1;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(106, 27, 27, 0.4);
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 27, 27, 0.6);
}

/* Onda */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 1;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 120px;
    fill: var(--sand);
}

.hero-wave path {
    fill: var(--sand);
}

@media (max-width: 768px) {
    .hero {
        padding-bottom: 140px; /* più spazio sotto per evitare sovrapposizione */
    }

    .hero-wave svg {
        height: 160px; /* onda più grande su mobile */
    }
}

/* About */
#about {
    padding: 4rem 1rem;
    text-align: center;
    background: var(--sand);
}

#about h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--marine);
}

#about p {
    max-width: 800px;
    margin: 1rem auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about-list {
    list-style: none;
    padding: 0;
    max-width: 700px;
    margin: 1rem auto;
    text-align: left;
}

.about-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.05rem;
}

.about-list li::before {
    content: '✔';
    position: absolute;
    left: 0;
    color: var(--marine);
    font-size: 1rem;
}

.about-benefits {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
    text-align: center;
}

.benefit-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    flex: 1 1 250px;
}

.benefit-item img {
    width: 60px;
    height: 60px;
}

.benefit-item h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #d8a7b1;
}

.benefit-item p {
    margin: 0.3rem 0 0;
    color: #2c3e50;
    font-size: 0.95rem;
}

.benefit-item svg {
    width: 48px;
    height: 48px;
    flex-shrink: 0; /* evita che l'icona si schiacci dentro il flex */
}

/* Responsive */
@media (max-width: 768px) {
    .about-benefits {
        flex-direction: column;
        gap: 1.5rem;
    }
}


/* Sezione generale */
.soluzioni-section {
    padding: 4rem 2rem;
    background: var(--sand);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: #4a3c3c;
}

/* Ogni blocco soluzione */
.soluzione {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2rem;
    margin-bottom: 4rem;
}

/* Inversione: immagine a sinistra, testo a destra */
.soluzione.invertita {
    grid-template-areas: "image content";
}

.soluzione:not(.invertita) {
    grid-template-areas: "content image";
}

.soluzione-content {
    grid-area: content;
}

.soluzione-image {
    grid-area: image;
}

.soluzione-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    object-fit: cover;
}

/* Testo */
.soluzione-content h3 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
    color: #a68a8a;
}

.soluzione-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
}

/* Responsive */
@media (max-width: 768px) {
    .soluzione {
        display: block; /* forza impilamento verticale */
        text-align: center;
        margin-bottom: 3rem;
    }

    .soluzione-content {
        margin-top: 1rem;
    }

    .soluzione-image img {
        width: 100%;
        max-width: 500px; /* opzionale: per non farle diventare troppo grandi */
        margin: 0 auto;
        display: block;
    }
}

/* ====== SEZIONE ====== */
.showcase-section {
    background: var(--sand);
    padding: 80px 20px;
    text-align: center;
    overflow: hidden;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 10px;
    animation: fadeInDown 1s ease forwards;
}

.section-subtitle {
    color: #555;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto 50px;
    animation: fadeInUp 1.2s ease forwards;
}

/* ====== GRIGLIA ====== */
.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-content: center;
    align-items: stretch;
}

/* ====== CARD ====== */
.showcase-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    overflow: hidden;
    transform: translateY(30px);
    opacity: 0;
    animation: fadeUp 1s forwards;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.showcase-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 12px 35px rgba(0,0,0,0.12);
}

/* ====== IMMAGINI ====== */
.showcase-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10; /* proporzione armoniosa su desktop */
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* riempie il box senza distorcere */
    object-position: center top; /* puoi cambiare in 'center center' se necessario */
    transition: transform 0.8s ease;
}

.showcase-card:hover .showcase-image img {
    transform: scale(1.08);
}

/* ====== TESTO ====== */
.showcase-content {
    padding: 25px;
}

.showcase-content h3 {
    font-size: 1.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.showcase-content p {
    font-size: 1rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.6;
}

/* ====== BOTTONE ====== */
.btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b6b, #f06595);
    color: #fff;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn:hover {
    background: linear-gradient(135deg, #f06595, #ff6b6b);
    transform: scale(1.05);
}

/* ====== ANIMAZIONI ====== */
@keyframes fadeInDown {
    0% {opacity: 0; transform: translateY(-30px);}
    100% {opacity: 1; transform: translateY(0);}
}

@keyframes fadeInUp {
    0% {opacity: 0; transform: translateY(30px);}
    100% {opacity: 1; transform: translateY(0);}
}

@keyframes fadeUp {
    0% {opacity: 0; transform: translateY(40px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* ====== RESPONSIVE ====== */
@media (max-width: 992px) {
    .showcase-image {
        aspect-ratio: 4 / 3; /* proporzione più alta su tablet */
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 1.8rem;
    }
    .showcase-content h3 {
        font-size: 1.3rem;
    }
    .showcase-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .showcase-image {
        aspect-ratio: 1 / 1; /* formato quadrato su mobile */
    }
}



.elettromed-section {
    background: var(--sand);
    padding: 80px 20px;
    overflow: hidden;
}

.elettromed-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    animation: fadeIn 1s ease forwards;
}

/* ===== IMMAGINE ===== */
.elettromed-image img {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

.elettromed-image img:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
}

/* ===== CONTENUTO ===== */
.elettromed-content {
    text-align: left;
    animation: fadeUp 1.2s ease forwards;
}

.elettromed-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.elettromed-content h3 {
    margin-top: 25px;
    font-size: 1.2rem;
    color: #d63384;
}

.elettromed-content p {
    color: #555;
    line-height: 1.7;
    margin-bottom: 15px;
}

.elettromed-content ul {
    list-style: none;
    margin: 10px 0 20px 0;
    padding-left: 0;
}

.elettromed-content li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
    line-height: 1.6;
    color: #444;
}

.elettromed-content li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #ff6b6b;
    font-weight: bold;
}

/* ===== ANIMAZIONI ===== */
@keyframes fadeIn {
    0% {opacity: 0; transform: scale(0.95);}
    100% {opacity: 1; transform: scale(1);}
}

@keyframes fadeUp {
    0% {opacity: 0; transform: translateY(40px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .elettromed-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .elettromed-content {
        text-align: center;
    }
    .elettromed-image {
        order: -1;
    }
    .elettromed-content h3 {
        color: #ff6b6b;
    }
}




.gallery-section {
    padding: 4rem 2rem;
    background: var(--sand);
    text-align: center;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #4a3c3c;
}

.slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden; /* nasconde le slide fuori dal container */
}

.slides-wrapper {
    display: flex;
    transition: transform 0.5s ease; /* scorrimento fluido */
}

.slide {
    min-width: 100%; /* ogni slide occupa tutta la larghezza */
    box-sizing: border-box;
}

.slide img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin: 0 auto;
    position: relative;
}

/* Contenitore testo */
.slide-text {
    margin-top: 1rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: left;
}

/* Pulsanti frecce */
.slider-btn {
    position: absolute;
    top: 35%; /* sempre centrati sull’immagine */
    transform: translateY(-50%);
    background: #4a3c3c;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.slider-btn.prev { left: 15px; }
.slider-btn.next { right: 15px; }

.slider-btn:hover { background: #a68a8a; }

/* Tablet */
@media (max-width: 992px) {
    .slide img { max-height: 350px; }
    .slider-btn {
        width: 34px;
        height: 34px;
        font-size: 1.2rem;
    }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
}

/* Mobile */
@media (max-width: 600px) {
    .slide img { max-height: 260px; }
    .slider-btn {
        top: 28%; /* ancora più in alto su mobile */
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    .slider-btn.prev { left: 6px; }
    .slider-btn.next { right: 6px; }
    .slide-text { font-size: 0.9rem; }
}

/* Reviews Section */
.reviews-section {
    background-color: var(--sand); /* bianco latte */
    padding: 4rem 1.5rem;
    text-align: center;
}

.reviews-section h2 {
    font-size: 2rem;
    color: #d8a7b1; /* oro rosato */
    margin-bottom: 2.5rem;
}

.reviews-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.review-card {
    background-color: #d8a7b1; /* rosa cipria */
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.review-text {
    font-size: 1rem;
    color: #ffffff; /* grigio tortora */
    margin-bottom: 1rem;
    font-style: italic;
}

.review-stars {
    color: #d59b13; /* oro rosato */
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: bold;
    color: #f8f9fa;
    font-size: 0.9rem;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .reviews-section h2 {
        font-size: 1.6rem;
    }

    .review-card {
        padding: 1.2rem;
    }
}


/* FAQ */
.faq-section {
    padding: 60px 20px;
    background: var(--sand);
    text-align: center;
}
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.faq-item {
    border-bottom: 1px solid #ddd;
    margin-bottom: 15px;
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
}
.faq-answer {
    display: none;
    padding: 0 15px 15px;
    font-size: 0.95rem;
    color: #1b262c;
}

/* Counter */
.counter-section {
    padding: 60px 20px;
    text-align: center;
    background: var(--sand);
}
.counter-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}
.counter-box {
    font-size: 1.2rem;
    font-weight: 600;
}
.counter-box .counter {
    font-size: 2.5rem;
    color: #d8a7b1;
    display: block;
}

/* Sezione Eventi */
.eventi-section {
    padding: 60px 0;
    text-align: center;
}
.eventi-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #2c3e50;
}


#form-eventi {
    scroll-margin-top: 100px; /* adatta al tuo header */
}


/*Eventi */
.eventi-section {
    padding: 60px 0;
    text-align: center;
}
.eventi-intro {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #555;
}


#form-eventi {
    scroll-margin-top: 100px; /* adatta al tuo header */
}

/* Blocco evento */
.evento-block {
    position: relative;
    height: 350px; /* leggermente più alto per effetto immersivo */
    background-size: cover;
    background-position: center;
    margin: 0;              /* niente spazio tra i blocchi */
    border-radius: 0;       /* niente bordi arrotondati */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.evento-block::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45); /* overlay scuro */
    pointer-events: none; /* ✅ non blocca più i click */
}

.evento-overlay {
    position: relative;
    z-index: 2; /* ✅ sopra l’overlay */
    color: #fff;
    text-align: center;
    padding: 20px;
    max-width: 700px;
    pointer-events: auto; /* ✅ bottoni cliccabili */
}

.evento-overlay h3 {
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: #fff;
}

.evento-overlay p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #fff;
}

/* Stile pulsanti negli eventi */
.evento-overlay .btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 25px;
    background-color: #800020; /* bordeaux */
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.evento-overlay .btn:hover {
    background-color: #b8860b; /* oro scuro */
    color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .evento-block {
        height: 220px;
    }
    .evento-overlay h3 {
        font-size: 1.5rem;
    }
    .evento-overlay p {
        font-size: 0.95rem;
    }
}



.caption {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--marine); /* o colore che preferisci */
    text-align: center;
    font-weight: 500;
}

.cta {
    padding: 3rem 1rem;
    background-color: var(--sand);
    color: #d8a7b1; /* colore testo - blu mare */
    font-family: 'Montserrat', sans-serif;
}

.cta h2 {
    text-align: center;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 2rem;
}

#contact h2 {
    color: #b69393;
    text-align: center;
    font-weight: 600;
    margin-bottom: 2rem;
    font-size: 2rem;
}

.contact-container {
    display: flex;
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.contact-form {
    flex: 1 1 350px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.8rem 1rem;
    border: 2px solid #d8a7b1;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: none;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #d8a7b1;
    outline: none;
}

.contact-form button {
    background-color: #d8a7b1;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #005f8a;
}

.map-wrapper {
    flex: 1 1 350px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    min-height: 300px;
}

.map-wrapper iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: 0;
    display: block;
    border-radius: 12px;
}

/* Responsive */

@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-form,
    .map-wrapper {
        flex: 1 1 100%;
    }
}

.social-section {
    padding: 3rem 1rem;
    background-color: var(--sand); /* un blu scuro coerente con tema mare */
    color: #005fa3;
    text-align: center;
}

.social-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap; /* consente di andare a capo su mobile */
}

.social-icons a img {
    width: 48px;
    height: 48px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.4));
}

.social-icons a:hover img {
    transform: scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(255, 255, 255, 0.8));
}

/* Responsive */
@media (max-width: 600px) {
    .social-icons {
        gap: 1.5rem; /* meno spazio tra le icone */
    }
    .social-icons a img {
        width: 40px;
        height: 40px;
    }
}


.whatsapp {
    position: fixed;
    bottom: 20px;  /* distanza dal fondo */
    left: 20px;    /* distanza dal bordo sinistro */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #25D366; /* verde WhatsApp */
    border-radius: 50%;        /* rotondo */
    width: 60px;               /* larghezza bottone */
    height: 60px;              /* altezza bottone */
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.whatsapp img {
    width: 35px;  /* dimensione logo */
    height: 35px;
}

.whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}

/* Adattamento per schermi piccoli */
@media (max-width: 480px) {
    .whatsapp {
        width: 50px;
        height: 50px;
    }

    .whatsapp img {
        width: 28px;
        height: 28px;
    }
}



/* Footer */
footer {
    background: var(--sand);
    color: #d8a7b1  ;
    text-align: center;
    padding: 2rem 1rem;
}

footer a {
    color: #d8a7b1;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) translateY(100%);
    background-color: #fff;
    color: #00303f;
    padding: 1rem 2rem;
    font-size: 1rem;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.15);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 480px;
    width: calc(100% - 40px);
    opacity: 0;
    gap: 1rem;
    z-index: 9999;
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: auto;
}

#cookie-banner p {
    margin: 0;
    font-weight: 500;
    flex: 1;
    color: #00303f;
}

#cookie-banner a {
    color: #0077cc;
    text-decoration: underline;
}

#cookie-banner button {
    background-color: #0077cc;
    border: none;
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    flex-shrink: 0;
    transition: background-color 0.3s ease;
}

#cookie-banner button:hover {
    background-color: #005fa3;
}

/* Classe per far comparire il banner con fade-in + slide-up */
#cookie-banner.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.privacy-consent {
    display: block;
    font-size: 0.9rem;
    margin: 1rem 0;
    color: #00303f;
}

.privacy-consent input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.privacy-consent a {
    color: white;
    text-decoration: underline;
}








/* ================= HERO ================= */
.hero-tech {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: linear-gradient(270deg, #a68a8a, #4a3c3c, #e8b4bc, #f5ebe0);
    background-size: 800% 800%;
    animation: gradientFlow 20s ease infinite;
    color: white;
    padding: 0 2rem;
}

@keyframes gradientFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-tech h1 {
    font-size: 3rem;
    backdrop-filter: blur(12px);
    background: rgba(255,255,255,0.1);
    padding: 1rem 2rem;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.hero-tech p {
    margin-top: 1rem;
    font-size: 1.3rem;
    color: #fefefe;
}

/* ================= TECH WOW ================= */
.tech-wow {
    padding: 6rem 5%;
    background: #f9f9f9;
    text-align: center;
}

.tech-wow h2 {
    font-size: 2.8rem;
    margin-bottom: 4rem;
    color: #4a3c3c;
    position: relative;
}

.tech-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2rem;
}

.tech-carousel::-webkit-scrollbar {
    height: 8px;
}

.tech-carousel::-webkit-scrollbar-thumb {
    background: #a68a8a;
    border-radius: 4px;
}

.tech-slide {
    flex: 0 0 30%;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    scroll-snap-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.tech-slide:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.tech-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
}

.tech-info {
    padding: 1.5rem;
}

.tech-info h3 {
    font-size: 1.5rem;
    color: #a68a8a;
    margin-bottom: 1rem;
}

.tech-info p {
    font-size: 1rem;
    color: #333;
}

/* ================= TIMELINE ================= */
.timeline {
    position: relative;
    padding: 6rem 5%;
    max-width: 1200px;
    margin: auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    background: #a68a8a;
    height: 100%;
}

.timeline-item {
    position: relative;
    width: 50%;
    padding: 2rem 3rem;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -12px;
    width: 20px;
    height: 20px;
    background: #e8b4bc;
    border: 3px solid #4a3c3c;
    border-radius: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
    right: auto;
}

.timeline-item h4 {
    margin-bottom: 0.5rem;
    color: #4a3c3c;
}

.timeline-item p {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
    .tech-slide { flex: 0 0 45%; }
    .timeline-item { width: 100%; padding-left: 3rem; text-align: left !important; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-item::after { left: 0; right: auto; }
}

@media (max-width: 768px) {
    .tech-slide { flex: 0 0 70%; }
}

@media (max-width: 480px) {
    .hero-tech h1 { font-size: 2rem; }
    .hero-tech p { font-size: 1rem; }
    .tech-wow h2 { font-size: 2rem; margin-bottom: 2rem; }
    .tech-info h3 { font-size: 1.2rem; }
}



/* Shop Section */
.shop-section {
    text-align: center;
    padding: 60px 20px;
}

.shop-section h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.shop-intro {
    color: #555;
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

/* ===============================
   GRID PRODOTTI
=============================== */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: start; /* Ogni card cresce solo della sua altezza */
}

/* ===============================
   CARD PRODOTTO
=============================== */
.product-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===============================
   IMMAGINI
=============================== */
.product-card img {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: contain;
    background: #fff;
    padding: 10px;
    display: block;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

/* ===============================
   INFO PRODOTTO
=============================== */
.product-info {
    padding: 20px;
}

.product-info h3 {
    font-size: 1.3rem;
    margin-bottom: 8px;
    color: #222;
}

.product-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 12px;
}

/* ===============================
   DESCRIZIONE ESTESA ("Leggi di più")
=============================== */
.product-full-desc {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.5s ease;
    line-height: 1.5;
    color: #555;
}

.product-full-desc.active {
    opacity: 1;
    max-height: 500px;
}

.product-full-desc ul {
    list-style: none;
    padding-left: 0;
    margin: 8px 0;
}

.product-full-desc li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.product-full-desc li::before {
    content: '✨';
    position: absolute;
    left: 0;
    color: #ff6b6b;
}

/* Pulsante "Leggi di più" */
.show-more-btn {
    background: none;
    border: none;
    color: #ff6b6b;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin: 5px 0 10px 0;
    display: inline-block;
    transition: color 0.3s ease;
}

.show-more-btn:hover {
    color: #d45252;
}

/* ===============================
   PREZZO
=============================== */
.price {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    color: #a8741a;
    margin-bottom: 15px;
}

/* ===============================
   BOTTONE PRINCIPALE (Ordina / Noleggio)
=============================== */
.product-card .btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    background: #a8741a;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease;
}

.product-card .btn:hover {
    background: #8b6216;
}

/* ===============================
   FORM A COMPARSA (Richiedi preventivo)
=============================== */
.product-form {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.6s ease;
    margin-top: 10px;
    background: rgba(250, 250, 250, 0.95);
    border-radius: 12px;
    padding: 0 15px;
    box-shadow: 0 0 0 rgba(0,0,0,0);
}

.product-form.active {
    max-height: 420px;
    opacity: 1;
    padding: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

/* Campi form */
.product-form input,
.product-form textarea {
    width: 100%;
    padding: 10px 15px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 10px;
    background: #fff;
}

.product-form input:focus,
.product-form textarea:focus {
    border-color: #a8741a;
    box-shadow: 0 0 6px rgba(168,116,26,0.2);
    outline: none;
}

.product-form textarea {
    resize: vertical;
}

/* Bottone apertura form */
.toggle-form-btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 25px;
    background: #a8741a;
    color: #fff;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.toggle-form-btn:hover {
    background: #8b6216;
    transform: translateY(-2px);
}

/* ===============================
   RESPONSIVE
=============================== */
@media (max-width: 992px) {
    .product-card img {
        max-height: 280px;
    }
}

@media (max-width: 600px) {
    .product-card img {
        max-height: 220px;
    }
}