/*
Theme Name: HLD
Theme URI: http://hotlemondrop.it
Author: Davide Pinna
Author URI: http://hotlemondrop.it
Description: Tema WordPress personalizzato.
Version: 1.2
*/



.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loading-container {
    position: relative;
    width: 200px;
    height: 200px;
}

.loading-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    width: 150px;
    height: auto;
    animation: logoFadeZoom 2s ease-in-out infinite;
}

@keyframes logoFadeZoom {
    0% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.95);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.05);
    }
    100% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(0.95);
    }
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 4px solid #FF813333;
    border-top: 4px solid #FF8133;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-submit-btn {
   position: absolute !important;
   background: #FF8133 !important;
   color: white !important;
   padding: 0.8rem 1.8rem !important;
   border: none !important;
   border-radius: 30px !important;
   font-size: 1rem !important;
   display: flex !important;
   align-items: center !important;
   justify-content: center !important;
   gap: 0.5rem !important;
   cursor: pointer !important;
   transition: all 0.3s ease !important;
   text-transform: lowercase !important;
   font-family: 'Atkinson Hyperlegible', sans-serif !important;
   right: 165px !important;
   margin-left: auto !important;
}

.contact-submit-btn:hover {
   background: #FF3C38 !important;
   transform: scale(1.02) !important;
}

@media (max-width: 768px) {
   .contact-submit-btn {
       padding: 0.75rem 1.5rem !important;
       font-size: 0.9rem !important;
       position: relative !important;
       width: 100% !important;
       right: auto !important;
       margin: 0 !important;
   }
}

li {
    list-style: none !important;
    list-style-type: none !important;
}

li::marker {
    display: none !important;
    content: "" !important;
}

/* Rimuovi i pallini dal menu */
.mobile-nav li#menu-item-11,
.mobile-nav li.menu-item {
    list-style: none !important;
}

/* Stile orizzontale flex */
.mobile-nav ul.menu {
    list-style: none !important;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

/* Hero Section */


.mobile-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 2rem;
}

.mobile-nav li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav {
    margin-left: auto;
    display: flex;
    gap: 2rem;
    list-style: none;  /* Rimuove i pallini */
}

.mobile-nav li {
    list-style: none;  /* Per sicurezza lo rimuoviamo anche dai li */
}



* {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Atkinson Hyperlegible', sans-serif;
        caret-color: transparent;
    }


@media (max-width: 768px) {
    .modal-content {
        position: relative !important;
        overflow: hidden !important;
    }

    .modal-image {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        opacity: 0.2 !important;
        object-fit: contain !important;
        z-index: 0 !important;
        transform: none !important;
    }

    .modal-image-container {
        position: absolute !important;
        width: 100% !important;
        height: 100% !important;
        top: 0 !important;
        left: 0 !important;
        pointer-events: none !important;
    }

    .modal-text {
        position: relative !important;
        z-index: 1 !important;
        padding-right: 0 !important;
    }
}


@media (max-width: 768px) {
    /* Layout generale */
    section {
        padding: 3rem 1rem !important;
        min-height: auto !important;
    }

    .container {
        width: 95% !important;
        padding: 1rem !important;
    }

    /* Header e Logo */
    .logo-img {
        height: 100px !important;
        margin: -30px 0 !important;
    }

    /* Hero Section */
    .hero-section {
        min-height: 90vh !important;
    }

    .hero-container {
        padding: 2rem 1rem !important;
    }

    .hero-title {
        font-size: 2.2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-subtitle {
        font-size: 1.2rem !important;
    }

   /* Desktop grande */
@media (min-width: 1400px) {
    .hero-logo {
        z-index: -20 !important;
        width: 30% !important;  /* invece di px fissi */
        bottom: -8% !important;
        right: 8% !important;
        transform: translateY(-50%) rotate(27deg) !important;
    }
}

/* Desktop normale */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-logo {
        z-index: -20 !important;
        width: 25% !important;
        bottom: -10% !important;
        right: 8% !important;
        transform: translateY(-50%) rotate(27deg) !important;
    }
}

/* Tablet landscape */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-logo {
        z-index: -20 !important;
        width: 22% !important;
        bottom: -12% !important;
        right: 10% !important;
        transform: translateY(-50%) rotate(20deg) !important;
    }
}

/* Tablet verticale */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-logo {
        z-index: -20 !important;
        width: 20% !important;
        bottom: -14% !important;
        right: 45% !important;
        transform: translateX(50%) rotate(15deg) !important;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-logo {
        z-index: -20 !important;
        width: 45% !important;    /* percentuale invece di 180px fissi */
        top: auto !important;
        bottom: -16% !important;
        right: 50% !important;
        transform: translateX(50%) rotate(15deg) !important;
    }
}

/* Mobile piccolo */
@media (max-width: 576px) {
    .hero-logo {
        z-index: -20 !important;
        width: 50% !important;
        bottom: -18% !important;
        right: 50% !important;
        transform: translateX(50%) rotate(15deg) !important;
    }
}
    /* Home Section */
  

    .home-card {
        padding: 1.5rem !important;
    }

    .welcome-text {
        font-size: 1.6rem !important;
    }

    .main-text {
        font-size: 1rem !important;
    }

    /* Dati Section */
    .data-grid {
                margin-bottom: 5rem !important;

        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .data-text {
        text-align: center !important;
    }

    .data-title {
        font-size: 1.8rem !important;
    }

    .data-subtitle {
        font-size: 1rem !important;
    }

    .data-card {
        height: auto !important;
        min-height: 150px !important;
    }

    .data-card .number {
        font-size: 2rem !important;
    }

    /* Valori Section */
    .carousel {
        padding: 0 1rem !important;
    }

    .values-card {
        height: auto !important;
        min-height: 450px !important;
        padding: 1.5rem !important;
    }

    .values-title {
        font-size: 1.8rem !important;
    }

    .values-description {
        font-size: 1rem !important;
    }

    .key-points {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .carousel-controls {
        display: none !important;
    }

    .carousel-dots {
        margin-top: 1rem !important;
    }

    /* Metodo Section */
    .method-cards {
        flex-direction: column !important;
        gap: 2rem !important;
        padding: 1rem !important;
    }

    .method-card-wrapper {
        width: 100% !important;
        transform: none !important;
    }

    .method-card {
        min-height: auto !important;
        padding: 1.5rem !important;
    }

   

    /* Team Section */
    .team-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        padding: 1rem !important;
    }

    .team-card {
        width: 100% !important;
        max-width: 300px !important;
        margin: 0 auto !important;
        height: 380px !important;
    }

    .team-info {
        padding: 1.5rem !important;
    }

    .team-info h3 {
        font-size: 1.3rem !important;
    }

    /* Contatti Section */
    .contact-form-container {
        width: 100% !important;
    }

    .contact-form-card {
        padding: 1.25rem !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.8rem !important;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .footer-section {
        text-align: center !important;
    }

    .social-links {
        justify-content: center !important;
    }

    /* Elementi comuni */
    h2 {
        font-size: 2.5rem !important;
        margin-bottom: 1.5rem !important;
    }

   

    /* Modali e Bottoni */
    .modal-content {
        width: 95% !important;
        padding: 1rem !important;
    }

    .modal-inner {
        grid-template-columns: 1fr !important;
    }

    .nome-button,
    .scroll-cta {
        padding: 0.8rem 1.5rem !important;
        font-size: 1rem !important;
    }

    /* Navigation */
    .side-nav {
        right: 1rem !important;
    }

    .nav-dot {
        width: 8px !important;
        height: 8px !important;
    }
}
@media (max-width: 768px) {
    /* Immagine gocce nei dati */
    .data-cards::before {
        width: 450px !important;
        right: -133px !important;
    }

 

   

    /* Rimuovere button 'scopri di più' in mobile */
    .scroll-cta {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .nome-button {
        position: absolute !important;
        bottom: 0.65rem !important;
        right: 8rem !important;
        padding: 0.75rem 1.2rem !important;
        font-size: 0.9rem !important;
        width: auto !important;
        height: auto !important;
        transform: none !important;
    }

    .nome-button i {
        font-size: 0.9rem !important;
    }
}

@media (max-width: 768px) {
    .mobile-header > *:not(.logo):not(.menu-toggle) {
        display: none !important;
    }
    
    /* o in alternativa, selezionando direttamente "contattaci" */
    .mobile-header .title,
    .mobile-header h1,
    .mobile-header span {
        display: none !important;
    }
}





    .loading-container {
        position: relative;
        width: 200px;
        height: 200px;
    }

    .loading-logo {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 150px;
        height: auto;
    }

    .loading-spinner {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 4px solid #FF813333;
        border-top: 4px solid #FF8133;
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Side Navigation */
    .side-nav {
        position: fixed;
        right: 2rem;
        top: 50%;
        transform: translateY(-50%);
        display: flex;
        flex-direction: column;
        gap: 1rem;
        z-index: 1000;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
        background: rgba(255, 255, 255, 0.5);
        border-radius: 50%;
        cursor: pointer;
        position: relative;
        transition: all 0.3s ease;
    }

    .nav-dot::before {
        content: attr(data-label);
        position: absolute;
        right: 24px;
        top: 50%;
        transform: translateY(-50%);
        background: white;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.875rem;
        color: #1F1300;
        opacity: 0;
        transition: all 0.3s ease;
        white-space: nowrap;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }

    .nav-dot:hover::before {
        opacity: 1;
        right: 28px;
    }

            .nav-dot.active {
        background: #FF8133;
        transform: scale(1.2);
    }

    /* Success Modal */
    .success-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.75);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .success-modal.active {
        display: flex;
    }

    .success-modal-content {
        background: white;
        padding: 2rem;
        border-radius: 24px;
        text-align: center;
        max-width: 400px;
        width: 90%;
        animation: modalFadeIn 0.3s ease;
    }

    .success-modal-content h3 {
        color: #FF8133;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .success-modal-content p {
        color: #1F1300;
        margin-bottom: 1.5rem;
    }

    .success-modal-btn {
        background: #FF8133;
        color: white;
        border: none;
        padding: 0.8rem 1.8rem;
        border-radius: 30px;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .success-modal-btn:hover {
        background: #FF3C38;
        transform: scale(1.02);
    }

    /* Text Casing & Colors */
    * {
        text-transform: lowercase !important;
    }

    strong, b {
        color: #1F1300 !important;
    }

    .back-to-top:not(.scroll-cta) {
        display: none !important;
    }



    /* Z-index Sections - Updated */
    #hero { z-index: 8; }
    #home { z-index: 7; }
    #dati { z-index: 6; }
    #valori { z-index: 5; }
    #metodo { z-index: 4; }
    #team { z-index: 2; }
    #contatti { z-index: 1.5; }
    #footer { z-index: 1; }

/* Stili sezione Contatti */
#contatti {
   background: #FF3C38;
   min-height: 90vh;
   padding: 4rem 2rem;
   position: relative;
   box-shadow: -50px 30px 40px -20px rgba(0, 0, 0, 0.3),
               50px 30px 40px -20px rgba(0, 0, 0, 0.3);
   z-index: 1.5;
}

.contact-form-container {
   max-width: 500px;
   margin: 0 auto;
   width: 100%;
}

.contact-form-card {
   padding: 2.5rem;
   background: white;
   border-radius: 24px;
   box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.contact-form {
   display: flex;
   flex-direction: column;
   gap: 1.5rem;
}

.form-row {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 1.5rem;
}

.form-group {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   margin-bottom: 0.5rem;
}

.form-group label {
   color: #1F1300;
   font-family: 'Atkinson Hyperlegible', sans-serif;
   font-weight: 500;
   font-size: 0.9rem;
   text-transform: lowercase;
   letter-spacing: 0.2px;
}

.form-group input,
.form-group textarea {
   padding: 0.8rem 1rem;
   border: 2px solid rgba(43, 58, 103, 0.1);
   border-radius: 12px;
   font-family: 'Atkinson Hyperlegible', sans-serif;
   font-size: 1rem;
   transition: all 0.3s ease;
   background-color: white;
   width: 100%;
}

.form-group textarea {
   resize: none;
   height: 120px;
   overflow-y: auto;
   min-height: 120px;
}

/* Fix per l'autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
   -webkit-box-shadow: 0 0 0 30px white inset !important;
   -webkit-text-fill-color: #1F1300 !important;
   -webkit-background-clip: text !important;
   background-clip: text !important;
   transition: background-color 5000s ease-in-out 0s;
}

.form-group input:focus,
.form-group textarea:focus {
   outline: none;
   border-color: #FF8133;
   box-shadow: 0 0 0 3px rgba(255,129,51,0.1);
}

/* Stile checkbox privacy */
.form-group input[type="checkbox"] {
   width: auto;
   margin-right: 0.5rem;
}

.form-group .wpcf7-acceptance {
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 0.9rem;
}

.form-group .wpcf7-acceptance a {
   color: #FF8133;
   text-decoration: none;
   transition: color 0.3s ease;
}

.form-group .wpcf7-acceptance a:hover {
   color: #FF3C38;
}

@media (max-width: 768px) {
   .form-row {
       grid-template-columns: 1fr;
       gap: 1rem;
   }
   
   .contact-form-card {
       padding: 1.5rem;
   }
   
   #contatti {
       padding: 3rem 1.5rem;
   }
   
   .form-group input,
   .form-group textarea {
       font-size: 16px; /* Previene lo zoom su mobile */
   }
}

    /* Modal Styles */
    .modal-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: rgba(0, 0, 0, 0.75);
        display: none;
        justify-content: center;
        align-items: center;
        z-index: 9999;
    }

    .modal-overlay.active {
        display: flex;
    }

    .modal-content {
        background: white;
        border-radius: 24px;
        padding: 2rem;
        max-width: 800px;
        width: 90%;
        position: relative;
        animation: modalFadeIn 0.3s ease;
        display: none;
        overflow: visible;
    }

    .modal-overlay.active .modal-content {
        display: block;
    }

    .modal-inner {
        display: grid;
        grid-template-columns: 2.2fr 0.8fr;
        position: relative;
    }
    .modal-inner {
        display: grid
    ;
        grid-template-columns: 2.2fr 0.8fr;
        /* gap: 1rem; */
        position: relative;
    }
    .modal-text {
        padding-right: 2rem;
    }

    .modal-image-container {
        position: relative;
    }

    .modal-image {
        width: 626px;
        position: absolute;
        right: -328px;
        top: -139px;
    }

    @keyframes modalFadeIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255,129,51,0.1);
        color: #FF8133;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        z-index: 1;
    }

    .modal-close:hover {
        background: #FF8133;
        color: white;
    }

    @media (max-width: 768px) {
        .modal-content {
            padding: 1.5rem;
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal-inner {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .modal-image-container {
            order: -1;
        }

        .modal-image {
            position: relative;
            width: 100%;
            right: 0;
            top: 0;
        }

        .modal-text {
            padding-right: 0;
        }
    }

    /* Nome Button Styles */
    .nome-button {
        position: absolute;
        bottom: 5rem;
        right: 2rem;
        background: #FF8133;
        color: white;
        padding: 1rem 2rem;
        border-radius: 30px;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.1rem;
        transition: all 0.3s ease;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .nome-button:hover {
        background: #FF3C38;
        transform: scale(1.02);
    }

    @media (max-width: 768px) {
        .modal-content {
            padding: 1.5rem;
            max-height: 80vh;
            overflow-y: auto;
        }

        .modal-inner {
            grid-template-columns: 1fr;
            gap: 1rem;
        }

        .modal-image-container {
            order: -1;
            margin-bottom: 1rem;
        }

        .modal-image {
            max-width: 100%;
            transform: none;
        }

        .modal-text {
            padding-right: 0;
        }

        .nome-button {
            bottom: 1rem;
            right: 1rem;
            padding: 0.75rem 1.5rem;
            font-size: 1rem;
        }
    }

    /* Hero Section Styles */
    .hero-section {
        min-height: 100vh;
        background: white;
        width: 100%;
        display: flex;
        align-items: center;
        position: relative;
        box-shadow: -50px 30px 40px -20px rgba(0, 0, 0, 0.3),
                    50px 30px 40px -20px rgba(0, 0, 0, 0.3);
    }

    .hero-container {
        width: 100%;
        padding: 4rem 3rem; /* Aumentato il padding laterale */
    }

    .hero-content {
        width: 100%;
        text-align: left;
    }

    .hero-title {
        color: #1F1300;
        font-size: 7rem; /* Aumentato leggermente */
        line-height: 1.1;
        font-weight: bold;
        margin-bottom: 2.5rem;
    }

    .hero-subtitle {
        color: #1F1300;
        font-size: 2rem;
        line-height: 1.4;
        opacity: 0.9;
        margin-bottom: 3rem;
    }

    @media (max-width: 1400px) {
        .hero-container {
            padding: 8rem 6rem;
        }
        
        .hero-title {
            font-size: 5.5rem;
        }
    }

    @media (max-width: 768px) {
        .hero-container {
            padding: 6rem 2rem;
        }

        .hero-title {
            font-size: 3.5rem;
        }

        .hero-subtitle {
            font-size: 1.4rem;
        }
    }



 

    #dati .section-subtitle {
        padding-top: 3rem;
    }

    #valori .section-subtitle {
        padding-top: 6rem;
    }

    #metodo .section-subtitle {
        padding-top: 9rem;
    }

    #nome .section-subtitle {
        padding-top: 5rem;
    }

   #team .section-subtitle {
    padding-top: 1.8rem !important;
}

    /* Reset & Base Styles */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
        font-family: 'Atkinson Hyperlegible', sans-serif;
    }

    html {
        scroll-behavior: smooth;
    }

    body {
        overflow-x: hidden;
        line-height: 1.6;
    }

    section {
        position: relative;
    }

    section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('assets/icone/pattern.png');
        background-size: auto;
        background-repeat: repeat;
        opacity: 0.05;
        pointer-events: none;
        z-index: 1;
    }

    section > * {
        position: relative;
        z-index: 2;
    }

    /* Skip Link per accessibilità */
    .skip-link {
        position: absolute;
        top: -40px;
        left: 0;
        background: #FF8133;
        color: white;
        padding: 8px;
        z-index: 100;
        transition: top 0.3s ease;
    }

    .skip-link:focus {
        top: 0;
    }

    /* Base Card Styles */
    .hld-card {
        background: white;
        border-radius: 24px;
        padding: 3.5rem;
        box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        overflow: hidden;
        border: 1px solid rgba(0,0,0,0.05);
        display: flex;
        flex-direction: column;
    }

    .hld-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, #FF8133, #FF3C38);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .hld-card:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 30px rgba(0,0,0,0.1);
    }

    .hld-card:hover::before {
        opacity: 1;
    }

    .hld-card:focus-within {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,129,51,0.4);
    }

    .hld-card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .hld-card-header h3 {
        color: #1F1300 ;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0;
    }

    .hld-card-number {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255,129,51,0.1);
        color: #FF8133;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
    }

    .hld-badge {
        position: absolute;
        top: 2rem;
        right: 2rem;
        background: rgba(255,129,51,0.1);
        color: #FF8133;
        padding: 0.5rem 1rem;
        border-radius: 20px;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .hld-card-content {
        display: flex;
        flex-direction: column;
        gap: 1.25rem;
        flex: 1;
    }

    .hld-card-text {
        color: #333;
        line-height: 1.6;
        font-size: 1.1rem;
    }

    .hld-card-highlight {
        color: #666;
        font-size: 0.95rem;
        font-style: italic;
        padding-left: 1rem;
        border-left: 3px solid #FF8133;
        margin-top: auto;
    }

    /* Progress Bar */
    .progress-bar {
        position: fixed;
        top: 0;
        left: 0;
        height: 3px;
        width: 0;
        background: #FF3C38;
        z-index: 1001;
        transition: width 0.3s ease;
    }

    /* Section Headers */
    section h2 {
        text-align: center;
        color: white;
        margin-bottom: 2rem;
        font-size: 4.5rem;
        text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    /* Header Styles */
    header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem 2rem;
        z-index: 1000;
        transition: box-shadow 0.3s ease;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header.scrolled {
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .logo {
        font-size: 1.5rem;
        font-weight: bold;
        color: #1F1300;
        text-decoration: none;
    }

    nav {
        display: flex;
        gap: 2rem;
    }

    nav a {
        text-decoration: none;
        color: #1F1300;
        position: relative;
        padding: 0.5rem 0;
        transition: color 0.3s ease;
    }

    nav a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 0;
        height: 2px;
        background: #FF3C38;
        transition: width 0.3s ease;
    }

    nav a:hover::after {
        width: 100%;
    }

    nav a.active::after {
        width: 100%;
    }

    section h2 + .section-subtitle {
        color: rgba(255,255,255,0.9);
        font-size: 1.4rem;
        margin: -1rem auto 3.5rem;
        text-align: center;
        max-width: 800px;
        line-height: 1.4;
    }

    @media (max-width: 768px) {
        section h2 + .section-subtitle {
            font-size: 1.2rem;
            margin: -0.5rem auto 2.5rem;
            padding: 0 1rem;
        }
    }

    section {
        min-height: 100vh;
        padding: 6rem 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        position: relative;
        box-shadow: -50px 30px 40px -20px rgba(0, 0, 0, 0.3),
                    50px 30px 40px -20px rgba(0, 0, 0, 0.3);
        z-index: 1;
    }

    section + section {
        margin-top: -1px;
    }



    .container {
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

/* Home Section */
#home {
   background: #2B3A67;
   min-height: 100vh;
   padding: 4rem 2rem;
   position: relative;
   box-shadow: -50px 30px 40px -20px rgba(0, 0, 0, 0.3),
               50px 30px 40px -20px rgba(0, 0, 0, 0.3);
   display: flex;
   align-items: center;
   z-index: 7;
}



.container {
   width: 100%;
   max-width: 1200px;
   margin: 0 auto;
   position: relative;
}

#home h2 {
   color: white;
   font-size: 4.5rem;
   text-align: center;
   margin-bottom: 2.5rem;
   text-shadow: 0 4px 20px rgba(0,0,0,0.2);
   position: relative;
   z-index: 4;
}

.home-card {
   max-width: 900px;
   margin: 0 auto;
   width: 100%;
   padding: 3.5rem;
   position: relative;
   z-index: 2;
}

.home-content {
   display: flex;
   flex-direction: column;
   gap: 2rem;
}

.welcome-text {
   font-size: 2rem;
   color: #1F1300;
   font-weight: 500;
   line-height: 1.4;
}

.main-text {
   font-size: 1.4rem;
   line-height: 1.6;
   color: #333;
}

.main-text strong {
   color: #1F1300;
   font-weight: 600;
}

#home .nome-button {
   position: absolute;
   bottom: 3.5rem;
   right: 2rem;
   background: #FF8133;
   color: white;
   padding: 1rem 2rem;
   border-radius: 30px;
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   gap: 0.5rem;
   font-size: 1.1rem;
   transition: all 0.3s ease;
   z-index: 10;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#home .nome-button:hover {
   background: #FF3C38;
   transform: scale(1.02);
}

#home .section-subtitle {
   color: rgba(255,255,255,0.9);
   font-size: 1.4rem;
   margin: -1rem auto 3.5rem;
   text-align: center;
   width: 100%;
   white-space: nowrap;
   line-height: 1.4;
}

/* Pattern Background */
#home::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background-image: url('assets/icone/pattern.png');
   background-size: auto;
   background-repeat: repeat;
   opacity: 0.05;
   pointer-events: none;
   z-index: 1;
}

/* Content Z-index */
#home > * {
   position: relative;
   z-index: 2;
}

/* Responsive styles */
@media (max-width: 1024px) {
   .container {
       max-width: 95%;
   }
}

@media (max-width: 768px) {
   #home {
       padding: 3rem 1.5rem;
   }

   #home h2 {
       font-size: 3rem;
       margin-bottom: 2rem;
   }

   .home-card {
       padding: 2rem;
   }

   .welcome-text {
       font-size: 1.6rem;
   }

   .main-text {
       font-size: 1.2rem;
   }

   #home .nome-button {
       bottom: 1rem;
       right: 1rem;
       padding: 0.75rem 1.5rem;
       font-size: 1rem;
   }

   #home .section-subtitle {
       font-size: 1.1rem;
       white-space: normal;
   }


}

/* Print Styles */
@media print {
   #home {
       padding: 1rem;
       background: white;
       min-height: auto;
       box-shadow: none;
   }

   .home-card {
       box-shadow: none;
       border: 1px solid #ddd;
   }
}

    
/* Pattern Background */
#home::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-image: url('assets/icone/pattern.png');
background-size: auto;
background-repeat: repeat;
opacity: 0.05;
pointer-events: none;
z-index: 1;
}

/* Content Z-index */
#home > * {
position: relative;
z-index: 2;
}

/* Responsive Design */
@media (max-width: 1024px) {
.container {
    max-width: 95%;
}
}

@media (max-width: 768px) {
#home {
    padding: 3rem 1rem;
}

#home h2 {
    font-size: 2.5rem;
}

#home .section-subtitle {
    font-size: 1.1rem;
    white-space: normal;
}

.home-header {
    flex-direction: column;
    text-align: center;
}

.logo-img {
    margin: 1rem 0 0;
    height: 40px;
}

.home-title {
    font-size: 1.8rem;
}

.feature-grid {
    grid-template-columns: 1fr;
}
}

/* Print Styles */
@media print {
#home {
    padding: 1rem;
    background: white;
    min-height: auto;
    box-shadow: none;
}

.home-card {
    box-shadow: none;
    border: 1px solid #ddd;
}
}

    /* Data Section */
    #dati h2 {
    margin-top: 4rem;
}

    #dati {
        background: #FF8133;
        min-height: 100vh;
        display: flex;
        align-items: center;
        padding: 4rem 2rem;
    }

    .data-grid {
        margin-bottom: 5rem !important;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        width: 100%;
        align-items: center;
    }

    .data-text {
        color: white;
    }

    .data-title {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
        font-weight: normal;
    }

    .data-title strong {
        font-weight: bold;
    }

    .data-subtitle {
        font-size: 1.2rem;
        line-height: 1.4;
    }

    .data-cards {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }

    .data-cards {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
        position: relative; /* Aggiungiamo questo */
    }

    /* Modifichiamo questo stile */
    .data-cards::before {
        content: '';
        position: absolute;
        top: 50%;
        right: -116px;
        width: 740px;
        height: 788px;
        background-image: url(assets/icone/ICONS_RGB-07.png);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        opacity: 1;
        pointer-events: none;
        transform: translateY(-50%);
        z-index: 1;
    }

    .data-card-wrapper {
        position: relative;
        height: 160px;
    }

    .data-card {
        position: absolute;
        top: 0;
        left: 0;
        right: 120px;
        bottom: 0;
        text-align: left;
        padding: 1.5rem;
    }

    .data-card .badge {
        position: absolute;
        top: 1.25rem;
        right: 1.25rem;
        background: rgba(255,129,51,0.1);
        color: #FF8133;
        padding: 0.4rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
    }

    .data-card .card-title {
        color: #1F1300 ;
        font-size: 1.1rem;
        font-weight: 700;
        margin-bottom: 0.5rem;
    }

    .data-card .number {
        font-size: 2.5rem;
        font-weight: bold;
        color: #1F1300 ;
        line-height: 1;
        margin-bottom: 0.25rem;
    }

    .data-card .subtitle {
        font-size: 1rem;
        color: #333;
        margin-bottom: 0.25rem;
    }

    .data-source {
        font-size: 0.8rem;
        color: #666;
        font-style: italic;
        margin-top: auto;
        text-align: left;
    }

    @media (max-width: 768px) {
        .data-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }
    }

    #valori {
background: #64113F;
min-height: 100vh;
padding: 6rem 2rem;
}

.carousel {
position: relative;
overflow: hidden;
width: 100%;
max-width: 800px;
margin: 2rem auto 0;
}

.carousel-inner {
display: flex;
transition: transform 0.5s ease;
}

.carousel-item {
min-width: 100%;
padding: 1rem;
}

.values-card {
background: white;
border-radius: 24px;
padding: 2.5rem;
max-width: 600px;
margin: 0 auto;
height: 350px;
position: relative;
transition: transform 0.3s ease, box-shadow 0.3s ease;
overflow: hidden;
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.values-card::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
height: 4px;
background: linear-gradient(90deg, #FF8133, #FF3C38);
opacity: 0;
transition: opacity 0.3s ease;
}

.values-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.values-card:hover::before {
opacity: 1;
}

.values-content {
position: relative;
z-index: 1;
height: 100%;
display: flex;
flex-direction: column;
justify-content: space-between;
}

.content-upper {
flex: 1;
display: flex;
flex-direction: column;
}

.values-title {
font-size: 2rem;
color: #1F1300;
margin-bottom: 1.5rem;
line-height: 1.2;
}

.values-description {
font-size: 1.2rem;
line-height: 1.6;
color: #333;
}

.key-points {
display: flex;
gap: 1rem;
padding-top: 1.5rem;
border-top: 1px solid rgba(0,0,0,0.1);
margin-top: auto;
}

.key-point {
flex: 1;
padding: 0.75rem;
background: rgba(255,129,51,0.05);
border-radius: 12px;
text-align: center;
}

.key-point span {
display: block;
color: #FF8133;
font-weight: 500;
font-size: 0.9rem;
}

.values-card-image {
position: absolute;
width: 300px;
opacity: 0.1;
z-index: 0;
overflow: visible;
}

.carousel-item:nth-child(1) .values-card-image {
width: 1000px;
right: -160px;
top: -300px;
transform: rotate(-15deg);
}

.carousel-item:nth-child(2) .values-card-image {
width: 957px;
left: -107px;
bottom: -328px;
transform: rotate(10deg);
}

.carousel-item:nth-child(3) .values-card-image {
width: 733px;
right: 139px;
bottom: -137px;
transform: rotate(-12deg);
}

.carousel-item:nth-child(4) .values-card-image {
width: 820px;
left: 50px;
top: -234px;
transform: rotate(8deg);
}

.carousel-controls {
position: absolute;
top: 45%;
left: 0;
right: 0;
display: flex;
justify-content: space-between;
padding: 0 2rem;
transform: translateY(-50%);
}

.carousel-btn {
background: white;
border: none;
border-radius: 50%;
width: 40px;
height: 40px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: all 0.3s ease;
z-index: 10;
transform: translateY(-6px);
}

.carousel-btn:hover {
transform: translateY(-6px) scale(1.1);
}

.carousel-btn:active {
background: #FF8133;
color: white;
}

.carousel-dots {
display: flex;
justify-content: center;
gap: 1rem;
margin-top: 2rem;
}

.dot {
width: 10px;
height: 10px;
border-radius: 50%;
background: rgba(255,255,255,0.3);
cursor: pointer;
transition: background 0.3s ease;
}

.dot.active {
background: white;
}

@media (max-width: 768px) {
.values-card {
    height: 550px;
    padding: 2rem;
}

.values-title {
    font-size: 1.8rem;
}

.values-description {
    font-size: 1.1rem;
}

.key-points {
    flex-direction: column;
    gap: 0.5rem;
}

.values-card-image {
    width: 200px;
}

.carousel-item:nth-child(1) .values-card-image {
    width: 700px;
    right: -50px;
    top: -30px;
}

.carousel-item:nth-child(2) .values-card-image {
    width: 750px;
    left: -40px;
    bottom: -20px;
}

.carousel-item:nth-child(3) .values-card-image {
    width: 800px;
    right: -45px;
    bottom: -30px;
}

.carousel-item:nth-child(4) .values-card-image {
    width: 770px;
    left: -55px;
    top: -25px;
}
}

#metodo h2 {
    margin-top: 3rem;
    text-align: center;
    color: white;
    margin-bottom: 3rem;
    font-size: 4.5rem;
    text-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

#metodo {
    background: #DFD6A7;
    min-height: 100vh;
    padding: 6rem 2rem;
}

.method-cards {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 3rem;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.method-card-wrapper {
    flex: 1;
    position: relative;
    max-width: 400px;
}

/* Immagini decorative - regole separate */
.method-decoration-image {
    position: absolute;
    width: 100px;
    pointer-events: none;
    z-index: 3;
}

/* Prima immagine - Ascolto */


.method-card {
    min-height: 26rem;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 2;
}

/* Posizionamento verticale dei wrapper */
.method-card-wrapper:nth-child(1) {
    transform: translateY(-60px);
}

.method-card-wrapper:nth-child(2) {
    transform: translateY(0);
}

.method-card-wrapper:nth-child(3) {
    transform: translateY(60px);
}

/* Effetti hover */
.method-card-wrapper:nth-child(1):hover .method-card {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.method-card-wrapper:nth-child(2):hover .method-card {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.method-card-wrapper:nth-child(3):hover .method-card {
    transform: scale(1.02);
    box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.method-card .hld-card-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.method-card .hld-card-number {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,129,51,0.1);
    color: #FF8133;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    z-index: 2;
}

.method-card .hld-card-header h3 {
    color: #1F1300;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.method-card .hld-card-text {
    color: #333;
    line-height: 1.6;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.method-card .hld-card-highlight {
    color: #666;
    font-size: 0.95rem;
    font-style: italic;
    padding-left: 1rem;
    border-left: 3px solid #FF8133;
    margin-top: auto;
    position: relative;
    z-index: 1;
}



/* Pattern Background */
#metodo::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('assets/icone/pattern.png');
    background-size: auto;
    background-repeat: repeat;
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

/* Responsive styles */
@media (max-width: 768px) {
    .method-cards {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .method-card-wrapper {
        width: 100%;
        max-width: 500px;
    }

    .method-card-wrapper:nth-child(1),
    .method-card-wrapper:nth-child(2),
    .method-card-wrapper:nth-child(3) {
        transform: translateY(0);
    }

    .method-card-wrapper:nth-child(1):hover .method-card,
    .method-card-wrapper:nth-child(2):hover .method-card,
    .method-card-wrapper:nth-child(3):hover .method-card {
        transform: scale(1.02);
    }

 
    .section-subtitle {
        font-size: 1.2rem;
        white-space: normal;
        padding: 0 1rem;
    }
    
    #metodo h2 {
        font-size: 3.5rem;
    }

    .method-card .hld-card-header h3 {
        font-size: 1.8rem;
    }

    .method-card .hld-card-text {
        font-size: 1rem;
    }
}

    .nome-card {
        max-width: 800px;
        margin: 0 auto;
        width: 100%;
    }

    .nome-card strong {
        color: #1F1300 ;
        font-weight: 700;
    }

    /* CSS */
    /* CSS Section */
    /* Complete CSS */
    /* Team Section */
    #team {
        background: #2B3A67;
        min-height: 100vh;
        padding: 6rem 2rem;
        position: relative;
        box-shadow: -50px 30px 40px -20px rgba(0, 0, 0, 0.3),
                    50px 30px 40px -20px rgba(0, 0, 0, 0.3);
    }

    #team h2 {
        text-align: center;
        color: white;
        margin-bottom: 2rem;
        font-size: 4.5rem;
        text-shadow: 0 4px 20px rgba(0,0,0,0.2);
    }

    .team-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        width: 100%;;
        max-width: 1200px;
        margin: 0 auto;
    }

    .team-card {
        aspect-ratio: 3/4;
        overflow: hidden;
        position: relative;
        border-radius: 24px;
        cursor: pointer;
        background: white !important;
        padding: 8px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
        border: none;
    }

    .team-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 20px;
        transition: transform 0.5s ease;
    }

    .hover-indicator {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        color: #FF8133;
        font-size: 2rem;
        font-weight: bold;
        animation: fadeUpDown 1.5s infinite;
        transition: opacity 0.3s ease;
        opacity: 1; /* Aggiunto per gestire meglio la transizione */
    }

    @keyframes fadeUpDown {
        0% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
        50% { opacity: 1; transform: translateX(-50%) translateY(-5px); }
        100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    }

    .team-card::before {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 50%;
        width: 50px;
        height: 2px;
        background: #FF8133;
        transform: translateX(-50%);
        animation: expandBorder 2s infinite;
        transition: opacity 0.3s ease;
    }

    @keyframes expandBorder {
        0% { width: 50px; }
        50% { width: 100%; }
        100% { width: 50px; }
    }

    .team-info {
        position: absolute;
        bottom: 8px; /* Modificato: allineato con il padding della card */
        left: 8px; /* Modificato: allineato con il padding della card */
        right: 8px; /* Modificato: allineato con il padding della card */
        background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
        padding: 2rem;
        color: white;
        transform: translateY(100%);
        transition: transform 0.5s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0 0 20px 20px; /* Modificato: match con il border-radius dell'immagine */
    }

    .team-info h3 {
        font-size: 1.5rem;
        font-weight: bold;
        margin-bottom: 0.5rem;
        color: white;
        opacity: 0;
        transform: translateY(10px);
        transition: all 0.3s ease;
        transition-delay: 0.1s;
    }

    .team-info {
        position: absolute;
        bottom: -2px;
        left: -2px;
        right: -2px;
        background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.7), transparent);
        padding: 2rem;
        color: white;
        transform: translateY(100%);
        transition: transform 0.5s ease;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        border-radius: 0 0 24px 24px;
        height: 40%;
    }

    .team-social-link {
        background: rgba(255,255,255,0.1);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
        margin-top: auto;
        opacity: 0;
        transform: translateY(10px);
        transition-delay: 0.3s;
    }

    .team-social-link:hover {
        background: #FF8133;
        transform: translateY(-2px);
    }

    /* Modificato: gestione hover indicator */
    .team-card:hover .hover-indicator {
        opacity: 0;
        visibility: hidden; /* Aggiunto per nascondere completamente */
    }

    .team-card:hover img {
        transform: scale(1.05);
    }

    .team-card:hover .team-info {
        transform: translateY(0);
    }

    .team-card:hover .team-info h3,
    .team-card:hover .team-info p,
    .team-card:hover .team-social-link {
        opacity: 1;
        transform: translateY(0);
    }

    .team-card:hover::before {
        opacity: 0;
    }

  

    @media (max-width: 768px) {
        .team-grid {
            grid-template-columns: 1fr;
            max-width: 400px;
            margin: 0 auto;
        }
        
        #team h2 {
            font-size: 3.5rem;
        }
        
        .section-subtitle {
            font-size: 1.2rem;
            white-space: normal;
            padding: 0 1rem;
        }
    }
    /* Footer Styles */
    footer {
        background: #1F1300;
        color: white;
        padding: 6rem 2rem;
        width: 100%;
    }

    .footer-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 3rem;
        max-width: 1200px;
        margin: 0 auto;
    }

    .footer-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-section h3 {
        color: #FF8133;
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .footer-section p {
        color: rgba(255,255,255,0.8);
        line-height: 1.6;
    }

    .footer-links {
        list-style: none;
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }

    .footer-links a {
        color: rgba(255,255,255,0.8);
        text-decoration: none;
        transition: all 0.3s ease;
        position: relative;
        padding-left: 1.5rem;
    }

    .footer-links a::before {
        content: '→';
        position: absolute;
        left: 0;
        transition: transform 0.3s ease;
    }

    .footer-links a:hover,
    .footer-links a:focus {
        color: #FF8133;
        transform: scale(1.02);
    }

    .footer-links a:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,129,51,0.4);
        border-radius: 4px;
    }

    .social-links {
        display: flex;
        gap: 1rem;
        margin-top: 1rem;
    }

    .social-link {
        background: rgba(255,255,255,0.1);
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        transition: all 0.3s ease;
    }

    .social-link:hover,
    .social-link:focus {
        background: #FF8133;
        transform: scale(1.02);
    }

    .social-link:focus {
        outline: none;
        box-shadow: 0 0 0 3px rgba(255,129,51,0.4);
    }

    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        color: rgba(255,255,255,0.8);
    }

    .contact-item i {
        color: #FF8133;
        width: 20px;
    }

    

    .footer-bottom {
        margin-top: 4rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        text-align: center;
        color: rgba(255,255,255,0.6);
        font-size: 0.9rem;
    }

    /* Back to Top Button */
    .back-to-top {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        background: #FF8133;
        color: white;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        opacity: 0;
        transition: all 0.3s ease;
        transform: translateY(20px);
    }

    .back-to-top.visible {
        opacity: 1;
        transform: translateY(0);
    }

    .back-to-top:hover {
        transform: scale(1.02);
        background: #FF3C38;
    }

    /* Scroll CTA Button */
    .scroll-cta {
        position: fixed;
        bottom: 1.6rem;
        left: 50%;
        transform: translateX(-50%);
        background: #FF8133;
        color: white;
        border: none;
        border-radius: 30px;
        padding: 1rem 2rem;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        z-index: 10;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .scroll-cta:hover {
        background: #e66f25;
        transform: translateX(-50%) scale(1.02);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    .scroll-cta .arrow {
        transition: all 0.3s ease;
    }

    .scroll-cta.arrow-only {
        padding: 1rem;
        width: 50px;
        height: 50px;
        border-radius: 50%;
        background: #FF8133;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        justify-content: center;
    }

    .scroll-cta.arrow-only .text {
        display: none;
    }

    .scroll-cta.arrow-only .arrow {
        transform: rotate(0deg);
    }

    .scroll-cta.arrow-only:hover {
        transform: translateX(-50%) scale(1.02);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    /* Responsive Styles */
    @media (max-width: 1200px) {
        .method-cards {
            gap: 2rem;
        }

        .footer-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 768px) {
        nav {
            display: none;
        }

        .data-grid {
            grid-template-columns: 1fr;
            gap: 2rem;
        }

        .method-cards {
            flex-direction: column;
            align-items: center;
        }

        .method-card {
            max-width: 100%;
        }

        .method-card:nth-child(n) {
            transform: translateY(0);
        }

        .team-grid {
            grid-template-columns: 1fr;
        }

        .footer-grid {
            grid-template-columns: 1fr;
        }

        footer {
            padding: 4rem 1.5rem;
        }

        #home {
            padding: 6rem 1.5rem 4rem;
        }

        #home .section-title {
            font-size: 2.5rem;
        }

        #home .section-subtitle {
            font-size: 1.2rem;
            margin-bottom: 2rem !important;
        }

        .home-card {
            padding: 2rem;
        }

        .home-card h1 {
            font-size: 1.8rem;
            margin-bottom: 1.5rem;
        }

        .carousel-item .hld-card h3 {
            font-size: 1.8rem;
        }
    }




    .hero-container {
        width: 100%;
        padding: 4rem 3rem;
        position: relative;
    }


    


    .logo {
        text-decoration: none;
        display: flex;
        align-items: center;
    }

    .logo-img {
        height: 200px;
        width: auto;
        margin-top: -70px;
        margin-bottom: -70px;
        display: block;
        object-fit: contain;
        transition: transform 0.3s ease;
    }

    @media (max-width: 768px) {
        .logo-img {
            height: 140px;
            margin-top: -45px;
            margin-bottom: -45px;
        }
    }



/* Reset per il tap highlight su mobile */
* {
-webkit-tap-highlight-color: transparent;
}

/* Header principale */
.mobile-header {
position: fixed;
top: 0;
left: 0;
right: 0;
background: white;
padding: 1rem 2rem;
z-index: 1000;
display: flex;
align-items: center;
transition: box-shadow 0.3s ease;
}

.mobile-header.scrolled {
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Logo */
.logo {
display: flex;
align-items: center;
}

.logo-img {
height: 200px;
width: auto;
margin-top: -70px;
margin-bottom: -70px;
object-fit: contain;
transition: transform 0.3s ease;
}

/* Menu Toggle */
.menu-toggle {
display: none;
}

/* Navigation Desktop */
.mobile-nav {
margin-left: auto;
display: flex;
gap: 2rem;
}

.mobile-nav a {
text-decoration: none;
color: #1F1300;
position: relative;
padding: 0.5rem 0;
transition: color 0.3s ease;
}

.mobile-nav a::after {
content: '';
position: absolute;
bottom: 0;
left: 0;
width: 0;
height: 2px;
background: #FF3C38;
transition: width 0.3s ease;
}

.mobile-nav a:hover::after,
.mobile-nav a.active::after {
width: 100%;
}

/* Mobile Styles */
@media (max-width: 768px) {
.mobile-header {
    padding: 0.5rem 1rem;
}

.logo-img {
    height: 140px;
    margin-top: -45px;
    margin-bottom: -45px;
}

.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    margin-left: auto;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background-color: #1F1300;
    transition: all 0.3s ease;
}

.mobile-nav {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    display: block;
    margin-left: 0;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    display: block;
    padding: 1rem;
    text-align: center;
    font-size: 1.1rem;
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}
}

/* Desktop - aggiungi !important perché queste regole vengano applicate prima del mobile */
.method-card-wrapper:nth-child(1) .method-decoration-image {
    left: 50% !important;
    top: -135px !important;
    width: 120px !important;
    transform: translateX(-50%) !important;
}

.method-card-wrapper:nth-child(2) .method-decoration-image {
    left: 48% !important;
    top: -63px !important;
    width: 86px !important;
    transform: translateX(-50%) !important;
}
.contact-form-container .hld-card {
    padding-bottom: 5rem !important;
}


.method-card-wrapper:nth-child(3) .method-decoration-image {
    left: 50% !important;
    top: -46px !important;
    width: 110px !important;
    transform: translateX(-50%) !important;
}



/* Mobile */
@media (max-width: 768px) {
    .method-card-wrapper:nth-child(1) .method-decoration-image {
        width: 5.9375rem !important;        /* 95px / 16 */
        left: 48% !important;
        top: -6.5rem !important;         /* -101px / 16 */
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 768px) {
    .method-card-wrapper:nth-child(2) .method-decoration-image {
        width: 4.2rem !important;          /* 76px / 16 */
        left: 47% !important;
        top: -2.9375rem !important;         /* -47px / 16 */
        transform: translateX(-50%) !important;
    }
}

@media (max-width: 768px) {
    .method-card-wrapper:nth-child(3) .method-decoration-image {
        width: 5rem !important;             /* 80px / 16 */
        left: 50% !important;
        top: -2.1875rem !important;         /* -35px / 16 */
        transform: translateX(-50%) !important;
    }
}
/* Container del form */
.contact-form-card {
   position: relative !important;
   padding: 2rem !important;
   padding-bottom: 6rem !important;
   margin-bottom: 2rem !important;
   background: white !important;
   border-radius: 24px !important;
   box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
}

/* Bottone di submit */
.contact-submit-btn {
  position: absolute !important;
  bottom: 1.1rem !important;
  right: 11rem !important;
  background: #FF8133 !important;
  color: white !important;
  padding: 0.8rem 1.8rem !important;
  border: none !important;
  border-radius: 30px !important;
  font-size: 1rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-transform: lowercase !important;
  font-family: 'Atkinson Hyperlegible', sans-serif !important;
}

/* Hover del bottone */
.contact-submit-btn:hover {
   background: #FF3C38 !important;
   transform: scale(1.02) !important;
}

/* Versione mobile */
@media (max-width: 768px) {
   .contact-form-card {
       padding: 1.5rem !important;
       padding-bottom: 5rem !important;
   }

   .contact-submit-btn {
       padding: 0.75rem 1.5rem !important;
       font-size: 0.9rem !important;
       bottom: 1.5rem !important;
       right: 1.5rem !important;
   }
}



/* Nasconde il menu principale nelle pagine policy */
.page-template-default .mobile-nav,
.page-template-default .side-nav {
    display: none !important;
}

/* Mostra solo il link 'torna alla home' nelle pagine policy */
.page-template-default header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.page-template-default .mobile-header {
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Nasconde il menu principale e il footer nelle pagine policy */
.page-template-default .mobile-nav,
.page-template-default .side-nav,
.page-template-default #footer {
    display: none !important;
}

/* Mostra solo il link 'torna alla home' nelle pagine policy */
.page-template-default header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.page-template-default .mobile-header {
    padding: 1rem 2rem;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cn-button.accept-button {
    background: #FF8133 !important;
    color: white !important;
    padding: 0.8rem 1.8rem !important;
    border: none !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    font-family: 'Atkinson Hyperlegible', sans-serif !important;
}

.cn-button.accept-button:hover {
    background: #FF3C38 !important;
    transform: scale(1.02) !important;
}

.cn-button.privacy-policy-button {
    background: rgba(255,129,51,0.1) !important;
    color: #FF8133 !important;
    padding: 0.8rem 1.8rem !important;
    border: none !important;
    border-radius: 30px !important;
    transition: all 0.3s ease !important;
    font-family: 'Atkinson Hyperlegible', sans-serif !important;
}

.cn-button.privacy-policy-button:hover {
    background: rgba(255,129,51,0.2) !important;
    transform: scale(1.02) !important;
}

.menu-nav {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-nav li {
    margin: 0;
    padding: 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #1F1300;
    position: relative;
    padding: 0.5rem 0.8rem;
    transition: color 0.3s ease;
}

.hero-logo {
    position: absolute;
    bottom: -5%;
    right: 10%;
    width: 25%;
    z-index: -1;
    transform: rotate(25deg);
    transition: all 0.3s ease;
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-logo {
        width: 40%;
        bottom: -12%;
        right: 8%;
    }
}

@media (max-width: 768px) {
    .hero-logo {
        width: 50%;
        bottom: -10%;
        right: 50%;
        transform: translateX(50%) rotate(15deg);
    }
}

/* Container del form */
.contact-form-card {
   position: relative !important;
   padding: 2rem !important;
   padding-bottom: 6rem !important;
   margin-bottom: 2rem !important;
   background: white !important;
   border-radius: 1.5rem !important; /* 24px / 16 */
   box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.06) !important; /* 4px 20px / 16 */
}



/* Versione mobile */
@media (max-width: 48rem) { /* 768px / 16 */
   .contact-form-card {
       padding: 1.5rem !important;
       padding-bottom: 5rem !important;
   }

   .contact-submit-btn {
       padding: 0.75rem 1.5rem !important;
       font-size: 0.9rem !important;
       width: 80% !important;
       max-width: 11.25rem !important; /* 180px / 16 */
   }
}



@media (max-width: 48rem) { /* 768px */
    .nome-button {
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important; /* Rimuove la larghezza al 100% */
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin: 1rem auto !important;
        right: auto !important;
        max-width: 15rem !important; /* Aggiunge una larghezza massima */
        border-radius: 1.875rem !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .nome-button:hover {
        background: #FF3C38 !important;
        transform: translateX(-50%) scale(1.02) !important; /* Mantiene il centramento durante l'hover */
    }
}


/* Fix per il viewport mobile */
@media (max-width: 48rem) {
   body {
       max-width: 100vw !important;
       overflow-x: hidden !important;
   }
   
   .contact-form-container,
   .contact-form-card {
       width: 100% !important;
       max-width: 100% !important;
       margin-left: 0 !important;
       margin-right: 0 !important;
       padding-left: 1rem !important;
       padding-right: 1rem !important;
   }

   .nome-button,
   .contact-submit-btn {
       width: auto !important;
       max-width: 80% !important;
   }
}

/* Fix per eliminare il bordo bianco a destra */
html, body {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    position: relative !important;
}

/* Fix per il container principale */
.contact-form-container {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 1rem !important;
    overflow-x: hidden !important;
}

/* Fix per la card del form */
.contact-form-card {
    width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* Fix per la sezione contatti */
#contatti {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    margin: 0 !important;
    padding: 4rem 0 !important;
    box-sizing: border-box !important;
}

/* Fix generale per tutte le sezioni */
section {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    box-sizing: border-box !important;
}

/* Fix per il viewport mobile */
@media (max-width: 48rem) {
    * {
        box-sizing: border-box !important;
    }
    
    section,
    .contact-form-container,
    .contact-form-card {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        overflow-x: hidden !important;
    }
}

@media (max-width: 48rem) { /* 768px */
    /* Fix per il container del form */
    .contact-form-container {
        width: 90% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .contact-form-card {
        padding: 1.5rem !important;
        width: 100% !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    /* Fix per il bottone "invia messaggio" */
    .contact-submit-btn {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: auto !important;
        margin: 2rem auto 0 !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }


    /* Fix per il bottone "perché questo nome?" */
    .nome-button {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        width: auto !important;
        margin: 1.5rem auto !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }

    /* Fix per i campi del form */
    .form-group input,
    .form-group textarea {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Fix per il checkbox privacy */
    .form-group.privacy-check {
        padding: 0 0.5rem !important;
    }
}


@media (max-width: 48rem) {
    /* Fix per la sezione contatti per evitare la scrollbar */
    #contatti {
        padding: 3rem 1rem !important;
        min-height: auto !important;
        height: auto !important;
        overflow: hidden !important;
    }

    /* Fix per il container del form */
    .contact-form-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .contact-form-card {
        padding: 1.5rem !important;
        padding-bottom: 4rem !important; /* Ridotto il padding bottom */
        height: auto !important;
    }

    /* Fix per centrare il bottone invia messaggio */
    .contact-submit-btn {
        position: absolute !important;
        left: 50% !important;
        bottom: 2rem !important; /* Aumentato da 1rem a 2rem per alzarlo */
        transform: translateX(-50%) !important;
        width: auto !important;
        right: auto !important;
        margin: 0 !important;
        padding: 0.75rem 1.5rem !important;
    }

    /* Fix per centrare il bottone perché questo nome */
     .nome-button {
        position: absolute !important;
        left: 50% !important;
        bottom: 0.7rem !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        right: auto !important;
        margin: 0 !important;
        padding: 0.75rem 2.5rem !important; /* Aumentato il padding orizzontale */
        white-space: nowrap !important; /* Forza il testo su una singola riga */
        min-width: 15rem !important; /* Assicura una larghezza minima */
    }
    /* Fix per il form */
    .form-group textarea {
        height: 7.5rem !important; /* Ridotta l'altezza del textarea */
    }
}

/* Fix per il form dei contatti desktop */
.contact-form-card {
    position: relative !important;
    padding: 2rem !important;
    padding-bottom: 6rem !important;
    margin-bottom: 2rem !important;
    background: white !important;
    border-radius: 1.5rem !important;
    box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.06) !important;
    overflow: hidden !important; /* Rimuove la scrollbar */
}

/* Fix per il bottone invia messaggio in desktop */
.contact-submit-btn {
    position: absolute !important;
    left: 50% !important; /* Centra il bottone */
    bottom: 2rem !important;
    transform: translateX(-50%) !important;
    background: #FF8133 !important;
    color: white !important;
    padding: 0.8rem 1.8rem !important;
    border: none !important;
    border-radius: 1.875rem !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    margin: 0 !important;
    right: auto !important; /* Rimuove il posizionamento destro */
}

/* Fix per il container del form */
.contact-form-container {
    max-width: 31.25rem !important; /* 500px */
    margin: 0 auto !important;
    width: 100% !important;
    overflow: hidden !important;
}

.modal-close {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: rgba(255,129,51,0.1);
        color: #FF8133;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.5rem;
        transition: all 0.3s ease;
        z-index: 10;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
        padding: 0;
    }
    
    .modal-close::before {
        content: '';
        position: absolute;
        top: -10px;
        right: -10px;
        bottom: -10px;
        left: -10px;
    }

    /* Card dei valori - Stile Mobile con keypoint complete */
@media (max-width: 48rem) { /* 768px */
    /* Container del carousel */
    .carousel {
        width: 90% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        overflow: hidden !important;
        padding: 0 !important;
    }

    .carousel-inner {
        display: flex !important;
        transition: transform 0.5s ease !important;
        width: 100% !important;
    }

    .carousel-item {
        padding: 0 0.75rem !important;
        min-width: 100% !important;
    }

    .values-card {
        height: 25rem !important; /* Aumentata per accomodare le keypoint */
        padding: 1.5rem !important;
        width: 100% !important;
        margin: 0 auto !important;
        min-height: 25rem !important;
        max-height: 25rem !important;
        display: flex !important;
        flex-direction: column !important;
        background: white;
        border-radius: 1.5rem;
        position: relative;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        overflow: hidden;
        box-shadow: 0 0.25rem 1.25rem rgba(0,0,0,0.08);
    }

    .values-content {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important; /* Tornato a space-between */
        position: relative;
        z-index: 1;
    }

    .values-title {
        font-size: 1.25rem !important;
        color: #1F1300;
        margin-bottom: 0.75rem !important;
        line-height: 1.2;
    }

    .values-description {
        font-size: 0.875rem !important;
        line-height: 1.5;
        color: #333;
        margin-bottom: 1rem !important;
    }

    .key-points {
        display: flex;
        flex-direction: column !important;
        gap: 0.5rem !important; /* Aumentato il gap */
        padding-top: 1rem !important;
        border-top: 0.0625rem solid rgba(0,0,0,0.1);
        margin-top: auto;
    }

    .key-point {
        padding: 0.625rem !important; /* Aumentato il padding */
        background: rgba(255,129,51,0.05);
        border-radius: 0.625rem;
        text-align: center;
        min-height: 2.5rem !important; /* Altezza minima garantita */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .key-point span {
        display: block;
        color: #FF8133;
        font-weight: 500;
        font-size: 0.8125rem !important;
    }

    /* Gestione delle immagini decorative */
    .values-card-image {
        position: absolute;
        opacity: 0.1;
        z-index: 0;
        overflow: visible;
        transform: scale(0.7) !important;
    }

    .carousel-item:nth-child(1) .values-card-image {
        width: 25rem;
        right: -1.5rem;
        top: -1rem;
    }

    .carousel-item:nth-child(2) .values-card-image {
        width: 27rem;
        left: -1.5rem;
        bottom: -0.75rem;
    }

    .carousel-item:nth-child(3) .values-card-image {
        width: 29rem;
        right: -1.75rem;
        bottom: -1rem;
    }

    .carousel-item:nth-child(4) .values-card-image {
        width: 28rem;
        left: -2rem;
        top: -0.875rem;
    }

    /* Dots del carousel */
    .carousel-dots {
        margin-top: 0.75rem !important;
    }

    .dot {
        width: 0.375rem !important;
        height: 0.375rem !important;
        margin: 0 0.1875rem !important;
        border-radius: 50%;
    }

    /* Controlli carousel */
    .carousel-controls {
        display: none !important;
    }
}

@media (max-width: 48rem) {
    .data-card-wrapper {
        position: relative;
        height: 10rem !important;
    }

    .data-card {
        position: absolute;
        top: 0;
        left: 0;
        right: 0 !important; /* Estende la card fino al bordo destro */
        bottom: 0;
        text-align: left;
        padding: 1.5rem;
    }

    .data-source {
        font-size: 0.75rem;
        color: #666;
        font-style: italic;
        margin-top: 0.5rem !important;
        text-align: left;
        padding-right: 6rem !important; /* Spazio per l'immagine a destra */
    }
}

@media (max-width: 48rem) {
    /* Sezione contatti nel footer */
    .contact-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .contact-item {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem !important;
    }

    .contact-item i {
        color: #FF8133 !important;
        width: 1.25rem !important;  /* 20px */
    }

    .contact-item span {
        text-align: center !important;
    }
}

@media (max-width: 48rem) {
    .welcome-text {
        font-size: 1.875rem !important; /* 30px */
        line-height: 1.3 !important;
        margin-bottom: 1.25rem !important;
        letter-spacing: -0.03125rem !important;
    }

    .main-text {
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.6 !important;
        margin-bottom: 1.875rem !important;
        letter-spacing: 0.015625rem !important;
    }

    .home-card {
        padding: 2rem 1.5rem !important;
        margin: 0 1rem !important;
    }

    #home h2 {
        font-size: 3.125rem !important; /* 50px */
        margin-bottom: 2rem !important;
    }

    .home-content {
        gap: 1.5rem !important;
    }
}

@media (max-width: 48rem) {
    .data-text {
        text-align: left !important;
        padding-left: 1rem !important;
    }

    .data-title {
        font-size: 2.42rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.25rem !important;
        text-align: left !important;
    }

    .data-subtitle {
        font-size: 1.32rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }

    /* Modifiche alla card dei valori per evitare il taglio */
    .values-card {
        /* Rimosso transform translateY */
        height: auto !important; /* Altezza automatica invece che fissa */
        min-height: 402.5px !important; /* Minima altezza per mantenere la consistenza */
        margin: 2rem 0 !important; /* Aggiunto margine per la spaziatura */
        position: relative !important; /* Assicura il corretto posizionamento */
    }

    /* Aggiustamento container per nuovo layout */
    #valori .container {
        padding-top: 2rem !important; /* Ridotto padding dato che non abbiamo più il translateY */
        overflow: visible !important; /* Assicura che non ci sia taglio */
    }

    /* Fix per il carousel */
    .carousel {
        margin-top: 2rem !important;
        overflow: visible !important;
    }

    /* Aggiustamenti spaziatura generale */
    #valori {
        padding-top: 1rem !important; /* Ridotto significativamente */
        padding-bottom: 2rem !important;
        overflow: visible !important;
    }

    /* Aggiustamenti per la paginazione */
    .carousel-pagination,
    .carousel-dots {
        margin-top: -2rem !important; /* Spazio negativo per avvicinare alla card */
    }

    /* Alza le card */
    .values-card {
        transform: translateY(-4rem) !important; /* Alza maggiormente le card */
    }
}

@media (max-width: 48rem) {
    /* Reset dello scroll behavior di base */
    html {
        scroll-behavior: smooth !important;
    }

    body {
        padding-top: 3.75rem !important; /* Spazio per l'header fisso */
    }

    /* Header e Burger Menu */
    header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 3.75rem !important;
        background: white !important;
        z-index: 999 !important;
        padding: 1rem !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .burger-menu-button {
        position: fixed !important;
        top: 1rem !important;
        right: 1rem !important;
        z-index: 1000 !important;
        width: 2rem !important;
        height: 2rem !important;
        background: none !important;
        border: none !important;
        cursor: pointer !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-around !important;
        padding: 0.25rem !important;
    }

    .burger-menu-button span {
        display: block !important;
        width: 100% !important;
        height: 0.125rem !important;
        background: #000 !important;
        transition: all 0.3s ease !important;
    }

    /* Sezioni e Scroll */
    section {
        min-height: calc(100vh - 3.75rem) !important; /* Altezza viewport meno header */
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        padding-top: 2rem !important;
        scroll-margin-top: 3.75rem !important; /* Altezza dell'header */
    }

    /* Card dei Valori */
    .values-card {
        height: auto !important;
        min-height: 25.15rem !important;
        position: relative !important;
        transform: translateY(0) !important; /* Reset del transform */
        margin: 1rem 0 !important;
    }

    #valori {
        padding-top: 2rem !important;
        scroll-margin-top: 3.75rem !important;
    }

    #valori .container {
        padding: 0 1rem !important;
    }

    /* Stili del testo */
    .data-text {
        text-align: left !important;
        padding-left: 1rem !important;
    }

    .data-title {
        font-size: 2.42rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1.25rem !important;
        text-align: left !important;
    }

    .data-subtitle {
        font-size: 1.32rem !important;
        line-height: 1.4 !important;
        text-align: left !important;
    }

    /* Carousel e Paginazione */
    .carousel {
        margin: 1rem 0 !important;
        overflow: visible !important;
    }

    .carousel-pagination,
    .carousel-dots {
        position: relative !important;
        bottom: 0 !important;
        margin-top: 1rem !important;
    }
}

@media (max-width: 768px) {
    /* Side nav fixes */
    .side-nav {
        right: 1rem !important;
        z-index: 1500 !important;  /* Increased z-index to stay above sections */
    }

    /* Increased dot size by 20% from original 8px */
    .nav-dot {
        width: 9.6px !important;   /* 8px + 20% */
        height: 9.6px !important;  /* 8px + 20% */
    }

    /* Section z-index adjustments */
    #metodo {
        z-index: 3 !important;
        position: relative !important;
    }
    
    #team {
        z-index: 2 !important;
        position: relative !important;
    }

    /* Better touch target for dots */
    .nav-dot::after {
        content: '';
        position: absolute;
        top: -8px;
        right: -8px;
        bottom: -8px;
        left: -8px;
    }
}

@media (max-width: 768px) {
    /* Container principale della sidebar */
    .side-nav {
        right: 0.75rem !important;
        gap: 0.75rem !important;
        z-index: 1001 !important;
        padding: 0.4rem !important;
    }

    /* Dot ridotti ulteriormente */
    .nav-dot {
        width: 1rem !important;  /* Ridotto di un ulteriore 20% */
        height: 1rem !important;
        border-radius: 50% !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Cerchio interno del dot */
    .nav-dot::after {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 0.3rem !important;
        height: 0.3rem !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
    }

    /* Dot attivo */
    .nav-dot.active::after {
        background: #FF8133 !important;
        width: 0.4rem !important;
        height: 0.4rem !important;
    }

    /* Label del dot */
    .nav-dot::before {
        right: 2rem !important;
        padding: 0.5rem 0.75rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 1rem !important;
    }

    /* Previene selezione testo durante il touch */
    .side-nav, .nav-dot {
        user-select: none !important;
        -webkit-user-select: none !important;
    }

    /* Fix per lo scrolling delle sezioni */
    #team, #metodo {
        scroll-margin-top: 4.5rem !important; /* Aggiunge margine per lo scroll corretto */
    }
    
    /* Assicura che tutte le sezioni abbiano lo stesso comportamento di scroll */
    section {
        scroll-margin-top: 4.5rem !important;
    }
}
@media (max-width: 768px) {
    /* Stili base mantenuti da prima */
    .side-nav {
        right: 0.75rem !important;
        gap: 0.75rem !important;
        z-index: 1001 !important;
        padding: 0.4rem !important;
    }

    .nav-dot {
        width: 1rem !important;
        height: 1rem !important;
        border-radius: 50% !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Cerchio interno del dot */
    .nav-dot::after {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 0.3rem !important;
        height: 0.3rem !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
    }

    .nav-dot.active::after {
        background: #FF8133 !important;
        width: 0.4rem !important;
        height: 0.4rem !important;
    }

    /* Nuovi stili per l'animazione della label */
    .nav-dot::before {
        content: attr(data-label) !important;
        position: absolute !important;
        right: 2rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.3s ease !important;
        pointer-events: none !important;
    }

    /* Mostra label durante l'hover o quando ha la classe showing-label */
    .nav-dot:hover::before,
    .nav-dot.showing-label::before {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Fix per lo scrolling delle sezioni */
    section {
        scroll-margin-top: 4.5rem !important;
    }

    /* Assicurati che ogni sezione abbia un'altezza minima corretta */
    #team, #metodo, #valori, #dati, #contatti {
        min-height: 100vh !important;
        position: relative !important;
        scroll-margin-top: 4.5rem !important;
    }
}

@media (max-width: 768px) {
    /* Container principale della sidebar */
    .side-nav {
        right: 0.75rem !important;
        gap: 0.75rem !important;
        z-index: 1001 !important;
        padding: 0.4rem !important;
    }

    /* Dot ridotti */
    .nav-dot {
        width: 1rem !important;
        height: 1rem !important;
        border-radius: 50% !important;
        position: relative !important;
        transition: all 0.3s ease !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    /* Cerchio interno del dot */
    .nav-dot::after {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 0.3rem !important;
        height: 0.3rem !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
    }

    /* Dot attivo */
    .nav-dot.active::after {
        background: #FF8133 !important;
        width: 0.4rem !important;
        height: 0.4rem !important;
    }

    /* Label del dot con transizione */
    .nav-dot::before {
        content: attr(data-label) !important;
        position: absolute !important;
        right: 2rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
    }

    /* Stato visibile della label */
    .nav-dot.showing-label::before {
        opacity: 1 !important;
        visibility: visible !important;
    }
}

@media (max-width: 768px) {
    .side-nav {
        right: 0.75rem !important;
        gap: 0.75rem !important;
        z-index: 1001 !important;
        padding: 0.4rem !important;
    }

    .nav-dot {
        width: 1rem !important;
        height: 1rem !important;
        border-radius: 50% !important;
        position: relative !important;
        cursor: pointer !important;
        -webkit-tap-highlight-color: transparent !important;
    }

    .nav-dot::after {
        content: '' !important;
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 0.3rem !important;
        height: 0.3rem !important;
        background: rgba(255, 255, 255, 0.5) !important;
        border-radius: 50% !important;
        transition: all 0.3s ease !important;
    }

    .nav-dot.active::after {
        background: #FF8133 !important;
        width: 0.4rem !important;
        height: 0.4rem !important;
    }

    .nav-dot::before {
        content: attr(data-label) !important;
        position: absolute !important;
        right: 2rem !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        background: rgba(255, 255, 255, 0.95) !important;
        padding: 0.5rem 0.75rem !important;
        border-radius: 1rem !important;
        font-size: 0.875rem !important;
        white-space: nowrap !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
        pointer-events: none !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    }

    .nav-dot.showing-label::before {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Ensure sections have proper z-index and positioning */
    section {
        position: relative !important;
        z-index: 1 !important;
    }

    #metodo {
        z-index: 4 !important;
    }

    #team {
        z-index: 2 !important;
    }
}

.revoke-consent {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.revoke-consent:hover {
    color: #FF8133;
}

#home {
    background: #2B3A67 !important;
    min-height: 100vh !important;
    padding: 4rem 2rem !important;
    position: relative !important;
    box-shadow: -50px 30px 40px -20px rgba(0, 0, 0, 0.3), 
                50px 30px 40px -20px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    align-items: center !important;
    z-index: 7 !important;
}

.home-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.welcome-text {
    font-size: 1.7rem !important;
    color: #1F1300 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.main-text {
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

.nome-button {
    position: relative !important;
    bottom: -1.5rem !important;
    width: fit-content !important;
    margin: 1.5rem auto 0 !important;
    background: #FF8133 !important;
    color: white !important;
    padding: 0.8rem 1.8rem !important;
    border-radius: 30px !important;
    border: none !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    right: -0rem !important;

}

.nome-button:hover {
    background: #FF3C38 !important;
    transform: scale(1.02) !important;
}

.home-card {
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 3.5rem !important;
    position: relative !important;
}

.home-card {
    padding-bottom: 7rem !important;
}

.container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    position: relative !important;
    left: 0 !important;
    right: 0 !important;
}




.home-card {
    max-width: 1200px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 3.5rem !important;
    display: flex !important;
    flex-direction: column !important;
}



/* Side Navigation - Desktop */
.side-nav {
    position: fixed !important;
    right: 0.3rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 1rem !important;
    z-index: 1500 !important;
}

.nav-dot {
    width: 12px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    position: relative !important;
    transition: all 0.3s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

/* Stato attivo del dot */
.nav-dot.active {
    background: #FF8133 !important;
    transform: scale(1.2) !important;
}

/* Label del dot */
.nav-dot::before {
    content: attr(data-label) !important;
    position: absolute !important;
    right: 24px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: white !important;
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.875rem !important;
    color: #1F1300 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    pointer-events: none !important;
}

/* Mostra label su hover */
.nav-dot:hover::before {
    opacity: 1 !important;
    visibility: visible !important;
    right: 28px !important;
}

/* Mostra label quando ha la classe showing-label */
.nav-dot.showing-label::before {
    opacity: 1 !important;
    visibility: visible !important;
}


/* Fix specifici per sezioni */
#metodo {
    z-index: 4 !important;
    position: relative !important;
}

#team {
    z-index: 2 !important;
    position: relative !important;
}

section {
    scroll-margin-top: 4.5rem !important;
}

.contact-form-card {
   position: relative !important;
   padding: 2rem !important;
   padding-bottom: 4rem !important;
   margin-bottom: 2rem !important;
   background: white !important;
   border-radius: 24px !important;
   box-shadow: 0 4px 20px rgba(0,0,0,0.06) !important;
   overflow: hidden !important;
}

.team-card {
    cursor: default !important;
}

.hero-section {
    min-height: 100vh !important;
    overflow: hidden !important;
    position: relative !important;
}

.hero-container {
    width: 100% !important;
    padding: 4rem 3rem !important;
    display: grid !important;
    grid-template-columns: 100% !important; /* Divisione in colonne testo/immagine */
}

.hero-content {
    width: 100% !important;
    grid-column: 1 !important;
    padding-right: 2rem !important;
}

.hero-title {
    font-size: 4rem !important;
    line-height: 1.1 !important;
    color: #1F1300 !important;
    margin-bottom: 2.5rem !important;
}

.hero-subtitle {
    font-size: 1.7rem !important;
    line-height: 1.4 !important;
    color: #1F1300 !important;
    opacity: 0.9 !important;
}

.hero-logo {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 476px !important;
    height: auto !important;
    transform: rotate(27deg) !important;
    align-self: center !important;
    justify-self: center !important;
}




.hero-logo {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 29.75rem !important;
    height: auto !important;
    transform: rotate(27deg) !important;
    align-self: center !important;
    justify-self: center !important;
    position: absolute !important;
    bottom: -8% !important;
    right: 8% !important;
    z-index: -20 !important;
}

/* Base hero logo styles */
.hero-logo {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 15rem !important;
    height: auto !important;
    transform: rotate(166deg) !important;
    align-self: center !important;
    justify-self: center !important;
    position: absolute !important;
    bottom: 14% !important;
    right: 12% !important;
    z-index: -20 !important;
    opacity: 1 !important;
    background-opacity: 1 !important;}

/* Base hero text styles */
.hero-title {
    font-size: 4.5rem !important;
    line-height: 1.1 !important;
    margin-bottom: 2rem !important;
}

.hero-subtitle {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
}

/* Desktop large (1400px and up) */
@media (min-width: 87.5rem) {
    .hero-logo {
        max-width: 18rem !important;
        bottom: 14% !important;
        right: 12% !important;
    }
}

/* Desktop (1024px to 1399px) */
@media (min-width: 64rem) and (max-width: 87.4375rem) {
    .hero-logo {
        max-width: 15rem !important;
        bottom: 12% !important;
        right: 10% !important;
    }
    
    .hero-title {
        font-size: 4rem !important;
    }
}

/* Tablet (768px to 1023px) */
@media (min-width: 48rem) and (max-width: 63.9375rem) {
    .hero-logo {
        max-width: 13rem !important;
        bottom: 10% !important;
        right: 8% !important;
    }
    
    .hero-title {
        font-size: 3.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.25rem !important;
    }
}

/* Mobile landscape (576px to 767px) */
@media (min-width: 36rem) and (max-width: 47.9375rem) {
    .hero-logo {
        max-width: 11rem !important;
        bottom: auto !important;
        top: 65% !important;
        right: 50% !important;
        transform: translateX(50%) rotate(166deg) !important;
    }
    
    .hero-title {
        font-size: 2.75rem !important;
        margin-bottom: 1.5rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .hero-content {
        padding-bottom: 8rem !important; /* Spazio per il logo */
    }
}

/* Mobile portrait (up to 575px) */
@media (max-width: 35.9375rem) {
    .hero-logo {
        max-width: 9rem !important;
        bottom: auto !important;
        top: 75% !important;
        right: 50% !important;
        transform: translateX(50%) rotate(166deg) !important;
    }
    
    .hero-title {
        font-size: 2.9rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .hero-content {
        padding-bottom: 7rem !important; /* Spazio per il logo */
    }
    
    .hero-container {
        padding: 2rem 1.5rem !important;
    }
}

/* Base styles */
.home-card {
    max-width: 900px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 3.5rem !important;
    position: relative !important;
}

.welcome-text {
    font-size: 1.7rem !important;
    color: #1F1300 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

.main-text {
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    color: #333 !important;
}

/* Tablet */
@media (max-width: 64rem) {
    .home-card {
        padding: 2.5rem !important;
    }
    
    .welcome-text {
        font-size: 1.5rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .main-text {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
    }
}

/* Mobile */
@media (max-width: 48rem) {
    .home-card {
        padding: 1.5rem !important;
        margin: 0 1rem !important;
        min-height: auto !important;
    }
    
    .welcome-text {
        font-size: 1.25rem !important;
        line-height: 1.3 !important;
        margin-bottom: 0.75rem !important;
    }
    
    .main-text {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
        margin-bottom: 1rem !important;
    }
    
    .home-content {
        gap: 1rem !important;
    }
}

/* Small Mobile */
@media (max-width: 30rem) {
    .home-card {
        padding: 1.25rem !important;
    }
    
    .welcome-text {
        font-size: 1.1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .main-text {
        font-size: 1rem !important;
    }
}

/* Mobile fix per il bottone 'perché questo nome' */
@media (max-width: 770px) {
    .nome-button {
        position: absolute !important;
        left: 50% !important;
        bottom: 1rem !important;
        transform: translateX(-50%) !important;
        margin: 0 !important;
        padding: 0.75rem 1.5rem !important;
        width: auto !important;
        min-width: 12rem !important;
        text-align: center !important;
    }

    /* Fix hover per mobile */
    .nome-button:hover {
        transform: translateX(-50%) !important;
        background: #FF3C38 !important;
    }

    /* Assicuriamo che il container mantenga spazio per il bottone */
    .home-card {
        padding-bottom: 4rem !important;
        position: relative !important;
    }
}

.home-decoration-image {
    position: absolute !important;
    width: 250px !important;
    top: 12% !important;
    left: 59% !important;
    transform: rotate(-15deg) !important;
    z-index: 3 !important;
    pointer-events: none !important;
}

/* Home decoration image (flower) */
.home-decoration-image {
    position: absolute !important;
    width: 205px !important;
    top: 130px !important;
    right: -60px !important;
    transform: rotate(-15deg) !important;
    z-index: 3 !important;
    pointer-events: none !important;
    transition: all 0.3s ease !important;
}


/* Mobile styles */
@media (max-width: 768px) {
    .home-decoration-image {
        position: absolute !important;
        width: 132px !important;
        top: 130px !important;
        right: -60px !important;
        transform: rotate(-15deg) !important;
        z-index: 3 !important;
        pointer-events: none !important;
        transition: all 0.3s ease !important;
    }
}

/* Ensure the container has proper positioning */
.home-card {
    position: relative !important;
    overflow: hidden !important;
}

/* Data cards positioning */
.data-cards {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.8rem !important;
    position: relative !important;
}

/* Water drops background image - Desktop */
.data-cards::before {
    content: '' !important;
    position: absolute !important;
    top: 50% !important;
    right: -159px !important;
    width: 740px !important;
    height: 788px !important;
    background-image: url(assets/icone/ICONS_RGB-07.png) !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    opacity: 1 !important;
    pointer-events: none !important;
    transform: translateY(-50%) !important;
    z-index: 1 !important;
}

/* Data card wrapper */
.data-card-wrapper {
    position: relative !important;
    height: 160px !important;
}

/* Data card */
.data-card {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 120px !important;
    bottom: 0 !important;
    text-align: left !important;
    padding: 1.5rem !important;
}

/* Tablet-specific fixes */
@media (min-width: 769px) and (max-width: 1024px) {
    .data-cards::before {
        right: -180px !important;  /* Adjusted to ensure drops stay to the right */
        width: 600px !important;   /* Slightly reduced width for tablet */
    }
    
    .data-card {
        right: 100px !important;   /* Maintain space for drops */
    }
}

/* Mobile styles - keep existing positioning */
@media (max-width: 768px) {
    .data-cards::before {
        right: -133px !important;
        width: 450px !important;
    }
    
    .data-card {
        right: 0 !important;
    }
}

/* Submit button styles */
.contact-submit-btn {
    position: absolute !important;
    left: 50% !important;
    bottom: 2rem !important;
    transform: translateX(-50%) !important;
    background: #FF8133 !important;
    color: white !important;
    padding: 0.8rem 1.8rem !important;
    border: none !important;
    border-radius: 1.875rem !important;
    font-size: 1rem !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    white-space: nowrap !important;
}

/* Hover state - mantiene il translateX e aggiunge solo la scala */
.contact-submit-btn:hover {
    background: #FF3C38 !important;
    transform: translateX(-50%) scale(1.02) !important;
}

/* Focus state - stesso comportamento dell'hover */
.contact-submit-btn:focus {
    outline: none !important;
    background: #FF3C38 !important;
    transform: translateX(-50%) scale(1.02) !important;
}

/* Active state - piccola riduzione della scala quando premuto */
.contact-submit-btn:active {
    transform: translateX(-50%) scale(0.98) !important;
}

/* Mobile styles */
@media (max-width: 768px) {
    .contact-submit-btn {
        padding: 0.75rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 48rem) { /* 768px */
    /* Fix per il bottone 'perché questo nome' */
    .nome-button {
        position: relative !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        top: 0.9rem;
        padding: 0.75rem 1.5rem !important; /* Aumentato da 1.5rem a 2.5rem per più spazio */
        min-width: 15rem !important; /* Aggiunto per garantire una larghezza minima */
        text-align: center !important;
        white-space: nowrap !important; /* Previene il wrapping del testo */
    }

    /* Manteniamo lo stesso hover effect */
    .nome-button:hover {
        background: #FF3C38 !important;
    }
}
/* Aggiungiamo breakpoint progressivi per il menu */

/* Base style - dimensione originale */
.mobile-nav a {
    font-size: 1rem !important;
    white-space: nowrap !important;
}

/* Breakpoint a 900px */
@media (max-width: 900px) {
    .mobile-nav a {
        font-size: 0.9rem !important;
    }
}

/* Breakpoint a 850px */
@media (max-width: 850px) {
    .mobile-nav a {
        font-size: 0.85rem !important;
    }
}

/* Breakpoint a 800px */
@media (max-width: 800px) {
    .mobile-nav a {
        font-size: 0.8rem !important;
    }
}

/* Breakpoint a 768px - versione mobile esistente */
@media (max-width: 768px) {
    .mobile-nav {
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        background: white !important;
        padding: 1rem !important;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
        transform: translateY(-100%) !important;
        transition: transform 0.3s ease !important;
        display: block !important;
        margin-left: 0 !important;
    }
    
    .mobile-nav.active {
        transform: translateY(0) !important;
    }

    .mobile-nav a {
        display: block !important;
        padding: 1rem !important;
        text-align: center !important;
        font-size: 1.1rem !important;
    }
}