/* Base Resets and Variables */
:root {
    --primary-color: #215B6E;
    --text-light: #FCFCFC;
    --text-dark: #030303;
    --bg-page: #FFFFFF;
    --font-main: 'Hind Vadodara', sans-serif;
}

html {
    scroll-behavior: smooth;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
    /* Previene scroll orizzontale */
    font-family: var(--font-main);
    background-color: var(--bg-page);
    color: #333;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header Container */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 37px;
    padding-bottom: 37px;
}

@media (min-width: 992px) {
    .header.is-scroll-nav {
        position: fixed;
        top: 0;
        left: 0;
        z-index: 2000;
        padding-top: 20px;
        padding-bottom: 20px;
        transform: translateY(-140%);
        transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
        pointer-events: none;
    }

    .header.is-scroll-nav.is-preparing {
        transition: none;
        transform: translateY(-140%);
    }

    .header.is-scroll-nav.is-visible {
        transform: translateY(0);
        pointer-events: auto;
    }
}

/* =============================================
   MOBILE TOPBAR + FULLSCREEN MENU
   (hidden on desktop, shown on mobile)
   ============================================= */

.mobile-topbar {
    display: none;
}

.mobile-menu-overlay {
    display: none;
}

/* Navbar Box */
.navbar {
    width: 1280px;
    height: 118px;
    background-color: var(--primary-color);
    box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    border: 1px solid rgba(251, 251, 251, 0.15);

    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 45px;
    gap: 20px;

    /* Responsive fallback */
    max-width: calc(100% - 40px);
    margin: 0 auto;
}



/* Logo Area */
.navbar-brand {
    display: flex;
    align-items: center;
}

.logo {
    height: 84px;
    width: auto;
    display: block;
}

/* Navigation Links */
.nav-link {
    color: var(--text-light);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
    transform: none;
    text-decoration: underline;
    text-underline-offset: 6px;
    text-decoration-thickness: 2px;
}

.nav-link.active {
    opacity: 0.8;
    transform: none;
    /* No underline when just active on the page */
}

/* Call to Action Button */
.nav-btn {
    color: var(--text-light);
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    padding: 0 57px;
    height: 56px;
    border-radius: 50px;
    border: 2px solid var(--text-light);
    transition: all 0.3s ease;

    /* Flexbox to perfectly center the text */
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}






/* --- UI COMPONENTS --- */

/* Primary Button (Variante principale usata nel sito) */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 19px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 100px;
    /* Pill shape */
    padding: 6px 6px 6px 35px;
    /* Spazio extra a sinistra, stretto a destra per avvolgere il cerchio */
    gap: 20px;
    /* Spazio tra testo e icona */
    transition: all 0.5s ease;
    /* Transizione rallentata */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    /* Ombra leggera di base */
    border: 2px solid var(--primary-color);
    /* Mantiene estetica stabile nell'inversione colore */
}

.btn-primary:hover {
    background-color: var(--text-light);
    color: var(--primary-color);
}

/* Contenitore con Maschera Circolare per l'Icona */
.btn-icon {
    width: 42px;
    height: 41px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--text-light);
    color: var(--primary-color);
    overflow: hidden;
    /* Taglia l'eccedenza delle frecce */
    position: relative;
    flex-shrink: 0;
    transition: all 0.5s ease;
    /* Inversione del cerchio rallentata */
}

/* Inversione colori del cerchio */
.btn-primary:hover .btn-icon {
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* Animazione Frecce SVG */
.arrow-icon {
    position: absolute;
    transition: transform 0.6s ease;
    /* Velocità freccia rallentata */
}

.arrow-main {
    transform: translateX(0);
}

.arrow-hover {
    transform: translateX(-42px);
    /* Parte nascosta a sinistra */
}

.btn-primary:hover .arrow-main {
    transform: translateX(42px);
    /* Scorre e scompare a destra */
}

.btn-primary:hover .arrow-hover {
    transform: translateX(0);
    /* Entra da sinistra */
}

/* --- HERO SECTION --- */

.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 1280px;
    margin: 80px auto;
    padding: 0 45px;
    align-items: center;
}

.hero-content {
    grid-column: 1; 
    grid-row: 1;
    position: relative;
    z-index: 10;
}

.hero-content .btn-primary {
    /* Rimosso pointer-events hack */
}

.hero-title {
    font-size: 57px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 50px;
    max-width: 680px;
}

.hero-visual {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    justify-content: flex-start;
}

/* Contenitore fluido come perno per l'ancoraggio */
.hero-image-container {
    position: relative;
    width: 100%;
    max-width: 505px;
    aspect-ratio: 660 / 480;
}

/* Wrapper ritagliato a pillola */
.hero-image-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 500px;
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Grafica ancorata all'immagine (angolo in basso a destra, sopra la curva) */
.hero-graphic {
    position: absolute;
    bottom: 2%;
    /* Alzato leggermente per compensare la dimensione minore */
    right: 14%;
    /* Spostato internamente per rimanere a contatto con la curva */
    width: 16%;
    /* Ingrandito del 15% (da 14% a 16%) */
    height: auto;
    z-index: 3;
    pointer-events: none;
}

@keyframes homeFadeUp {
    from {
        opacity: 0;
        transform: translateY(26px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeFadeLeft {
    from {
        opacity: 0;
        transform: translateX(34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes homeFadeDown {
    from {
        opacity: 0;
        transform: translateY(-22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .home-page .hero-content,
    .home-page .hero-visual,
    .home-page .navbar {
        opacity: 0;
        animation-duration: 2s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
        animation-fill-mode: forwards;
        will-change: opacity, transform;
    }

    .home-page .hero-content {
        animation-name: homeFadeUp;
        animation-delay: 0.2s;
    }

    .home-page .hero-visual {
        animation-name: homeFadeLeft;
        animation-delay: 0.6s;
    }

    .home-page .navbar {
        animation-name: homeFadeDown;
        animation-delay: 1.5s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .hero-content,
    .home-page .hero-visual,
    .home-page .navbar {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

/* --- ABOUT SECTION (Elisa Scotti) --- */

.about {
    position: relative;
    padding: 120px 45px;
    max-width: 1440px;
    margin: 0 auto;
    overflow: visible;
    /* La linea svg potrebbe fuoriuscire ampiamente ai lati */
}

.about-line-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: auto;
    z-index: 0;
    pointer-events: none;
    /* Maschera il contenuto dei figli per il reveal animato */
    overflow: hidden;
}

.about-bg-line {
    display: block;
    width: 100%;
    height: auto;
    pointer-events: none;
}

/* Maschera bianca che copre la linea e scivola via verso destra */
.about-line-mask {
    position: absolute;
    inset: 0;
    background: var(--bg-page);
    pointer-events: none;
    /* Di default copre tutta la linea */
    transform: translateX(0);
}

.about::after {
    display: none; /* Non più usato: la maschera ora è .about-line-mask */
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Il contenuto sale sopra la linea SVG di sfondo */
}

/* Lato Sinistro - Composizione Immagini */
.about-visual {
    position: relative;
    width: 410px;
    /* Dimensioni precise ricalcolate da Figma */
    height: 430px;
    margin: 0 auto;
}

.about-img-wrapper {
    position: absolute;
}

.about-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

/* Foto in basso a sinistra (Studio) */
.img-studio {
    width: 192px;
    /* Ridotto del ~25% tornando al valore originale di Figma */
    bottom: 0;
    left: 0;
    z-index: 1;
}

/* Foto in alto a destra (Elisa) */
.img-elisa {
    width: 194px;
    /* Ridotto tornando all'esatto box Figma */
    top: 0;
    right: 0;
    z-index: 2;
}

/* Lato Destro - Testi */
.about-content {
    max-width: 550px;
}

.about-title {
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 1.2;
    color: #030303;
    margin-bottom: 30px;
}

.about-text {
    font-family: 'Hind Vadodara', sans-serif;
    font-size: 19px;
    line-height: 1.5;
    /* Coincide con il 28.5px in Figma: 19 * 1.5 = 28.5 */
    color: #030303;
}

.about-text strong {
    font-weight: 700;
}

@keyframes aboutStudioUp {
    from {
        opacity: 0;
        transform: translateY(34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutElisaDown {
    from {
        opacity: 0;
        transform: translateY(-34px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes aboutContentLeft {
    from {
        opacity: 0;
        transform: translateX(42px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes aboutLineReveal {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(100%);
    }
}

@media (min-width: 992px) {
    /* La maschera rimane ferma di default (copre la linea) */
    .home-page .about-line-mask {
        transform: translateX(0);
    }

    .home-page .img-studio,
    .home-page .img-elisa,
    .home-page .about-content {
        opacity: 0;
        will-change: opacity, transform;
    }

    /* Sequenza uniforme aggiornata:
       Foto:    0.1s
       Testo:   0.5s
       Linea:   1.1s (parte poco dopo il testo) -> durata 2.4s per un effetto scrittura morbido */
    .home-page .about.is-visible .about-line-mask {
        animation: aboutLineReveal 2.4s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
    }

    .home-page .about.is-visible .img-studio {
        animation: aboutStudioUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    }

    .home-page .about.is-visible .img-elisa {
        animation: aboutElisaDown 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    }

    .home-page .about.is-visible .about-content {
        animation: aboutContentLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    }
}


@media (prefers-reduced-motion: reduce) {
    .home-page .about-line-mask {
        display: none; /* Mostra subito la linea senza animazione */
    }

    .home-page .img-studio,
    .home-page .img-elisa,
    .home-page .about-content {
        opacity: 1;
        animation: none;
        transform: none;
    }
}



/* --- SERVICES SECTION --- */
.services {
    padding: 120px 0;
    background-color: var(--bg-page);
    position: relative;
}

.services-title {
    text-align: center;
    font-size: 60px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    margin-bottom: 60px;
    max-width: 1270px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 45px;
}

.services-slider-wrapper {
    position: relative;
    width: 100%;
}

.services-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    /* Nascondi la fastidiosa barra di scorrimento di sistema per un layout pulito */
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.services-track::-webkit-scrollbar {
    display: none;
    /* Safari/Chrome */
}

.service-card {
    flex: 0 0 373px;
    max-width: 85vw;
    min-width: 320px;
    background-color: #F7F7F7;
    border-radius: 20px;
    padding: 45px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: center;
    /* Ferma le card sempre al centro durante lo scroll umano */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:first-child {
    margin-left: max(45px, calc((100vw - 1180px) / 2));
}

.service-card:last-child {
    margin-right: max(45px, calc((100vw - 1180px) / 2));
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.06);
}

.service-icon {
    width: 60px;
    height: 60px;
    object-fit: contain;
    margin-bottom: 25px;
}

.service-name {
    font-size: 32px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.25;
}

.service-desc {
    font-size: 19px;
    font-family: 'Hind Vadodara', sans-serif;
    line-height: 1.5;
    color: #030303;
    text-align: center;
    margin-bottom: 40px;
    flex-grow: 1;
    /* Spinge automaticamente il pulsante CTA verso il basso */
}

.service-desc strong {
    font-weight: 700;
}

/* Pulsanti per pilotare lo Slider Orizzontale */
.slider-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 10px rgba(33, 91, 110, 0.2);
}

.slider-btn:hover {
    box-shadow: 0 6px 15px rgba(33, 91, 110, 0.35);
    transform: translateY(-50%) scale(1.05);
    /* Enfatizza l'hover */
}

/* Gestito attivamente da JS, fa scomparire gradulmente il frame disabilitato */
.slider-btn.disabled {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%) scale(0.9);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* Dots Visivi Inferiori */
.slider-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}

.slider-pagination .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #D9D9D9;
    transition: background-color 0.3s ease;
}

.slider-pagination .dot.active {
    background-color: var(--primary-color);
}

.services-pagination {
    display: none;
}

@keyframes serviceCardDown {
    from {
        opacity: 0;
        transform: translateY(-42px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .home-page .service-card {
        opacity: 0;
        will-change: opacity, transform;
    }

    .home-page .services.is-visible .service-card {
        animation: serviceCardDown 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .home-page .services.is-visible .service-card:nth-child(1) {
        animation-delay: 0.15s;
    }

    .home-page .services.is-visible .service-card:nth-child(2) {
        animation-delay: 0.35s;
    }

    .home-page .services.is-visible .service-card:nth-child(3) {
        animation-delay: 0.55s;
    }

    .home-page .services.is-visible .service-card:nth-child(4) {
        animation-delay: 0.75s;
    }

    .home-page .services.is-visible .service-card:nth-child(5) {
        animation-delay: 0.95s;
    }

    .home-page .services.is-visible .service-card:nth-child(6) {
        animation-delay: 1.15s;
    }

    .home-page .services.is-visible .service-card:nth-child(7) {
        animation-delay: 1.35s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .service-card {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

.testimonial-card-pagination {
    display: none;
}

#testimonialPrevBtn,
#testimonialNextBtn {
    top: 50%;
}

#testimonialPrevBtn.disabled,
#testimonialNextBtn.disabled {
    opacity: 0.35;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials {
    padding: 120px 0;
    background-color: var(--bg-page);
    position: relative;
}

.testimonials-title {
    text-align: center;
    font-size: 60px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    margin-bottom: 50px;
    max-width: 1270px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 45px;
}

.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
}

.testimonials-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding: 20px 0;
    -ms-overflow-style: none;
    /* IE/Edge */
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-track::-webkit-scrollbar {
    display: none;
    /* Safari/chrome */
}

.testimonial-card {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 0 max(80px, calc((100vw - 1180px) / 2 + 80px));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
}

.testimonial-card .stars {
    display: flex;
    gap: 8px;
    margin-bottom: 40px;
}

.testimonial-text {
    font-size: 32px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 30px;
    max-width: 1000px;
}

.testimonial-author {
    font-size: 24px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    opacity: 0.6;
    text-align: center;
}

/* --- FAQ SECTION --- */
.faq {
    padding: 100px 45px;
    background-color: var(--bg-page);
    max-width: 1440px;
    margin: 0 auto;
}

.faq-container {
    max-width: 1030px;
    /* Dalla reference figma i box sono molto larghi, centriamo nella pagina. */
    margin: 0 auto;
}

.faq-title {
    font-size: 44px;
    /* Un pelo più compatto rispetto ai Main title delle altre sezioni */
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    margin-bottom: 30px;
    text-align: left;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /* Spazio tra un accordian e l'altro */
}

.faq-item {
    background-color: #F7F7F7;
    border-radius: 20px;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 35px 45px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 22px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
}

.faq-icon {
    min-width: 24px;
    /* Al momento del click ruota di 45 gradi diventando dinamicamente una X al posto del più + */
    transition: transform 0.4s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease-in-out;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
}

.faq-answer p {
    overflow: hidden;
    margin: 0;
    padding: 0 45px 0 45px;
    font-size: 19px;
    font-family: 'Hind Vadodara', sans-serif;
    line-height: 1.5;
    color: #030303;
    opacity: 0;
    /* In chiusura il testo sfuma mentre la cella si contrae */
    transition: padding 0.4s ease-in-out, opacity 0.2s ease-out;
}

.faq-item.active .faq-answer p {
    padding: 0 45px 35px 45px;
    opacity: 1;
    /* In apertura la cella si espande e poi il testo appare morbidamente */
    transition: padding 0.4s ease-in-out, opacity 0.4s ease-in-out 0.1s;
}

@keyframes faqItemUp {
    from {
        opacity: 0;
        transform: translateY(42px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .home-page .faq-item {
        opacity: 0;
        will-change: opacity, transform;
    }

    .home-page .faq.is-visible .faq-item {
        animation: faqItemUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .home-page .faq.is-visible .faq-item:nth-child(1) {
        animation-delay: 0.15s;
    }

    .home-page .faq.is-visible .faq-item:nth-child(2) {
        animation-delay: 0.35s;
    }

    .home-page .faq.is-visible .faq-item:nth-child(3) {
        animation-delay: 0.55s;
    }

    .home-page .faq.is-visible .faq-item:nth-child(4) {
        animation-delay: 0.75s;
    }

    .home-page .faq.is-visible .faq-item:nth-child(5) {
        animation-delay: 0.95s;
    }

    .home-page .faq.is-visible .faq-item:nth-child(6) {
        animation-delay: 1.15s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .faq-item {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

/* --- CONTACT SECTION --- */
.contact {
    padding: 120px 45px;
    background-color: var(--bg-page);
    position: relative;
    max-width: 1440px;
    margin: 0 auto;
}

.contact-container {
    max-width: 1160px;
    margin: 0 auto;
}

.contact-title {
    font-size: 60px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    margin-bottom: 60px;
    text-align: left;
}

.contact-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 30px;
}

.contact-info-card {
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
    margin: 0 auto;
}

.contact-icon {
    width: 45px;
    height: 45px;
    margin-bottom: 20px;
    display: block;
    object-fit: contain;
}

.contact-info-title {
    font-size: 32px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    margin-bottom: 10px;
}

.contact-info-text {
    font-size: 19px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 400;
    color: #030303;
    line-height: 1.4;
}

/* Contact Form Box Layout */
.contact-form-box {
    background-color: #F7F7F7;
    border-radius: 20px;
    padding: 60px;
    border: 1px solid rgba(225, 225, 225, 0.5);
    box-shadow: 0px 10px 20px rgba(163, 163, 163, 0.1);
    scroll-margin-top: 100px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 35px;
    /* Distanza verticale tra righe input e textArea */
}

.form-row {
    display: flex;
    gap: 40px;
    /* Distanza tra Nome e Email in Desktop */
}

.form-group.half {
    flex: 1;
}

.form-group label {
    display: block;
    font-size: 24px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #030303;
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background-color: transparent;
    border: 1px solid #797979;
    border-radius: 20px;
    font-size: 18px;
    font-family: 'Kumbh Sans', sans-serif;
    color: #030303;
    padding: 15px 25px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    /* Assicurarti che il Padding non strabordi disattivandolo col box-model se necessario, ma i border li abbiamo gestiti dal layer reset */
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(33, 91, 110, 0.5);
    /* Effetto glow sfuocato reale */
    outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #030303;
    opacity: 0.7;
    /* Colore richiesto nel design System. */
}

.form-group input {
    height: 50px;
}

.form-group textarea {
    height: 150px;
    resize: none;
    /* Impedisci resize del box che rovina la griglia */
}

/* Custom Checkbox Design fedele a Figma */
.form-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.custom-checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-wrapper input[type="checkbox"] {
    /* Nascondi il brutto check nativo dei vari browser */
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.custom-checkbox {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    flex: 0 0 24px;
    border: 1px solid #797979;
    border-radius: 8px;
    background-color: transparent;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.custom-checkbox-wrapper input[type="checkbox"]:checked~.custom-checkbox {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Creare la spunta '✓' col CSS per una resa vettoriale perfetta */
.custom-checkbox::after {
    content: "";
    position: absolute;
    display: none;
}

.custom-checkbox-wrapper input[type="checkbox"]:checked~.custom-checkbox::after {
    display: block;
}

.custom-checkbox-wrapper .custom-checkbox::after {
    left: 8px;
    top: 4px;
    width: 5px;
    height: 10px;
    border: solid #FCFCFC;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg);
}

.checkbox-label .privacy-link {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-weight: 700;
}

.checkbox-label .privacy-link:hover {
    color: #184250;
}

.checkbox-label {
    font-size: 18px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 400;
    color: #030303;
}

.contact-form button[type="submit"] {
    cursor: pointer;
}

/* --- FOOTER SECTION --- */
.footer {
    background-color: var(--primary-color);
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    padding: 80px 20px 40px 20px;
    width: 100%;
    color: var(--text-light);
    /* #FCFCFC */
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
}

.footer-logo {
    width: 227px;
    height: auto;
}

.footer-links-wrapper {
    display: flex;
    gap: 120px;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav-col p,
.footer-nav-col a {
    color: var(--text-light);
    font-size: 19px;
    font-family: 'Hind Vadodara', sans-serif;
    font-weight: 700;
    text-decoration: none;
    line-height: 1.2;
    transition: opacity 0.3s ease;
}

.footer-nav-col a:hover {
    opacity: 0.8;
}

/* --- SUCCESS POPUP --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(33, 91, 110, 0.4);
    backdrop-filter: blur(5px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.success-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%) scale(0.95);
    background: #FFFFFF;
    border-radius: 40px;
    padding: 60px 40px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    max-width: 90%;
    width: 450px;
}

.success-popup.show {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
}

.success-popup-icon {
    width: 80px;
    height: 80px;
    background: #215B6E;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.success-popup-icon svg {
    width: 40px;
    height: 40px;
    color: #FCFCFC;
}

.success-popup h3 {
    font-size: 32px;
    font-family: 'Kumbh Sans', sans-serif;
    color: var(--text-dark);
    font-weight: 600;
}

.success-popup p {
    font-size: 19px;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-popup-close {
    cursor: pointer;
    font-size: 18px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: #FFFFFF;
    background: #215B6E;
    border: none;
    padding: 15px 40px;
    border-radius: 300px;
    transition: background 0.3s ease;
}

.success-popup-close:hover {
    background: #184250;
}

/* --- COOKIE BANNER --- */
.cookie-banner {
    position: fixed;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 900px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    z-index: 10000;
    transition: bottom 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cookie-banner.show {
    bottom: 30px;
}

@media (max-width: 991px) {
    .cookie-banner {
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        padding: 24px 20px;
        box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
        border: none;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
    }
    .cookie-banner.show {
        bottom: 0;
    }
    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }
    .cookie-btn-primary, .cookie-btn-secondary {
        width: 100%;
    }
}

.cookie-content {
    flex: 1 1 500px;
}

.cookie-title {
    font-size: 20px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cookie-content p {
    font-size: 16px;
    line-height: 1.5;
    color: #555;
}

.cookie-content a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.cookie-btn-primary {
    background: var(--primary-color);
    color: #FCFCFC;
    padding: 12px 25px;
    border-radius: 300px;
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.3s ease;
}

.cookie-btn-primary:hover {
    background: #184250;
}

.cookie-btn-secondary {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 12px 25px;
    border-radius: 300px;
    font-family: 'Kumbh Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease;
}

.cookie-btn-secondary:hover {
    background: #F0F4F5;
}

.footer-divider {
    height: 2px;
    background-color: var(--text-light);
    opacity: 0.5;
    border: none;
    border-radius: 50px;
    margin-bottom: 25px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-copyright {
    color: var(--text-light);
    font-size: 16px;
    font-family: 'Hind Vadodara', sans-serif;
    font-weight: 400;
    line-height: 40px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);
}

.whatsapp-float {
    position: fixed;
    right: 28px;
    bottom: 28px;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background-color: #25D366;
    color: #FFFFFF;
    display: none; /* Hidden on desktop */
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    z-index: 1200;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.whatsapp-float:hover {
    background-color: #1EAE55;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.whatsapp-float svg {
    width: 34px;
    height: 34px;
    fill: currentColor;
}

/* ==============================================================
   SERVIZI PAGE (.sp-*)
   ============================================================== */
.sp-header {
    padding: 160px 20px 80px 20px;
    background-color: var(--bg-page);
    text-align: left;
}

.sp-header-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sp-header-container h1 {
    font-size: 70px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dark);
}

.sp-header-container p {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-dark);
    max-width: 1000px;
}

.sp-list-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px 80px 20px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.sp-card {
    background-color: #F7F7F7;
    border-radius: 20px;
    display: flex;
    align-items: center;
    padding: 60px;
    gap: 80px;
    scroll-margin-top: 100px;
}

.sp-card.reverse {
    flex-direction: row-reverse;
}

.sp-visual {
    flex: 0 0 45%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.sp-visual img {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain; /* Assicura che l'intera blob sia visibile senza ritagli */
    transition: transform 0.4s ease;
}





/* Rimosso l'effetto ingrandimento all'hover su richiesta */
/* .sp-visual img:hover {
    transform: scale(1.03);
} */

.sp-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.sp-content h2 {
    font-size: 36px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 500;
    color: var(--text-dark);
}

.sp-content p {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-dark);
}

.sp-content .btn-primary {
    margin-top: 10px;
}

/* ==============================================================
   CHI SONO PAGE (.cs-*)
   ============================================================== */
.cs-hero {
    padding: 80px 20px 80px 20px;
    background-color: var(--bg-page);
}

.cs-hero-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 80px;
}

.cs-hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cs-hero-kicker {
    font-size: 35px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    opacity: 0.5;
    color: var(--text-dark);
}

.cs-hero-title {
    font-size: 70px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dark);
}

.cs-hero-text {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-dark);
    margin-top: 20px;
}

.cs-hero-text strong {
    font-weight: 700;
}

.cs-hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cs-hero-img {
    width: 100%;
    max-width: 480px;
    height: auto;
    display: block;
}

.cs-section-title {
    font-size: 36px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
}

.cs-percorso {
    padding: 80px 20px;
    background-color: var(--bg-page);
    position: relative;
    /* overflow rimosso per non affettare la linea in alto/basso */
}

.cs-bg-line {
    position: absolute;
    top: 50%;
    left: -5%;
    width: 110%;
    transform: translateY(-50%);
    z-index: 0;
    pointer-events: none;
    opacity: 1;
    /* Modalità full opacity (l'svg ha già 0.6 nativo) */
}

.cs-percorso-container,
.cs-perche-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cs-percorso-grid,
.cs-perche-grid {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.cs-card {
    flex: 1;
    background: #F7F7F7;
    border-radius: 20px;
    padding: 40px;
    outline: 0.5px solid rgba(225, 225, 225, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

.cs-card h3,
.cs-perche-card h3 {
    font-size: 36px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.cs-card p,
.cs-perche-card p {
    font-size: 19px;
    line-height: 1.5;
}

.cs-specs {
    padding: 80px 20px;
}

.cs-perche {
    padding: 80px 20px 120px 20px;
}

.cs-perche-card {
    flex: 1;
    background: #F7F7F7;
    border-radius: 20px;
    padding: 40px 20px;
    outline: 0.5px solid rgba(225, 225, 225, 0.5);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
}

@media (min-width: 992px) {
    .chi-sono-page .cs-hero-visual,
    .chi-sono-page .cs-hero-content {
        opacity: 0;
        animation-duration: 2s;
        animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
        animation-fill-mode: forwards;
        will-change: opacity, transform;
    }

    .chi-sono-page .cs-hero-visual {
        animation-name: aboutElisaDown;
        animation-delay: 0.15s;
    }

    .chi-sono-page .cs-hero-content {
        animation-name: aboutContentLeft;
        animation-delay: 0.65s;
    }

    .chi-sono-page .cs-percorso .cs-section-title,
    .chi-sono-page .cs-percorso .cs-card,
    .chi-sono-page .cs-perche .cs-section-title,
    .chi-sono-page .cs-perche-card,
    .chi-sono-page .faq-item {
        opacity: 0;
        will-change: opacity, transform;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-section-title,
    .chi-sono-page .cs-perche.is-visible .cs-section-title {
        animation: homeFadeUp 2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s forwards;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-card,
    .chi-sono-page .cs-perche.is-visible .cs-perche-card {
        animation: serviceCardDown 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(1),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(1) {
        animation-delay: 0.35s;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(2),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(2) {
        animation-delay: 0.55s;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(3),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(3) {
        animation-delay: 0.75s;
    }

    .chi-sono-page .faq.is-visible .faq-item {
        animation: faqItemUp 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .chi-sono-page .faq.is-visible .faq-item:nth-child(1) {
        animation-delay: 0.15s;
    }

    .chi-sono-page .faq.is-visible .faq-item:nth-child(2) {
        animation-delay: 0.35s;
    }

    .chi-sono-page .faq.is-visible .faq-item:nth-child(3) {
        animation-delay: 0.55s;
    }

    .chi-sono-page .faq.is-visible .faq-item:nth-child(4) {
        animation-delay: 0.75s;
    }

    .chi-sono-page .faq.is-visible .faq-item:nth-child(5) {
        animation-delay: 0.95s;
    }

    .chi-sono-page .faq.is-visible .faq-item:nth-child(6) {
        animation-delay: 1.15s;
    }
}

@media (prefers-reduced-motion: reduce) {
    .chi-sono-page .cs-hero-visual,
    .chi-sono-page .cs-hero-content,
    .chi-sono-page .cs-percorso .cs-section-title,
    .chi-sono-page .cs-percorso .cs-card,
    .chi-sono-page .cs-perche .cs-section-title,
    .chi-sono-page .cs-perche-card,
    .chi-sono-page .faq-item {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

@media (max-width: 991px) {
    .home-page .hero-content,
    .home-page .hero-visual,
    .home-page .img-studio,
    .home-page .img-elisa,
    .home-page .about-content,
    .home-page .approach-content,
    .home-page .approach-visual,
    .home-page .service-card,
    .home-page .faq-item,
    .chi-sono-page .cs-hero-visual,
    .chi-sono-page .cs-hero-content,
    .chi-sono-page .cs-percorso .cs-section-title,
    .chi-sono-page .cs-percorso .cs-card,
    .chi-sono-page .cs-perche .cs-section-title,
    .chi-sono-page .cs-perche-card,
    .chi-sono-page .faq-item {
        opacity: 0;
        will-change: opacity, transform;
    }

    .home-page .hero-visual {
        animation: homeFadeUp 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    }

    .home-page .hero-content {
        animation: homeFadeUp 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
    }

    .home-page .about.is-visible .img-studio {
        animation: aboutStudioUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    }

    .home-page .about.is-visible .img-elisa {
        animation: aboutElisaDown 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    }

    .home-page .about.is-visible .about-content {
        animation: homeFadeUp 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    }

    .home-page .about.is-visible .about-line-mask {
        animation: aboutLineReveal 5.0s cubic-bezier(0.22, 1, 0.36, 1) 1.1s forwards;
    }

    .home-page .approach.is-visible .approach-content,
    .chi-sono-page .cs-percorso.is-visible .cs-section-title,
    .chi-sono-page .cs-perche.is-visible .cs-section-title {
        animation: homeFadeUp 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    }

    .home-page .approach.is-visible .approach-visual {
        animation: homeFadeLeft 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
    }

    .chi-sono-page .cs-hero-visual {
        animation: homeFadeUp 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
    }

    .chi-sono-page .cs-hero-content {
        animation: homeFadeUp 1.45s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
    }

    .home-page .services.is-visible .service-card,
    .home-page .faq.is-visible .faq-item,
    .chi-sono-page .cs-percorso.is-visible .cs-card,
    .chi-sono-page .cs-perche.is-visible .cs-perche-card,
    .chi-sono-page .faq.is-visible .faq-item {
        animation: faqItemUp 1.45s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .home-page .services.is-visible .service-card:nth-child(1),
    .home-page .faq.is-visible .faq-item:nth-child(1),
    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(1),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(1),
    .chi-sono-page .faq.is-visible .faq-item:nth-child(1) {
        animation-delay: 0.1s;
    }

    .home-page .services.is-visible .service-card:nth-child(2),
    .home-page .faq.is-visible .faq-item:nth-child(2),
    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(2),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(2),
    .chi-sono-page .faq.is-visible .faq-item:nth-child(2) {
        animation-delay: 0.24s;
    }

    .home-page .services.is-visible .service-card:nth-child(3),
    .home-page .faq.is-visible .faq-item:nth-child(3),
    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(3),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(3),
    .chi-sono-page .faq.is-visible .faq-item:nth-child(3) {
        animation-delay: 0.38s;
    }

    .home-page .services.is-visible .service-card:nth-child(4),
    .home-page .faq.is-visible .faq-item:nth-child(4),
    .chi-sono-page .faq.is-visible .faq-item:nth-child(4) {
        animation-delay: 0.52s;
    }

    .home-page .services.is-visible .service-card:nth-child(5),
    .home-page .faq.is-visible .faq-item:nth-child(5),
    .chi-sono-page .faq.is-visible .faq-item:nth-child(5) {
        animation-delay: 0.66s;
    }

    .home-page .services.is-visible .service-card:nth-child(6),
    .home-page .faq.is-visible .faq-item:nth-child(6),
    .chi-sono-page .faq.is-visible .faq-item:nth-child(6) {
        animation-delay: 0.8s;
    }

    .home-page .services.is-visible .service-card:nth-child(7) {
        animation-delay: 0.94s;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-section-title,
    .chi-sono-page .cs-perche.is-visible .cs-section-title {
        animation-delay: 0.1s;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(1),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(1) {
        animation-delay: 0.42s;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(2),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(2) {
        animation-delay: 0.56s;
    }

    .chi-sono-page .cs-percorso.is-visible .cs-card:nth-child(3),
    .chi-sono-page .cs-perche.is-visible .cs-perche-card:nth-child(3) {
        animation-delay: 0.7s;
    }
}

@media (max-width: 991px) and (prefers-reduced-motion: reduce) {
    .home-page .hero-content,
    .home-page .hero-visual,
    .home-page .img-studio,
    .home-page .img-elisa,
    .home-page .about-content,
    .home-page .approach-content,
    .home-page .approach-visual,
    .home-page .service-card,
    .home-page .faq-item,
    .chi-sono-page .cs-hero-visual,
    .chi-sono-page .cs-hero-content,
    .chi-sono-page .cs-percorso .cs-section-title,
    .chi-sono-page .cs-percorso .cs-card,
    .chi-sono-page .cs-perche .cs-section-title,
    .chi-sono-page .cs-perche-card,
    .chi-sono-page .faq-item {
        opacity: 1;
        animation: none;
        transform: none;
    }
}


/* ==============================================================
   RESPONSIVE DESIGN (Media Queries per Tablet & Mobile)
   ============================================================== */

@media (max-width: 991px) {

    /* Nascondi la header/navbar desktop su mobile */
    .header {
        display: none;
    }

    /* ---- MOBILE TOPBAR ---- */
    .mobile-topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 2000; /* Superiore all'overlay per mantenere accessibile l'hamburger */
        height: 70px;
        padding: 0 20px;
        background-color: #215B6E;
        box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    }

    /* Hamburger button */
    .mobile-hamburger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 6px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 6px;
        width: 42px;
        height: 42px;
    }

    .mobile-hamburger span {
        display: block;
        width: 26px;
        height: 2px;
        background-color: #FCFCFC;
        border-radius: 2px;
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    /* Logo al centro del topbar */
    .mobile-topbar-logo {
        display: none;
    }
    
    .mobile-topbar-logo img {
        height: 44px;
        width: auto;
        display: none;
    }

    /* CTA contatti a destra */
    .mobile-topbar-cta {
        background-color: #FCFCFC;
        color: #215B6E;
        font-family: 'Kumbh Sans', sans-serif;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        padding: 8px 18px;
        border: 2px solid #FCFCFC;
        border-radius: 50px;
        transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    }

    .mobile-topbar-cta:hover {
        background-color: transparent;
        color: #FCFCFC;
    }

    /* ---- FULLSCREEN OVERLAY MENU ---- */
    .mobile-menu-overlay {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        inset: 0;
        z-index: 1900;
        background-color: #215B6E;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity 0.35s ease, transform 0.35s ease;
    }

    .mobile-menu-overlay.is-open {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    body:has(.mobile-menu-overlay.is-open) .whatsapp-float {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.9);
    }

    body.mobile-menu-open .whatsapp-float {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.9);
    }

    /* Pulsante hamburger nel topbar (gestisce anche la chiusura) */
    .mobile-hamburger {
        z-index: 2100;
    }

    /* Nav links inside overlay */
    .mobile-menu-nav {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 12px;
        width: 100%;
        padding: 0 30px;
    }

    .mobile-menu-link {
        font-family: 'Kumbh Sans', sans-serif;
        font-size: 36px;
        font-weight: 600;
        color: rgba(252,252,252,0.75);
        text-decoration: none;
        padding: 12px 0;
        transition: color 0.2s ease, transform 0.2s ease;
        text-align: center;
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .mobile-menu-link:last-child {
        border-bottom: none;
    }

    .mobile-menu-link:hover {
        color: #FCFCFC;
        transform: translateX(6px);
    }

    /* CTA link in menu (Contatti) - Stile primario invertito per contrasto */
    .mobile-menu-overlay .btn-primary {
        margin-top: 30px;
        background-color: #FCFCFC;
        color: #215B6E;
        border: 2px solid #FCFCFC;
        border-bottom: 2px solid #FCFCFC;
        width: fit-content;
        padding: 6px 6px 6px 35px;
        font-size: 19px;
        font-weight: 700;
        transform: none;
        transition: all 0.5s ease;
    }

    .mobile-menu-overlay .btn-primary .btn-icon {
        background-color: #215B6E;
        color: #FCFCFC;
    }

    .mobile-menu-overlay .btn-primary:hover {
        background-color: transparent;
        color: #FCFCFC;
        border-color: #FCFCFC;
        transform: none;
    }

    .mobile-menu-overlay .btn-primary:hover .btn-icon {
        background-color: #FCFCFC;
        color: #215B6E;
    }


    /* Logo at bottom of overlay */
    .mobile-menu-footer {
        display: none;
    }

    /* ---- COMPENSATE FIXED TOPBAR ---- */
    /* Padding e spaziature globali ridotte */
    .hero,
    .about,
    .approach {
        padding: 35px 20px;
    }

    .faq,
    .contact {
        padding: 70px 20px;
    }

    /* Le sezioni con slider sono full-bleed */
    .services,
    .testimonials {
        padding: 70px 0;
    }





    /* Hero Section */
    .hero {
        display: grid;
        grid-template-columns: 1fr;
        height: auto;
        margin: 0;
        padding: 110px 20px 30px 20px; /* 70px navbar + 40px gap top, 30px bottom */
        gap: 20px;
        box-sizing: border-box;
        max-width: none;
    }

    .hero-visual {
        order: 1;
        grid-row: auto;
        grid-column: auto;
        display: flex;
        justify-content: center;
    }

    .hero-image-container {
        max-height: none;
        width: 100%;
        max-width: 100%;
        aspect-ratio: auto;
    }

    .hero-image-wrapper {
        border-radius: 20px;
    }

    .hero-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }

    .hero-content {
        order: 2;
        grid-row: auto;
        grid-column: auto;
        display: block;
        text-align: left;
    }

    .hero-title {
        font-size: 44px;
        max-width: 100%;
        margin-bottom: 30px;
    }

    .hero-content .btn-primary {
        margin: 0;
        /* Rimosso centramento */
    }

    /* Ridimensionare in proporzione gli anchor di Hero */
    .hero-graphic {
        width: 17.5%;
        bottom: 0%;
        right: 10%;
    }

    /* About Section ("Chi Sono") */
    .about-line-wrapper {
        top: calc(42% - 40px);
        left: 110%;
        width: 150%; 
        transform: translate(-50%, -50%) scale(1.5);
    }

    /* La linea si anima regolarmente su mobile */



    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: left;
    }

    .about-visual {
        width: 100%;
        max-width: 320px;
        height: auto;
        aspect-ratio: 1;;
    }

    .img-studio {
        width: 160px;
    }

    .img-elisa {
        width: 160px;
    }

    .about-title {
        font-size: 32px;
    }

    .about-content .btn-primary {
        margin: 0;
        margin-top: 30px;
        /* Sovrascrive lo style inline */
    }

    /* Approach Section ("Il mio approccio") */
    .approach-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
    }

    .approach-content {
        grid-row: 2;
        display: block;
    }

    .approach-visual {
        grid-row: 1;
        display: block;
        max-width: 340px;
        width: 100%;
        height: auto !important;
        margin: 0;
    }

    .approach-title {
        font-size: 44px;
        line-height: 1.2;
        margin-bottom: 30px;
    }

    .approach-text {
        margin-bottom: 30px;
    }

    .approach-content .btn-primary {
        margin: 0;
    }

    /* Services Section */
    .services-title {
        font-size: 32px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .service-card {
        min-width: 290px;
        padding: 35px 25px;
    }

    .service-card:first-child {
        margin-left: 20px;
    }

    .service-card:last-child {
        margin-right: 20px;
    }

    /* I bottoni delle slide vengono soppressi poichè l'utente touch scorre lateralmente nativamente. Inoltre eliminano il bug dello scroll orizzontale */
    .slider-btn {
        display: none !important;
    }

    .services-pagination {
        display: flex;
        margin-top: 20px;
    }

    /* Testimonials Section */
    .testimonials-title {
        font-size: 30px;
        margin-bottom: 40px;
        padding: 0 20px;
    }

    .testimonial-card {
        padding: 0 20px;
        /* Padding laterale allineato al titolo per mobile */
    }

    #testimonialDots {
        display: none;
    }

    .testimonial-card-pagination {
        display: flex;
        margin-top: 22px;
    }

    .testimonial-text {
        font-size: 20px;
    }

    .testimonial-author {
        font-size: 20px;
    }

    /* FAQ Section */
    .faq-title {
        font-size: 32px;
        text-align: center;
    }

    .faq-question {
        padding: 20px 25px;
        font-size: 20px;
        /* Ridotto il wall of testo spigoloso */
    }

    .faq-answer p {
        padding: 0 25px;
        font-size: 17px;
    }

    .faq-item.active .faq-answer p {
        padding: 0 25px 20px 25px;
    }

    /* Contacts Section */
    .contact-title {
        font-size: 36px;
        text-align: center;
        margin-bottom: 50px;
    }

    .contact-info-row {
        flex-direction: column;
        gap: 40px;
        margin-bottom: 50px;
    }

    .contact-info-card {
        max-width: 100%;
    }

    .contact-form-box {
        padding: 30px 20px;
    }

    .contact-form {
        gap: 25px;
    }

    .form-row {
        flex-direction: column;
        gap: 25px;
    }

    .form-bottom-row {
        flex-direction: column;
        gap: 30px;
        text-align: left;
        align-items: flex-start;
    }

    .custom-checkbox-wrapper {
        align-items: flex-start;
    }

    .checkbox-label {
        font-size: 17px;
        line-height: 1.4;
    }

    .contact-form button[type="submit"] {
        position: relative;
        width: 100%;
        min-height: 57px;
        padding: 6px 58px;
        justify-content: center;
    }

    .contact-form button[type="submit"] .btn-icon {
        position: absolute;
        right: 6px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Servizi Page Mobile */
    .sp-header {
        padding: 120px 20px 50px 20px;
    }

    .sp-header-container h1 {
        font-size: 34px;
        line-height: 1.2;
    }

    .sp-card {
        flex-direction: column !important;
        padding: 40px 30px;
        gap: 20px;
    }

    .sp-content h2 {
        font-size: 32px;
        font-weight: 500;
    }

    .sp-visual {
        width: 100%;
        flex: 1;
    }

    .sp-visual img {
        height: 300px;
    }

    /* Chi Sono Page Mobile */
    .cs-hero {
        padding: 120px 20px 60px 20px;
    }

    .cs-hero-container {
        flex-direction: column;
        gap: 40px;
    }

    .cs-hero-visual {
        width: 100%;
    }

    .cs-hero-img {
        max-width: 100%;
    }

    .cs-hero-title {
        font-size: 36px;
    }

    .cs-hero-kicker {
        font-size: 25px;
    }

    .cs-percorso-grid,
    .cs-perche-grid {
        flex-direction: column;
    }

    .cs-card h3,
    .cs-perche-card h3,
    .cs-section-title {
        font-size: 20px;
    }

    .cs-card {
        padding: 30px 20px;
    }

    /* Footer Section Mobile */
    .footer {
        padding: 60px 30px 30px 30px;
        border-radius: 20px 20px 0 0;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 50px;
        margin-bottom: 50px;
    }

    .footer-links-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .footer-copyright {
        line-height: 1.4;
    }

    .whatsapp-float {
        display: flex; /* Visible on mobile */
        right: 18px;
        bottom: 18px;
        width: 56px;
        height: 56px;
    }

    .whatsapp-float svg {
        width: 31px;
        height: 31px;
    }
}

@media (max-width: 480px) {

    /* Extreme Mobile Tweaks */
    .hero-title {
        font-size: 42px;
        /* Testo ancora più leggibile senza spezzare le sillabe nei device piccolissimi */
    }

    /* Rimosso l'estensione a tutta larghezza dei bottoni per mantenere lo stile desktop */

}

/* --- APPROACH SECTION --- */
.approach {
    padding: 120px 45px;
    background-color: var(--bg-page);
    position: relative;
    z-index: 10;
}

.approach-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    max-width: 1280px;
    margin: 0 auto;
    align-items: center;
}

.approach-content {
    max-width: 580px;
}

.approach-title {
    font-size: 70px;
    font-family: 'Kumbh Sans', sans-serif;
    font-weight: 600;
    line-height: 1;
    color: #030303;
    margin-bottom: 30px;
}

.approach-text {
    font-size: 19px;
    font-family: 'Hind Vadodara', sans-serif;
    line-height: 1.5;
    color: #030303;
    margin-bottom: 40px;
}

.approach-text strong {
    font-weight: 700;
}

.approach-visual {
    position: relative;
    width: 427px;
    height: 569px;
    margin: 0 auto;
}

@keyframes approachContentRight {
    from {
        opacity: 0;
        transform: translateX(-42px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes approachVisualDown {
    from {
        opacity: 0;
        transform: translateY(-42px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (min-width: 992px) {
    .home-page .approach-content,
    .home-page .approach-visual {
        opacity: 0;
        will-change: opacity, transform;
    }

    .home-page .approach.is-visible .approach-content {
        animation: approachContentRight 2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    }

    .home-page .approach.is-visible .approach-visual {
        animation: approachVisualDown 2s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-page .approach-content,
    .home-page .approach-visual {
        opacity: 1;
        animation: none;
        transform: none;
    }
}

.slice {
    position: absolute;
    /* Rimosse tutte le forzature CSS (border-radius, overflow, ecc). Le immagini si sovrappongono e s'incastrano naturalmente per la loro trasparenza e mascheratura originale. */
}

.slice img {
    width: 100%;
    height: auto;
    display: block;
}

/* 
    Se le immagini PNG sono già i ritagli corretti esatti creati dal designer su Figma,
    è sufficiente posizionarle alle loro coordinate X (left) di orgine senza forzare bordi che taglierebbero bruscamente la foto.
*/
.slice-1 {
    left: 0;
    top: 0;
    width: 30.91%; /* 132/427 */
    z-index: 1;
}

.slice-2 {
    left: 27.4%; /* 117/427 */
    top: 0;
    width: 53.16%; /* 227/427 */
    z-index: 2;
}

.slice-3 {
    left: 66.51%; /* 284/427 */
    top: 1.05%; /* 6/569 */
    width: 33.25%; /* 142/427 */
    z-index: 3;
}

@media (max-width: 991px) {
    .approach {
        padding: 35px 20px;
        overflow: hidden;
    }

    .approach-container {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 100%;
        width: 100%;
    }

    .approach-content {
        grid-row: 2;
        max-width: 100%;
    }

    .approach-visual {
        grid-row: 1;
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
    }

    .approach-visual img {
        width: 100%;
        height: auto;
        display: block;
    }

    .approach-title {
        font-size: 40px;
        line-height: 1.15;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .approach-text {
        max-width: 100%;
    }
}

/* --- TESTIMONIALS MOBILE CONTROLS --- */
.testimonials-mobile-controls {
    display: none;
}

@media (max-width: 991px) {
    .testimonials-mobile-controls {
        display: none;
    }

    .testimonials-mobile-controls .mobile-dots {
        display: flex;
        gap: 8px;
    }

    .testimonials-mobile-controls .mobile-dots .dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background-color: rgba(33, 91, 110, 0.2);
        transition: background-color 0.3s ease;
    }

    .testimonials-mobile-controls .mobile-dots .dot.active {
        background-color: var(--primary-color);
    }

    .testimonials-mobile-controls .mobile-buttons {
        display: flex;
        gap: 12px;
    }

    .mobile-slider-btn {
        width: 32px;
        height: 32px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        padding: 0;
        box-sizing: border-box;
        background-color: transparent;
        border: none;
        color: var(--primary-color);
    }

    .mobile-slider-btn.next {
        background-color: transparent;
        border: none;
        color: var(--primary-color);
    }

    .mobile-slider-btn.prev {
        background-color: transparent;
        border: none;
        color: var(--primary-color);
    }

    .mobile-slider-btn:active {
        transform: scale(0.95);
    }

    .mobile-slider-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
    }

    #testimonialPrevBtn,
    #testimonialNextBtn {
        display: flex !important;
        top: 50%;
        width: 34px;
        height: 34px;
        background-color: transparent;
        border: none;
        box-shadow: none;
        color: var(--primary-color);
    }

    #testimonialPrevBtn {
        left: 6px;
    }

    #testimonialNextBtn {
        right: 6px;
    }

    #testimonialPrevBtn svg *,
    #testimonialNextBtn svg * {
        stroke: currentColor;
    }

    #testimonialPrevBtn:hover,
    #testimonialNextBtn:hover {
        box-shadow: none;
    }

    .testimonial-card {
        padding: 0 42px;
        justify-content: center;
        min-height: 420px;
    }

    #testimonialDots,
    .testimonial-card-pagination {
        display: none !important;
    }
}


