/* ============== 1. SETUP E VARIABILI ============== */
:root {
    --colore-primario-scuro: #0a2e3f;
    --colore-accento-teal: #00a79d;
    --colore-card-sfondo: rgba(10, 60, 80, 0.3); /* Un blu-verde scuro per le card */
    --colore-testo-principale: #ffffff;
    --colore-testo-secondario: #cce4e7;
    --font-principale: 'Poppins', 'Helvetica', 'Arial', sans-serif; /* Nuovo Font! */
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-principale);
    background-color: var(--colore-primario-scuro);
    color: var(--colore-testo-principale);
    line-height: 1.7;
}

/* ============== ANIMAZIONI ============== */
/* ANIMAZIONE PREZZO CON CERCHI */
.price-highlight {
    position: relative;
    display: inline-block;
    font-weight: 800;
    color: var(--colore-accento-teal);
}

.price-highlight::before,
.price-highlight::after {
    content: '';
    position: absolute;
    border: 2px solid var(--colore-accento-teal);
    border-radius: 50%;
    opacity: 0.7;
    animation: pulse-circle 2s ease-in-out infinite;
}

.price-highlight::before {
    width: 80px;
    height: 80px;
    top: -15px;
    left: -15px;
    animation-delay: 0s;
}

.price-highlight::after {
    width: 100px;
    height: 100px;
    top: -25px;
    left: -25px;
    animation-delay: 1s;
}

@keyframes pulse-circle {
    0% {
        transform: scale(0.8);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

/* HOVER per rallentare animazione */
.price-highlight:hover::before,
.price-highlight:hover::after {
    animation-duration: 3s;
}

/* ============== 2. SFONDO E WRAPPER ============== */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: url('../images/sfondo-acqua.jpg') no-repeat center center/cover;
    opacity: 0.5;
    transform: scale(1.1); /* Leggermente zoomato per evitare bordi */
}

.page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
}

/* ============== 3. HEADER STICKY E WOW ============== */
/* HEADER FULL-WIDTH */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0; /* Rimuovi padding laterale dall'header */
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    width: 100vw; /* Full viewport width */
    left: 0;
    margin-left: calc(-50vw + 50%); /* Espande oltre il container */
    
    /* LINEA SEPARATORE FULL WIDTH */
    border-bottom: 2px solid var(--colore-accento-teal);
    box-shadow: 0 2px 10px rgba(0, 167, 157, 0.3);
}

/* Stili per la barra dei social */
.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.nav-social-icons .social-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--colore-testo-secondario);
    text-transform: uppercase;
    padding: 10px 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 15px;
}

.nav-social-icons a {
    transition: transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.nav-social-icons a:hover {
    transform: translateY(-3px);
}

.nav-social-icons img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1); /* Rende le icone bianche */
}

/* Mantieni il colore bianco anche all'hover */
.nav-social-icons a:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
    opacity: 0.9;
}

/* CONTENUTO HEADER CENTRATO */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px; /* Stesso max-width del page-wrapper */
    margin: 0 auto;
    padding: 0 40px; /* Padding laterale qui */
}

/* QUANDO HEADER È SCROLLED */
header.scrolled {
    background-color: var(--colore-card-sfondo);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 10px 0; /* Rimuovi padding laterale */
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.3),
        0 2px 10px rgba(0, 167, 157, 0.3);
    border-bottom: 2px solid var(--colore-accento-teal);
}

header.scrolled .header-content {
    padding: 0 40px;
}

.logo-container img {
    height: 70px; /* Aumentato da 55px a 70px */
    width: auto;
    transition: all 0.4s ease;
}

header.scrolled .logo-container img {
    height: 60px; /* Aumentato da 45px a 60px quando si scrolla */
}

/* Regola per schermi medi */
@media (max-width: 1024px) {
    .logo-container img {
        height: 65px;
    }
    
    header.scrolled .logo-container img {
        height: 55px;
    }
}

/* Regola per schermi piccoli */
@media (max-width: 768px) {
    .logo-container img {
        height: 55px;
    }
    
    header.scrolled .logo-container img {
        height: 50px;
    }
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

#main-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

#main-nav a {
    color: var(--colore-testo-secondario);
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    padding-bottom: 5px;
    position: relative;
    transition: color 0.3s ease;
}

#main-nav a:hover {
    color: var(--colore-testo-principale);
}

#main-nav a::after { /* Effetto WOW sulla nav */
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--colore-accento-teal);
    transition: width 0.4s ease;
}

#main-nav a:hover::after {
    width: 100%;
}

.nav-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1010;
}

#hamburger-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--colore-testo-principale);
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}

#close-nav-btn {
    color: var(--colore-testo-principale);
    font-size: 30px;
    position: absolute;
    top: 20px;
    right: 20px;
}

.nav-social-icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 30px;
}

.nav-social-icons .social-text {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--colore-testo-secondario);
    text-transform: uppercase;
    padding: 10px 5px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    margin-right: 10px;
}

.nav-social-icons a {
    transition: transform 0.3s ease;
}

.nav-social-icons a:hover {
    transform: translateY(-3px);
}


/* ============== 4. HERO SECTION ROTANTE - CARD FULL ============== */
.hero-section-clean {
    position: relative;
    padding: 80px 0 60px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.hero-content {
    /* Rimuovi tutti gli stili background/card precedenti se presenti */
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    z-index: 2;
    
    /* NUOVI STILI per altezza fissa */
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 45px;
    background: linear-gradient(135deg, var(--colore-accento-teal), #00c6b8);
    color: white !important;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 167, 157, 0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 1;
    min-width: 280px;
    align-self: flex-start; /* Allinea a sinistra su desktop */
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
    z-index: -1;
}

.cta-button:hover::before {
    transform: translateX(100%);
}

.cta-button::after {
    content: '→';
    font-size: 20px;
    font-weight: bold;
    transform: translateX(-10px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 167, 157, 0.5);
    background: linear-gradient(135deg, #00c6b8, var(--colore-accento-teal));
}

.cta-button:hover::after {
    transform: translateX(0);
    opacity: 1;
}

.hero-content h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--colore-accento-teal);
    margin-bottom: 15px; /* Ridotto */
    line-height: 1.3;
}

.hero-content h1 {
    font-size: 48px; /* Leggermente più piccolo */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--colore-testo-principale);
}

.hero-content p {
    font-size: 18px;
    color: var(--colore-testo-secondario);
    line-height: 1.6;
    flex: 1; /* Prende lo spazio rimanente */
    overflow: hidden;
    margin-bottom: 32px;
    max-height: 120px;
    overflow-y: auto;
}

.hero-section .hero-content p {
  font-size: 15px;
  color: var(--colore-testo-secondario);
  line-height: 1.5;
  margin-bottom: 32px;
  max-height: 120px;
  overflow-y: auto;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Ridotto */
    object-fit: contain;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* CONTROLLI SLIDER - SPOSTATI PIÙ IN ALTO */
/* DOTS DENTRO LA HERO SECTION */
.hero-controls {
    position: absolute;
    bottom: 20px; /* Default per mobile/tablet */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10;
    width: fit-content;
}

/* DOTS PIÙ ALTI SU DESKTOP */
@media (min-width: 1025px) {
    .hero-controls {
        bottom: 40px; /* Alzati da 20px a 40px */
    }
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--colore-accento-teal);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-dot.active,
.hero-dot:hover {
    background: var(--colore-accento-teal);
    transform: scale(1.2);
}

/* SPAZIO MAGGIORE PER DOTS MOBILE/TABLET */
@media (max-width: 1024px) {
    .hero-section {
        padding: 40px 0 100px 0; /* Aumentato padding bottom */
    }
    
    .hero-controls {
        bottom: 30px; /* Più distanti dal bordo */
    }
    
    .hero-content {
        margin-bottom: 50px; /* Spazio extra sotto il contenuto */
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0 120px 0; /* Ancora più spazio su mobile */
    }
    
    .hero-controls {
        bottom: 40px; /* Molto più distanti */
    }
    
    .hero-content {
        margin-bottom: 60px; /* Spazio generoso */
    }
    
    .cta-button {
        margin-bottom: 30px; /* Spazio diretto sotto la CTA */
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 20px 0 140px 0; /* Massimo spazio su mobile piccolo */
    }
    
    .hero-controls {
        bottom: 50px;
    }
}

/* MOBILE/TABLET - SOLO TESTO MINIMAL */
/* MOBILE - CTA CENTRATA */
@media (max-width: 1024px) {
    .cta-button {
        align-self: center;
        padding: 18px 40px;
        font-size: 17px;
        min-width: 260px;
    }
    
    .hero-section {
        min-height: 60vh; /* Molto più basso */
        padding: 30px 0;
    }
    
    .hero-slide {
        grid-template-columns: 1fr; /* Solo una colonna */
        gap: 0;
        text-align: center;
        padding: 40px 30px;
        align-items: center;
        justify-content: center;
    }
    
    /* NASCONDI immagini su mobile/tablet */
    .hero-image {
        display: none;
    }
    
    .hero-content {
        order: 1;
        margin-bottom: 0;
        max-width: 600px; /* Limita larghezza per leggibilità */
        margin: 0 auto;
    }
    
    .hero-content h1 {
        font-size: 36px;
        margin-bottom: 15px;
        line-height: 1.1;
    }
    
    .hero-content h2 {
        font-size: 18px;
        margin-bottom: 20px;
    }
    
    .hero-content p {
        font-size: 16px;
        margin-bottom: 30px;
        line-height: 1.5;
    }
    
    .cta-button {
        padding: 16px 32px;
        font-size: 16px;
    }
    
    .hero-controls {
        bottom: 20px;
    }
}

/* MOBILE PICCOLO */
@media (max-width: 480px) {
    .hero-slide {
        padding: 30px 20px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content h2 {
        font-size: 16px;
    }
    
    .hero-content p {
        font-size: 15px;
    }
    
    .cta-button {
        padding: 14px 28px;
        font-size: 15px;
    }
}

/* ============== 5. BARRA SOCIAL - Stile per la barra dei social - versione minimal */
.social-bar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 999;
    padding: 10px 0;
}

.social-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(10, 60, 80, 0.7);
    border: 1px solid rgba(72, 207, 199, 0.5); /* Stesso colore del separatore del footer */
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-bar a:hover {
    transform: translateY(-3px);
    background: var(--colore-accento-teal);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-bar img {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
}

.social-bar span {
    display: none;
}

/* ============== ICONA COOKIE FISSA ============== */
.cookie-icon {
    position: fixed;
    left: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(10, 60, 80, 0.7);
    border: 1px solid rgba(72, 207, 199, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1001;
}

.cookie-icon:hover {
    transform: translateY(-3px);
    background: var(--colore-accento-teal);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.cookie-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* ============== MODALE COOKIE GLASSMORPHISM ============== */
.cookie-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 46, 63, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.cookie-modal.show {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.cookie-modal-content {
    background: var(--colore-card-sfondo);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 40px;
    max-width: 500px;
    margin: 20px;
    color: var(--colore-testo-principale);
    animation: slideUp 0.4s ease;
}

.cookie-modal-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--colore-testo-principale);
    text-align: center;
}

.cookie-modal-content > p {
    color: var(--colore-testo-secondario);
    margin-bottom: 25px;
    text-align: center;
    line-height: 1.5;
}

.cookie-categories {
    margin: 25px 0;
}

.cookie-category {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(10, 60, 80, 0.3);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.cookie-category label {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 8px;
}

/* ============== CHECKBOX CUSTOM CON COLORI GIUSTI ============== */
.cookie-category input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--colore-accento-teal);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    margin-right: 12px;
    transition: all 0.3s ease;
}

.cookie-category input[type="checkbox"]:checked {
    background: var(--colore-accento-teal);
}

.cookie-category input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 12px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cookie-category input[type="checkbox"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-category strong {
    color: var(--colore-testo-principale);
}

.cookie-category p {
    color: var(--colore-testo-secondario);
    font-size: 14px;
    margin: 0;
    padding-left: 30px;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin: 25px 0;
}

.btn-cookie {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--colore-accento-teal);
    color: var(--colore-testo-principale);
}

.btn-primary:hover {
    background-color: #00c2b8;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--colore-accento-teal);
    border: 2px solid var(--colore-accento-teal);
}

.btn-secondary:hover {
    background-color: var(--colore-accento-teal);
    color: var(--colore-testo-principale);
}

.btn-minimal {
    background-color: transparent;
    color: var(--colore-testo-secondario);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-minimal:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--colore-testo-principale);
}

.cookie-footer {
    text-align: center;
    font-size: 12px;
    color: var(--colore-testo-secondario);
    margin-top: 20px;
}

.cookie-footer a {
    color: var(--colore-accento-teal);
    text-decoration: none;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .cookie-modal-content {
        padding: 30px 20px;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .btn-cookie {
        width: 100%;
    }
}

/* SPAZIO TRA SEZIONI */
.content-section {
    padding: 80px 0; /* Ridotto da 100px */
    text-align: center;
    margin-top: 40px; /* Aggiunto margine top */
}

.section-title {
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-title h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-weight: 700;
}

.section-title p {
    font-size: 18px;
    color: var(--colore-testo-secondario);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.feature-card {
    background: var(--colore-card-sfendo);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: rgba(10, 60, 80, 0.5);
}

.feature-icon {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(10, 60, 80, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(72, 207, 199, 0.5);
    transition: all 0.3s ease;
}

.feature-card:hover .icon-circle {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    background: rgba(10, 60, 80, 0.9);
}

.feature-svg {
    width: 40px;
    height: 40px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-svg {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Sezione CTA "Offerta" */
.cta-section {
    background-color: rgba(0,0,0,0.2);
    border-radius: 20px;
}

.offer-details p {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.offer-details .cta-button {
    margin-top: 20px;
}

/* ============== 7. NUOVO FOOTER STILE PROFESSIONALE ============== */
.new-footer {
    padding: 60px 0 20px 0;
    background-color: #0a2e3f; /* Colore di sfondo scuro come da screenshot */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    margin-bottom: 50px;
}

.footer-logo {
    max-width: 250px; /* Logo grande */
    opacity: 0.9;
}

.footer-contact-column h3 {
    font-size: 24px;
    margin-bottom: 25px;
    font-weight: 600;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 16px;
}

.contact-item img {
    width: 20px;
    height: 20px;
}

.contact-item a {
    color: var(--colore-testo-secondario);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--colore-accento-teal);
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 30px auto 0;
    padding: 20px 40px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mywebby-credit {
    display: flex;
    align-items: center;
    gap: 6px;
}

.heart-icon {
    width: 14px;
    height: 14px;
}

.mywebby-logo {
    height: 20px;
    width: auto;
    margin-left: 4px;
    vertical-align: middle;
}

.mywebby-link {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.mywebby-link:hover {
    color: #fff;
}

/* Responsive per il nuovo footer */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-logo-column {
        margin-bottom: 40px;
    }
    .contact-item {
        justify-content: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }
}

/* ============== 8. ANIMAZIONI "WOW" ON SCROLL ============== */
.reveal {
  position: relative;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}


/* ============== 9. RESPONSIVE PER MOBILE ============== */
/* Stile per il menu mobile */
@media (max-width: 900px) { /* Breakpoint per tablet e mobile */
    #main-nav {
        position: fixed;
        top: 0;
        right: -100%; /* Parte da fuori schermo */
        width: 300px;
        height: 100vh;
        background-color: rgba(10, 46, 63, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start; /* Allinea in alto */
        align-items: center;
        padding-top: 100px; /* Aggiunge spazio in alto */
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        z-index: 1005; /* Aumentato z-index */
    }
    
    /* Stile per la barra dei social su mobile */
    .nav-social-icons {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        margin: 20px 0;
        width: 100%;
        padding: 0 20px;
        gap: 15px;
    }
    
    .nav-social-icons .social-text {
        flex: 1 0 100%;
        text-align: center;
        font-size: 14px;
        letter-spacing: 2px;
        margin: 0 0 15px 0;
        padding: 0 0 10px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        width: 100%;
    }
    
    .nav-social-icons a {
        margin: 0;
        width: 35px;
        height: 35px;
        flex-shrink: 0;
    }
    
    .nav-social-icons img {
        filter: brightness(0) invert(1);
    }

    #main-nav.active {
        right: 0 !important; /* Entra in scena */
    }

    #main-nav ul {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    #main-nav a {
        font-size: 22px;
    }

    .nav-toggle-btn {
        display: block;
    }

    .nav-open .nav-toggle-btn#hamburger-btn {
        opacity: 0;
        pointer-events: none;
    }

    .nav-social-icons {
        display: flex;
        gap: 20px;
        position: absolute;
        bottom: 40px;
        opacity: 0.8;
    }

    .nav-social-icons img {
        width: 24px;
        height: 24px;
        filter: invert(1);
    }
}

@media (max-width: 768px) {
    .page-wrapper { padding: 0 20px; }
    header { padding: 15px 20px; }
    
    /* Stile per il testo MINERAL PUR accanto al logo in mobile */
    .logo-container {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    
    .logo-container::after {
        content: "MINERAL PUR";
        font-size: 22px;
        font-weight: 700;
        color: var(--colore-accento-teal);
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: nowrap;
    }
    .hero-section { min-height: 70vh; }
    .hero-section-clean { padding: 50px 0 40px; }
    .hero-content h1 { font-size: 28px; text-align: center; }
    .hero-content p { font-size: 16px; text-align: center; }
    .social-bar { display: none; }
    .section-title h2 { font-size: 24px; line-height: 1.3; text-align: center; }
    .cta-section .section-title h2 {
        font-size: 22px;
        line-height: 1.2;
        margin-bottom: 15px;
        text-align: center;
    }
    .legal-content-section h1 { text-align: center; }
    .legal-content-section h2 { text-align: center; }
    .cta-button {
        font-size: 13px;
        padding: 8px 16px;
        min-width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 90vw;
    }
    .offer-details p {
        font-size: 14px;
        margin-bottom: 8px;
    }
    .offer-details {
        padding: 0 10px;
    }
    .cta-section .section-title p {
        font-size: 14px;
        line-height: 1.4;
        margin-bottom: 20px;
        text-align: center;
    }
    .offer-details p {
        font-size: 16px;
        text-align: left;
        padding-left: 25px;
        position: relative;
        margin-bottom: 12px;
    }
    .offer-details p::before {
        content: "✅";
        position: absolute;
        left: 0;
        animation: checkBounce 2s ease-in-out infinite;
        animation-delay: calc(var(--i, 0) * 0.2s);
    }
    .offer-details p:nth-child(1) { --i: 0; }
    .offer-details p:nth-child(2) { --i: 1; }
    .offer-details p:nth-child(3) { --i: 2; }
    @keyframes checkBounce {
        0%, 100% { transform: scale(1) translateY(0); }
        25% { transform: scale(1.1) translateY(-2px); }
        50% { transform: scale(1) translateY(0); }
        75% { transform: scale(1.05) translateY(-1px); }
    }
}
/* Stile per i link legali nel footer */
.legal-links {
    margin-bottom: 15px;
}
.legal-links a {
    color: var(--colore-testo-secondario);
    font-size: 14px;
    text-decoration: none;
    margin: 0 10px;
}
.legal-links a:hover {
    text-decoration: underline;
}
/* ============== 10. SOCIAL PROOF ============== */
.social-proof-section {
    background: rgba(10, 60, 80, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin: 60px auto;
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-proof-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.social-proof-icon {
    background: rgba(10, 60, 80, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(72, 207, 199, 0.5);
    color: var(--colore-accento-teal);
    transition: all 0.3s ease;
}

.social-proof-icon .goccia-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
}

.social-proof-icon:hover .goccia-icon {
    transform: scale(1.1);
}

.social-proof-text {
    flex: 1;
}

.social-proof-text p {
    margin: 0 0 10px 0;
    color: var(--colore-testo-secondario);
}

#social-proof-names {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#social-proof-names span {
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 14px;
    color: white;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============== 11. STILE PAGINE LEGALI ============== */

.legal-content-section {
    padding: 60px 50px;
    margin-top: 40px;
    margin-bottom: 80px;
    background: var(--colore-card-sfondo);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.legal-content-section h1 {
    font-size: 42px;
    color: var(--colore-accento-teal);
    margin-bottom: 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 15px;
}

.legal-content-section h2 {
    font-size: 28px;
    color: var(--colore-testo-principale);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-content-section p, .legal-content-section li {
    font-size: 16px;
    color: var(--colore-testo-secondario);
    margin-bottom: 15px;
}

.legal-content-section ul {
    list-style-position: inside;
    padding-left: 10px;
}

.legal-content-section a {
    color: var(--colore-accento-teal);
    text-decoration: none;
    font-weight: 600;
}

.legal-content-section a:hover {
    text-decoration: underline;
}

/* Stile per il footer */
.footer-section {
    position: relative;
    padding: 60px 0 30px;
    background-color: var(--colore-primario-scuro);
    margin-top: 80px;
}

/* Linea di separazione sopra il footer */
.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 2px;
    background-color: var(--colore-accento-teal);
    box-shadow: 0 0 10px rgba(0, 167, 157, 0.5);
}

.footer-main-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo-column {
    flex: 0 0 300px;
}

.footer-logo-column img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

.footer-contact-column {
    flex: 1;
    max-width: 600px;
}

/* Stile per le icone del footer */
.footer-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
    filter: brightness(0) saturate(100%) invert(48%) sepia(84%) saturate(1237%) hue-rotate(135deg) brightness(91%) contrast(101%);
    opacity: 0.9;
    flex-shrink: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.contact-list li:hover .footer-icon {
    opacity: 1;
    transform: scale(1.1);
}

/* ============== 13. FORM DI CONTATTO "FIGO FIGO" ============== */

#form-contatti {
    position: relative;
    padding: 100px 0;
    background: var(--colore-primario-scuro);
    overflow: hidden;
}

#form-contatti .content-section {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

#contact-form {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#contact-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 15px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#contact-form:hover::before {
    opacity: 1;
}

/* Migliora la leggibilità del testo */
/* Stile per il testo del form */
#contact-form h2,
#contact-form p,
#contact-form label {
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Stile per i campi del form */
#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: all 0.3s ease;
    padding: 15px 20px 15px 50px;
    font-size: 16px;
    border-radius: 8px;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

#contact-form input:focus,
#contact-form textarea:focus {
    background: rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: none;
    outline: none;
}

/* Stile per il testo della privacy */
.privacy-line {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.privacy-line input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid var(--colore-accento-teal);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    cursor: pointer;
    position: relative;
    margin-right: 10px;
}

.privacy-line input[type="checkbox"]:checked {
    background: var(--colore-accento-teal);
}

.privacy-line input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    color: white;
    font-size: 14px;
    font-weight: bold;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.required-text {
    font-size: 0.8rem;
    color: var(--colore-accento-teal);
    font-style: italic;
}

.privacy-confirm {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-left: 30px; /* Allineato con il bordo del checkbox */
}

.privacy-text a {
    color: var(--colore-accento-teal);
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-text a:hover {
    text-decoration: underline;
}

/* Stile per le icone dei campi */
.input-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1) opacity(0.7);
    transition: all 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

/* Effetto hover per le icone del form */
.input-group:hover .input-icon {
    filter: brightness(0) saturate(100%) invert(48%) sepia(84%) saturate(1237%) hue-rotate(135deg) brightness(91%) contrast(101%);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

/* Stile per il pulsante di invio */
#contact-form button[type="submit"] {
    background-color: var(--colore-accento-teal);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 10px;
}

#contact-form button[type="submit"]:hover {
    background-color: #00b8ad;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    filter: invert(1) brightness(1.5) opacity(0.5);
}

#contact-form input[type="text"],
#contact-form input[type="email"],
#contact-form input[type="tel"],
#contact-form textarea {
    width: 100%;
    padding: 18px 20px 18px 60px; /* Padding a sinistra per l'icona */
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--colore-testo-principale);
    font-size: 16px;
    font-family: var(--font-principale);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#contact-form textarea {
    padding-left: 20px; /* No icona nel textarea */
    resize: vertical;
    min-height: 120px;
}

#contact-form input:focus,
#contact-form textarea:focus {
    outline: none;
    border-color: var(--colore-accento-teal);
    box-shadow: 0 0 15px rgba(0, 167, 157, 0.5);
}

/* Fix per Stili Autocompilazione Browser (es. sfondo giallo di Chrome) */
#contact-form input:-webkit-autofill,
#contact-form input:-webkit-autofill:hover,
#contact-form input:-webkit-autofill:focus,
#contact-form input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 40px rgba(0, 0, 0, 0.2) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important; /* Colore del cursore di testo */
    transition: background-color 5000s ease-in-out 0s; /* Evita il cambio di colore */
}

/* Checkbox Privacy "Figo" */
.checkbox-group {
    display: flex;
    align-items: flex-start; /* Allinea in alto per testi lunghi */
    margin-bottom: 15px; /* Aumenta spazio tra le due opzioni */
    text-align: left;
}
.checkbox-group input[type="checkbox"] {
    display: none; /* Nascondiamo il checkbox di default */
}
.checkbox-group label {
    cursor: pointer;
    transition: color 0.3s ease;
    color: var(--colore-testo-secondario);
    display: flex;
    align-items: center;
    font-size: 14px; /* Ridotta dimensione del testo */
    line-height: 1.5;
}
.checkbox-group label::before { /* Creiamo il nostro finto checkbox */
    content: '';
    width: 18px; /* Dimensione uniforme */
    height: 18px; /* Dimensione uniforme */
    flex-shrink: 0; /* Impedisce al box di rimpicciolirsi */
    border: 2px solid var(--colore-accento-teal);
    border-radius: 5px;
    margin-right: 12px;
    transition: background-color 0.3s ease;
}
.checkbox-group input[type="checkbox"]:checked + label::before {
    background-color: var(--colore-accento-teal);
    content: '✔'; /* Aggiungiamo il segno di spunta */
    color: var(--colore-primario-scuro);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}
.checkbox-group a {
    color: var(--colore-accento-teal);
    text-decoration: none;
    font-weight: 600;
}

/* Bottone Full-Width */
.full-width {
    width: 100%;
}

/* Messaggi di Stato del Form */
.form-messages {
    margin-top: 20px;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    display: none; /* Nascosto di default */
}
.form-messages.success {
    background-color: rgba(0, 167, 157, 0.8);
    color: white;
    display: block;
}
.form-messages.error {
    background-color: rgba(220, 53, 69, 0.8);
    color: white;
    display: block;
}

/* Stile per la lista dei contatti nel footer */
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.contact-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.contact-list a {
    color: var(--colore-testo-secondario);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.contact-list a:hover {
    color: var(--colore-accento-teal);
}

/* Stili per il logo MyWebby */
.credits {
    text-align: right;
    margin-top: 20px;
}

.credits a {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: #fff;
}

.credits .heart-icon {
    width: 16px;
    height: 16px;
    margin: 0 6px;
    color: var(--colore-accento-teal);
    filter: none;
    transition: transform 0.3s ease;
}

.credits .credit-logo {
    height: 22px;
    width: auto;
    margin-left: 6px;
    filter: none;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.credits a:hover .credit-logo {
    opacity: 1;
}

.credits p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin: 5px 0 0 0;
}

/* Stili per il logo principale nel footer */
.footer-logo-column img {
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
}

/* Media query per tablet */
@media (max-width: 1024px) {
    .footer-main-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-logo-column,
    .footer-contact-column {
        width: 100%;
        max-width: 100%;
        flex: initial;
    }

    .footer-logo-column {
        margin-bottom: 30px;
    }

    .footer-contact-column h3 {
        margin-bottom: 20px;
    }

    .contact-list {
        display: inline-block;
        text-align: left;
    }

    .credits {
        text-align: center;
        margin-top: 30px;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Media query per mobile */
@media (max-width: 768px) {
    .footer-section {
        padding: 40px 0 20px;
    }
    
    .footer-logo-column img {
        max-width: 180px;
        margin-bottom: 10px !important; /* Ridotto da 20px a 10px */
    }
    
    .footer-contact-column h3 {
        margin-top: 0;
        margin-bottom: 15px;
    }
    
    .contact-list {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .contact-list li {
        margin-bottom: 15px;
        text-align: center;
        justify-content: center;
    }
    
    .footer-icon {
        width: 18px;
        height: 18px;
    }
    
    .credits {
        margin-top: 25px;
    }
    
    .credits a {
        font-size: 12px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .credits .credit-logo {
        height: 16px;
        margin-top: 5px;
    }
    
    .credits p {
        width: 100%;
        margin-top: 5px;
        font-size: 11px;
    }
}

/* Media query per schermi piccoli */
@media (max-width: 480px) {
    .footer-logo-column img {
        max-width: 140px;
    }
    
    .credits a {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .credits p {
        width: 100%;
        margin-top: 5px;
    }
}

/* ============== 10. ANIMAZIONI ICONE WOW ============== */
.feature-icon, .social-bar a, .footer-icon, .nav-social-icons a {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.feature-card:hover .feature-icon, .social-bar a:hover, .contact-list li:hover .footer-icon, .nav-social-icons a:hover {
    transform: scale(1.2) rotate(-10deg);
}

/* ============== 10.5 FORM VALIDATION STYLES ============== */
.checkbox-group label.label-error {
    color: #d9534f; /* Rosso per indicare l'errore */
    font-weight: bold;
}

/* Stile per i link all'interno delle etichette in errore */
.checkbox-group label.label-error a {
    color: #d9534f;
    text-decoration: underline;
}

/* Stile per il testo obbligatorio */
.required-text {
    color: #d9534f;
    font-size: 0.8em;
    margin-left: 5px;
    display: none; /* Nascosto di default, mostrato con JavaScript */
}

/* ============== 11. SEZIONE RECENSIONI (TESTIMONIALS) ============== */
.testimonial-section {
    background-color: rgba(0,0,0,0.1);
    padding-top: 80px;
    padding-bottom: 80px;
}

.testimonial-slider {
    width: 100%;
    padding: 20px 0;
}

.testimonial-card {
    background: var(--colore-card-sfondo);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    margin: 0 15px;
    height: 100%; /* Importante per avere card della stessa altezza */
}

/* ========== FOTO TESTIMONIANZE - GLASSMORPHISM STYLE ========== */
.user-photo {
    width: 80px; /* Leggermente più grande per impatto */
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 20px auto;
    object-fit: cover;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    
    /* Glassmorphism Border Effect */
    border: 3px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* Effetto Glow al Hover */
.user-photo:hover {
    transform: scale(1.1);
    border-color: rgba(0, 167, 157, 0.6);
    box-shadow: 
        0 12px 40px rgba(0, 167, 157, 0.4),
        0 0 20px rgba(0, 167, 157, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Anello Esterno Glassmorphism (opzionale per extra wow) */
.user-photo::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.user-photo:hover::before {
    opacity: 1;
}

/* Responsive per le foto */
@media (max-width: 768px) {
    .user-photo {
        width: 70px;
        height: 70px;
        border-width: 2px;
    }
    
    .user-photo::before {
        top: -4px;
        left: -4px;
        right: -4px;
        bottom: -4px;
    }
}

@media (max-width: 480px) {
    .user-photo {
        width: 60px;
        height: 60px;
        margin-bottom: 15px;
    }
    
    .user-photo::before {
        top: -3px;
        left: -3px;
        right: -3px;
        bottom: -3px;
    }
}

.testimonial-card p {
    font-style: italic;
    margin-bottom: 20px;
    color: var(--colore-testo-secondario);
}

.rating {
    color: #ffc107; /* Giallo oro per le stelle */
    font-size: 24px;
    margin-bottom: 10px;
}

.user-name {
    font-weight: 600;
    color: var(--colore-testo-principale);
}

/* Stile per le frecce di navigazione del carosello */
.swiper-button-next, .swiper-button-prev {
    color: var(--colore-accento-teal) !important;
}

/* ============== 12. SEZIONE PLACEHOLDER FORM CONTATTI ============== */
.form-placeholder-section {
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 80px 40px;
    margin-top: 80px;
}
.form-placeholder-section .section-title p {
    font-weight: 600;
    color: var(--colore-accento-teal);
}

/* Piccola correzione per la barra social per renderla bianca */
.social-bar img {
    width: 24px; height: 24px;
    filter: invert(1) brightness(2); /* Filtro bianco */
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.social-bar a:hover img {
    opacity: 1;
}

/* Stili per le checkbox del form */
.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    margin: 3px 10px 0 0;
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    margin: 0;
    line-height: 1.4;
    color: var(--colore-testo-principale);
}

.checkbox-group a {
    color: var(--colore-accento-teal);
    text-decoration: underline;
}

/* Form error states */
.input-group.has-error {
    border-color: #ff3860;
    box-shadow: 0 0 0 2px rgba(255, 56, 96, 0.2);
    border-radius: 4px;
}

.input-group.has-error input,
.input-group.has-error textarea {
    border-color: #ff3860;
    box-shadow: 0 0 5px rgba(217, 83, 79, 0.5);
}

.input-group.has-error .input-icon {
    filter: grayscale(1) brightness(0.5) sepia(1) hue-rotate(-50deg) saturate(5);
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.checkbox-group input[type="checkbox"] {
    margin: 0 10px 0 0;
    width: 16px;
    height: 16px;
}

.checkbox-group label {
    margin: 0;
    line-height: 1.4;
    vertical-align: middle;
}

.checkbox-group label.label-error {
    color: #ff3860;
}

.checkbox-group input[type="checkbox"]:checked + label.label-error {
    color: #ff3860;
}

/* Screen reader only class for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===============================================
   STILI PER CHECKBOX DEL FORM
   =============================================== */

.checkbox-group {
    display: flex;
    align-items: center; /* Allinea verticalmente il checkbox e il testo */
    margin-bottom: 18px; /* Aumenta spazio tra le due opzioni */
    text-align: left;
}
.checkbox-group input[type="checkbox"] {
    width: 18px;  /* Imposta una dimensione fissa per il box */
    height: 18px;
    margin: 0 12px 0 0; /* Aggiunge spazio a destra del box */
}

/* Stili per la pagina 404 */
body.page-404 {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.page-404 .page-wrapper {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.page-404 main {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.page-404 .banner-text {
    position: static;
    transform: none;
}

.page-404 .banner-text h1 {
    text-transform: uppercase;
    font-size: 52px;
    margin-bottom: 15px;
}

.page-404 .banner-text p {
    font-size: 18px;
}

/* --- FAQ SEO --- */
.faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  padding: 0 20px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,167,157,0.08);
  margin-bottom: 18px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.faq-item.active {
  box-shadow: 0 4px 24px rgba(0,167,157,0.18);
}
.faq-item h3 {
  margin: 0;
  padding: 18px 48px 18px 24px; /* spazio extra a destra per la freccia */
  font-size: 1.18em;
  font-weight: 600;
  color: var(--colore-accento-teal, #00a79d);
  cursor: pointer;
  background: #f7f7f7;
  border: none;
  outline: none;
  transition: background 0.2s;
  position: relative;
}
.faq-item h3::after {
  content: '';
  display: block;
  position: absolute;
  right: 24px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-right: 2px solid #0a2e3f;
  border-bottom: 2px solid #0a2e3f;
  transform: translateY(-50%) rotate(45deg);
  transition: transform 0.3s;
}
.faq-item.active h3::after {
  transform: translateY(-50%) rotate(-135deg);
}
.faq-item p {
  margin: 0;
  padding: 0 24px 18px 24px;
  font-size: 1.05em;
  color: var(--colore-testo-secondario, #444);
  display: none;
}
.faq-item.active p {
  display: block;
  animation: fadeIn 0.4s;
  background: var(--colore-navbar, #00a79d); /* usa lo stesso colore della navbar */
  color: #fff;
  border-radius: 0 0 12px 12px;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========== TRUST BADGES ========== */
.trust-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.01) 0%, rgba(255,255,255,0.02) 100%);
    padding: 60px 0;
    margin-top: 60px;
    position: relative;
}

.trust-badges {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trust-badge {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 45px 35px;
    text-align: center;
    transition: all 0.4s ease;
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.trust-badge img {
    width: 60px;
    height: 60px;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.badge-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--colore-accento-teal);
    margin: 10px 0;
    line-height: 1.1;
    text-shadow: 0 0 20px rgba(0, 167, 157, 0.3);
    transition: all 0.3s ease;
}

.badge-text {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--colore-testo-principale);
    transition: all 0.3s ease;
}

.badge-subtext {
    font-size: 1rem;
    color: var(--colore-testo-secondario);
    opacity: 0.9;
    line-height: 1.5;
    transition: all 0.3s ease;
}

/* Hover Effects */
.trust-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    border-color: rgba(0, 167, 157, 0.3);
}

.trust-badge:hover .badge-number {
    color: #00d9ce;
    text-shadow: 0 0 25px rgba(0, 217, 206, 0.5);
}

.trust-badge:hover img {
    transform: scale(1.1);
}

/* 2. RESPONSIVE STYLES */
@media (max-width: 1200px) {
    .trust-section {
        padding: 50px 0;
    }
    
    .trust-badges {
        max-width: 1000px;
        gap: 25px;
        padding: 0 20px;
    }
    
    .trust-badge {
        padding: 35px 25px;
        min-height: 220px;
    }
    
    .badge-number {
        font-size: 2.4rem;
    }
    
    .badge-text {
        font-size: 1.2rem;
    }
}

/* 3. TABLET */
@media (max-width: 1024px) {
    .trust-section {
        padding: 40px 0;
        margin-top: 40px;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        max-width: 600px;
        gap: 20px;
    }
    
    .trust-badge {
        padding: 30px 25px;
        min-height: 160px;
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .trust-badge img {
        margin: 0 25px 0 0;
        width: 50px;
        height: 50px;
    }
    
    .badge-number {
        font-size: 2rem;
        margin-bottom: 5px;
    }
    
    .badge-text {
        font-size: 1.1rem;
        margin-bottom: 3px;
    }
    
    .badge-subtext {
        font-size: 0.9rem;
    }
}

/* 4. MOBILE */
@media (max-width: 768px) {
    .trust-section {
        padding: 30px 0;
        margin-top: 30px;
    }
    
    .trust-badges {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
        padding: 0 15px;
        gap: 20px;
    }
    
    .trust-badge {
        padding: 30px 25px;
        min-height: 180px;
        flex-direction: row;
        text-align: left;
        align-items: center;
    }
    
    .trust-badge img {
        width: 50px;
        height: 50px;
        margin: 0 20px 0 0;
        flex-shrink: 0;
    }
    
    .badge-content {
        text-align: left;
    }
    
    .badge-number {
        font-size: 2rem;
        margin: 0 0 8px;
    }
    
    .badge-text {
        font-size: 1.2rem;
        margin-bottom: 5px;
    }
    
    .badge-subtext {
        font-size: 0.95rem;
        line-height: 1.4;
    }
}

/* 5. SMALL MOBILE */
@media (max-width: 480px) {
    .trust-badges {
        padding: 0 10px;
        gap: 15px;
        margin-top: 40px;
    }
    
    .trust-badge {
        padding: 25px 20px;
        min-height: 130px;
    }
    
    .trust-badge img {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .badge-number {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }
    
    .badge-text {
        font-size: 1.05rem;
        margin-bottom: 3px;
    }
    
    .badge-subtext {
        font-size: 0.9rem;
        line-height: 1.4;
    }
}

/* 6. EXTRA SMALL DEVICES */
@media (max-width: 360px) {
    .trust-badge {
        padding: 20px 15px;
        min-height: 120px;
    }
    
    .trust-badge img {
        width: 35px;
        height: 35px;
        margin-right: 12px;
    }
    
    .badge-number {
        font-size: 1.6rem;
    }
    
    .badge-text {
        font-size: 1rem;
    }
    
    .badge-subtext {
        font-size: 0.85rem;
    }
    
    .badge-number {
        font-size: 1.5rem;
    }
    
    .badge-text {
        font-size: 0.9rem;
    }
    
    .badge-subtext {
        font-size: 0.8rem;
    }
}

/* Responsive */
@media (max-width: 600px) {
  .faq-list { padding: 0 5px; }
  .faq-item h3, .faq-item p { padding-left: 12px; padding-right: 12px; }
}

/* Stile per l'h1 principale SEO homepage */
h1 {
  margin-top: 40px;
  margin-bottom: 10px;
  font-size: 2.1em;
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 600px) {
  h1 {
    margin-top: 24px;
    font-size: 1.3em;
  }
}
