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

body {
    font-family: 'Syne', sans-serif;
    color: white;
    background-color: #000;
    margin: 0;
}

/* Logo nella home */
.home-logo-header,
#home-logo-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;
    padding: 30px !important;
    pointer-events: none;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background: transparent !important;
    width: auto !important;
    height: auto !important;
}

.home-logo,
#home-logo-img {
    height: 80px !important;
    width: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8)) brightness(1.1);
    pointer-events: auto;
    transition: transform 0.3s ease;
    max-width: 250px;
    object-fit: contain;
}

.home-logo:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .home-logo-header {
        padding: 20px;
    }
    
    .home-logo {
        height: 40px;
    }
}

/* Il menu è ora visibile anche nella home - REGOLE FORTI */
body.index-page .top-bar,
body.index-page .top-bar-fixed {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10000 !important;
    height: auto !important;
    width: 100% !important;
    padding: 20px 30px !important;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
    backdrop-filter: blur(15px) !important;
    -webkit-backdrop-filter: blur(15px) !important;
}

body.index-page .main-nav {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    width: auto !important;
}

body.index-page .nav-menu {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 40px !important;
}

body.index-page .nav-link,
body.index-page .mobile-menu-toggle {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

body.index-page .logos {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 20px !important;
    align-items: center !important;
}

body.index-page .logo-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
}

/* --- 1. GESTIONE SFONDO FULLSCREEN --- */
.fullscreen-bg {
    position: fixed; /* ORA È FISSO: Il video non si muove quando scorri */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: visible; /* Permette al video-transition di estendersi oltre */
}

.content-layer {
    position: relative;
    z-index: 1;
}

.bg-media {
    width: 100%;
    height: 100%;
    object-fit: cover; /* FONDAMENTALE: Taglia il video per riempire lo schermo senza deformarlo */
    display: block;
    visibility: visible;
    opacity: 1;
}

/* Assicura che il video sia sempre visibile */
#home-video,
video.bg-media {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay chiaro per contrasto leggero */
    background: rgba(255, 255, 255, 0.1);
}

/* Elemento di transizione con effetto trasparenza che sfuma il video */
.video-transition {
    position: fixed; /* FISSO come il video per seguirlo */
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh; /* Altezza completa per coprire tutto il video */
    /* Overlay bianco con trasparenza graduale che sfuma il video dal basso verso il bianco */
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0) 50%,
        rgba(255, 255, 255, 0.2) 70%,
        rgba(255, 255, 255, 0.5) 80%,
        rgba(255, 255, 255, 0.8) 90%,
        rgba(255, 255, 255, 0.95) 95%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 0; /* Sopra il video (-1) ma sotto la welcome-section (100) */
}

/* --- 2. GESTIONE CONTENUTI --- */
/* Modifica questo pezzo in style.css */
.content-layer {
    position: relative;
    height: 100vh; /* <--- ECCO IL CAMBIAMENTO: Da % a vh */
    width: 100%;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Questo serve a dare un po' di respiro in basso prima che arrivi il bianco */
    padding-bottom: 20px; 
}


/* --- LOGHI E MENU (Alto) --- */
.top-bar {
    padding: 20px 30px;
    display: flex;
    justify-content: space-between; /* Loghi a sinistra, menu a destra */
    align-items: center;
    position: relative;
    z-index: 100;
}

/* Assicura che il menu sia sempre visibile */
.top-bar,
.top-bar-fixed {
    z-index: 1000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* FORZA la visibilità nella home */
body.index-page .top-bar,
body.index-page .top-bar-fixed {
    z-index: 10000 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Menu fisso per le pagine con pool-hero e home */
.top-bar-fixed {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 1000 !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Assicura che il pool-hero non venga coperto dal menu fisso */
body:has(.top-bar-fixed) .pool-hero {
    padding-top: 0;
}

/* Per browser che supportano :has() */
.top-bar-fixed + .pool-hero {
    margin-top: 0;
}

/* Assicura che il contenuto non venga coperto */
.pool-hero {
    position: relative;
}

/* Su mobile, il menu fisso deve essere più compatto */
@media (max-width: 968px) {
    .top-bar-fixed {
        padding: 15px 20px;
        background-color: rgba(0, 0, 0, 0.7);
    }
    
    .top-bar-fixed .logo-img {
        height: 30px;
    }
}

.logos {
    display: flex;
    gap: 20px; /* Spazio tra i due loghi */
    align-items: center;
}

/* Simuliamo i loghi se non hai ancora le immagini png */
.logo-img {
    height: 40px; /* Piccoli ed eleganti */
    width: auto;
    display: block;
    visibility: visible;
    opacity: 1;
}

/* FORZA la visibilità del logo nella home */
body.index-page .logos {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 20px !important;
    align-items: center !important;
    z-index: 10001 !important; /* Sopra al menu */
    position: relative !important;
}

body.index-page .logo-img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain !important;
    z-index: 10002 !important; /* Sopra a tutto */
    position: relative !important;
}

/* Se l'immagine non c'è, il browser mostrerà l'alt text. 
   Aggiungiamo uno stile per vederlo anche senza img */
img[src=""]:not(.logo-img):not(#main-logo) {
    display: none;
}

/* Il logo deve essere SEMPRE visibile - REGOLE FORTISSIME */
.logo-img,
#main-logo,
img.logo-img,
img#main-logo {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: 40px !important;
    width: auto !important;
    min-width: 40px !important;
    max-width: 200px !important;
    object-fit: contain !important;
    z-index: 10002 !important;
    position: relative !important;
}

.logo-img[src=""],
#main-logo[src=""],
.logo-img[src*="logo"],
#main-logo[src*="logo"] {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Assicura che il contenitore del logo sia visibile */
.logos,
div.logos {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    gap: 20px !important;
    align-items: center !important;
    z-index: 10001 !important;
    position: relative !important;
}

/* =========================================
   MENU DI NAVIGAZIONE MODERNO
   ========================================= */

.main-nav {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 40px;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    color: white !important;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    padding: 10px 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: white;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-arrow {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid white;
    margin-left: 6px;
    margin-bottom: 2px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.8;
    vertical-align: middle;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

/* Dropdown Menu Moderno */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    min-width: 220px;
    padding: 15px 0;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: 14px 25px;
    color: #111;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Syne', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: #1697c7;
    transform: scaleY(0);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu a:hover {
    background-color: rgba(22, 151, 199, 0.08);
    color: #1697c7;
    padding-left: 30px;
    transform: translateX(5px);
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

/* Mobile Menu Toggle Moderno */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 6px;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(9px, 9px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(9px, -9px);
}

.mobile-menu-toggle:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Mobile Styles Moderni */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: rgba(15, 25, 35, 0.98);
        flex-direction: column;
        padding: 100px 28px 40px;
        gap: 0;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        overflow-x: visible;
        box-shadow: -10px 0 40px rgba(0,0,0,0.4);
    }

    .nav-menu.active {
        right: 0;
        z-index: 10001; /* Sopra header quando aperto, per overlay corretto su tutte le pagine */
    }

    .nav-menu li {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        opacity: 0;
        transform: translateY(8px);
        animation: slideInMenu 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    .nav-menu.active li:nth-child(1) { animation-delay: 0.1s; }
    .nav-menu.active li:nth-child(2) { animation-delay: 0.15s; }
    .nav-menu.active li:nth-child(3) { animation-delay: 0.2s; }
    .nav-menu.active li:nth-child(4) { animation-delay: 0.25s; }
    .nav-menu.active li:nth-child(5) { animation-delay: 0.3s; }

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

    .nav-link {
        display: block;
        padding: 18px 0;
        width: 100%;
        font-size: 1.05rem;
        letter-spacing: 0.12em;
        text-align: center;
    }

    .nav-link::after {
        display: none;
    }

    .dropdown-menu {
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        background-color: rgba(0, 0, 0, 0.2);
        margin: 8px 0 0;
        padding: 0;
        border-radius: 8px;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        box-sizing: border-box;
        list-style: none;
    }

    .nav-dropdown.active .dropdown-menu {
        max-height: 500px;
    }

    .dropdown-menu li {
        width: 100%;
        box-sizing: border-box;
    }

    .dropdown-menu a {
        display: block !important;
        color: rgba(255, 255, 255, 0.9);
        padding: 12px 16px;
        font-size: 0.9rem;
        text-align: center;
        letter-spacing: 0.05em;
        width: 100%;
        box-sizing: border-box;
        overflow: visible;
    }

    .dropdown-menu a::before {
        display: none;
    }

    .dropdown-menu a:hover {
        background-color: rgba(22, 151, 199, 0.2);
        color: white;
        transform: none;
        padding-left: 16px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .top-bar {
        padding: 15px 20px;
    }

    .top-bar-fixed {
        padding: 15px 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        width: min(320px, 88vw);
        max-width: 320px;
    }
}

/* POSIZIONE DEL TITOLO E DEL BOTTONE */
.hero-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centra perfettamente */
    width: 100%;
    max-width: 95vw; /* Limita la larghezza per evitare overflow */
    text-align: center;
    padding: 0 20px;
    z-index: 20;
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Logo al centro del video */
.hero-logo {
    width: 40vw;
    max-width: 540px;
    height: auto;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.5));
    z-index: 21;
    position: relative;
    margin: 0 auto 5px auto !important; /* Ridotto per avvicinare il testo */
    align-self: center;
    flex-shrink: 0;
}

/* Sottotitolo rimosso - nascondi completamente */
.hero-subtitle {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    font-size: 0 !important;
}

/* Hero center: nella home solo logo, nelle pool c'è l'h1 */
body.index-page .hero-center h1 {
    display: none !important;
}

.pool-hero .hero-center h1,
.hero-center h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 100%;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 10px 30px rgba(0,0,0,0.4);
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.text-line {
    font-size: 3.5vw;
    letter-spacing: 0.12em;
    line-height: 1.4;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    margin-bottom: 8px;
    white-space: nowrap;
    clear: both;
    float: none;
    position: relative;
}


.text-line:last-child {
    margin-bottom: 0;
}

/* --- SEZIONE BENVENUTO --- */
.welcome-section {
    position: relative;
    /* Sfondo completamente bianco */
    background: #ffffff !important;
    color: #333;
    padding-top: 120px;
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 !important;
    margin-bottom: 0 !important; /* Nessun margine inferiore */
    z-index: 100 !important;
    overflow: visible; /* Permette al ::before di estendersi oltre */
    /* Rimosso min-height: 100vh così le news appaiono subito sotto il blocco CSR */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100%;
    box-sizing: border-box;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -600px; /* Si estende molto sopra per sovrapporsi al video */
    left: 0;
    right: 0;
    height: 600px;
    /* Overlay bianco con trasparenza che sfuma dal video verso il bianco della sezione */
    background: linear-gradient(180deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 40%,
        rgba(255, 255, 255, 0.75) 60%,
        rgba(255, 255, 255, 0.9) 80%,
        rgba(255, 255, 255, 0.98) 90%,
        rgba(255, 255, 255, 1) 100%
    );
    pointer-events: none;
    z-index: 1; /* Sopra al video-transition */
}

.welcome-section::after {
    display: none; /* Rimossa la striscia scura */
}

.welcome-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 0;
}

.welcome-title {
    font-family: 'Syne', sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0;
    color: #000000; /* Colore nero */
    position: absolute;
    white-space: nowrap; /* Forza il titolo su una sola riga */
    display: block;
    padding: 0;
    box-sizing: border-box;
    width: fit-content;
    max-width: calc(100vw - 40px);
    /* Centra rispetto alla larghezza totale della pagina - posizionato rispetto alla sezione */
    left: 50%;
    top: 120px;
    transform: translateX(-50%);
    /* Rimuove lo spazio extra del letter-spacing dopo l'ultima lettera */
    padding-right: 0.1em;
    z-index: 2;
}

.welcome-content {
    animation: fadeInUp 0.8s ease-out;
    margin-top: 100px; /* Spazio per il titolo assoluto */
}

.welcome-intro {
    font-size: 1.3rem;
    line-height: 1.5; /* Ridotto da 1.8 per stringere di più */
    text-align: center;
    margin-bottom: 0 !important; /* Rimosso completamente per eliminare spazio sotto */
    color: #333;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: auto;
    font-weight: 400;
}

.welcome-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.welcome-card {
    background: #f8f9fa;
    border: 1px solid #e8eaed;
    border-radius: 16px;
    padding: 40px 30px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.welcome-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, #1697c7, transparent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.welcome-card:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: rgba(22, 151, 199, 0.4);
    box-shadow: 0 12px 32px rgba(22, 151, 199, 0.15);
}

.welcome-card:hover::before {
    transform: scaleX(1);
}

.welcome-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 800; 
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 20px;
    color: #1697c7;
}

.welcome-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    margin: 0;
}

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

/* Responsive Welcome Section */
@media (max-width: 968px) {
    .welcome-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .welcome-title {
        font-size: 2.8rem;
        white-space: normal; /* Permette andare a capo su schermi medi */
    }
    
    .welcome-intro {
        font-size: 1.15rem;
    }
}

@media (max-width: 768px) {
    .welcome-section {
        padding: 80px 20px;
    }
    
    .welcome-title {
        font-size: 2.2rem;
        margin-bottom: 40px;
        white-space: normal; /* Permette andare a capo su schermi piccoli */
    }

    .welcome-intro {
        font-size: 1rem;
        margin-bottom: 40px;
    }
    
    .welcome-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 40px;
    }

    .welcome-card {
        padding: 30px 20px;
    }
    
    .welcome-card h3 {
        font-size: 1.3rem;
    }
}

/* --- SEZIONE PISCINE (Seconda Pagina) --- */
.pools-section {
    position: relative; /* Serve per stare SOPRA al video fisso */
    background-color: #ffffff !important; /* Sfondo bianco completamente opaco */
    color: #000000; /* Testo nero */
    padding: 20px 20px 100px 20px; /* Spazio sopra molto ridotto, sotto e lati */
    min-height: 100vh; /* Alta almeno quanto lo schermo */
    z-index: 100 !important; /* Stesso z-index delle altre sezioni per essere sopra il video */
    margin: 0 !important;
    margin-top: 0 !important; /* Nessun margine superiore - lo spazio è gestito dalla news-section */
    width: 100%;
    box-sizing: border-box;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 120px; /* Aumentato per più spazio tra titolo e contenitori */
    text-transform: uppercase;
    color: #111;
}

/* LA GRIGLIA (GRID) */
.pools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 colonne invece di 3 */
    gap: 30px; /* Spazio tra le foto */
    max-width: 1400px; /* Larghezza massima aumentata */
    margin: 0 auto; /* Centra la griglia nella pagina */
}

/* 1. LA CARD (Simula la foto sotto) */
.pool-card {
    aspect-ratio: 16 / 9; /* Rettangolo largo invece di quadrato */
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    
    /* QUI C'È IL TRUCCO: Spostiamo lo sfondo sulla card */
    /* Simula una foto scura e complessa così vedi il vetro sopra */
    background: radial-gradient(circle at top right, #4a4a4a, #000000);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Card con immagini di sfondo */
.pool-card-alba {
    background-image: url('assets/Immagini/Alba Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pool-card-cuneo {
    background-image: url('assets/Immagini/Cuneo Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pool-card-sanfre {
    background-image: url('/assets/Immagini/Sanfre%20Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pool-card-savigliano {
    background-image: url('assets/Immagini/Savigliano Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pool-card-sommariva {
    background-image: url('assets/Immagini/Sommariva Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.pool-card-asti {
    background-image: url('assets/Immagini/Asti Cover.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Effetto zoom della "foto" quando passi col mouse */
.pool-card:hover {
    transform: scale(0.98);
}

/* 2. IL VETRO (Il box col testo sopra) */
.pool-placeholder {
    width: 100%;
    height: 100%;
    
    /* QUESTO CREA L'EFFETTO VETRO */
    background-color: rgba(255, 255, 255, 0.03); /* Bianco quasi invisibile */
    backdrop-filter: blur(1px); /* SFOCA quello che c'è sotto (la card) - molto ridotto */
    -webkit-backdrop-filter: blur(1px); /* Per Safari/iPhone */
    
    border: 1px solid rgba(255, 255, 255, 0.1); /* Bordino sottile elegante */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    
    /* TESTO */
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem; 
    font-weight: 700; 
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Ombra per staccare il testo */
    
    transition: all 0.4s ease;
}

/* QUANDO PASSI IL MOUSE */
.pool-card:hover .pool-placeholder {
    background-color: rgba(255, 255, 255, 0.1); /* Il vetro diventa un po' più chiaro/luminoso */
    backdrop-filter: blur(0px); /* LA SFOCATURA SPARISCE: vedi bene la "foto" sotto! */
    -webkit-backdrop-filter: blur(0px);
    letter-spacing: 5px; /* Le lettere si allargano */
}

/* Regola per Sommariva */
.pool-card:nth-child(6) .pool-placeholder {
    font-size: 1.2rem; 
}

/* --- NUOVO: Overlay per le future foto (sarà un div dentro pool-card) --- */
.pool-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Overlay nero semi-trasparente */
    z-index: 1; /* Starà sotto il testo ma sopra l'immagine */
    opacity: 0; /* Inizialmente invisibile */
    transition: opacity 0.3s ease;
}

.pool-card:hover .pool-image-overlay {
    opacity: 1; /* Diventa visibile al passaggio del mouse */
}

/* EFFETTO LUCE SU HOVER */
.pool-card:hover .pool-placeholder {
    background: linear-gradient(135deg, #3a3a3a 0%, #2a2a2a 100%); /* Diventa leggermente più chiaro */
    letter-spacing: 5px; /* Le lettere si allargano leggermente quando passi sopra */
}

/* --- SEZIONE NEWS --- */
.news-section {
    background-color: #ffffff;
    color: #333;
    padding-top: 100px;
    padding-bottom: 100px;
    padding-left: 20px;
    padding-right: 20px;
    margin: 0 !important;
    position: relative;
    z-index: 100 !important;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.news-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 40px;
}

/* COLONNA TITOLO - centrato, notizie sotto */
.news-header {
    width: 100%;
}

.news-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    margin-bottom: 20px;
    color: #000;
}

.news-header p {
    color: #666;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.btn-all-news {
    display: inline-block;
    padding: 12px 30px;
    border: 2px solid #1697c7;
    color: #1697c7;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s;
}

.btn-all-news:hover {
    background: #1697c7;
    color: white;
}

/* CAROUSEL NEWS */
.news-carousel-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    min-width: 0;
}

.news-carousel {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    width: 100%;
    align-items: flex-start;
}

.news-carousel .news-item {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-right: 10px;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.news-carousel .news-title {
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.news-carousel .news-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    word-break: break-word;
}

.news-carousel .news-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    max-height: 300px;
    overflow-y: auto;
}

.news-read-more-toggle {
    background: none;
    border: none;
    color: #999;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px 0;
    margin-top: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    transition: color 0.3s ease;
    align-self: flex-start;
}

.news-read-more-toggle:hover {
    color: #333;
}

.news-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-top: 40px;
}

.carousel-arrow {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.carousel-arrow:hover {
    color: #333;
    transform: translateX(-2px);
}

.carousel-next:hover {
    transform: translateX(2px);
}

.carousel-arrow:disabled {
    opacity: 0.2;
    cursor: default;
    transform: none;
}

.carousel-dots {
    display: flex;
    gap: 10px;
    align-items: center;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.carousel-dot.active {
    background: #333;
    width: 24px;
    border-radius: 3px;
}

.carousel-dot:hover {
    background: #999;
}

.carousel-dot.active:hover {
    background: #333;
}

/* Mantieni compatibilità con news-list per pagine piscine */
.news-list {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-item {
    border-bottom: 1px solid #e0e0e0; /* Riga separatrice sottile */
    padding-bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: transform 0.3s;
    cursor: pointer;
}

.news-item:hover {
    transform: translateX(10px); /* Si sposta leggermente a destra quando passi sopra */
}

.news-date {
    font-size: 0.9rem;
    color: #666;
    font-weight: bold;
    letter-spacing: 1px;
}

.news-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 5px 0;
    color: #000;
}

.news-description {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0;
}

.read-more {
    font-size: 0.9rem;
    color: #333;
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    opacity: 1;
    transform: translateX(5px);
    color: #1697c7;
}

.news-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.news-pool-name {
    font-size: 0.85rem;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
}

/* --- VERSIONE MOBILE (SMARTPHONE) --- */
@media (max-width: 768px) {

    /* ... qui sopra dovresti avere le regole delle piscine che abbiamo messo prima ... */
    .pools-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    /* --- AGGIUNGI QUESTO PEZZO QUI SOTTO --- */
    
    /* Titolo su tablet */
    .hero-center h1 {
        flex-direction: column;
    }
    
    .text-line {
        font-size: 4vw !important;
        letter-spacing: 0.1em !important;
        margin-bottom: 5px;
    }

    .text-line.text-wide {
        letter-spacing: 0.7em !important;
    }

    /* Sistemiamo anche i margini del contenitore titolo */
    .hero-center h1 {
        line-height: 0.95;
    }
    
    .news-container {
        flex-direction: column;
        gap: 40px;
    }

    .news-header h2 {
        font-size: 3rem;
    }

    .carousel-arrow svg {
        width: 18px;
        height: 18px;
    }

    }
    /* --- STILE MODALE (POPUP) --- */
.modal-overlay {
    display: none; /* Nascosto di default */
    position: fixed; /* Fisso sullo schermo */
    z-index: 1000; /* Sopra a TUTTO, anche al menu */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Sfondo nero molto scuro */
    backdrop-filter: blur(5px); /* Sfoca il sito dietro */
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeIn 0.3s forwards; /* Animazione di entrata */
}

/* Animazione per farla apparire dolce */
@keyframes fadeIn {
    to { opacity: 1; }
}

.modal-content {
    background-color: #1a1a1a;
    width: 90%;
    max-width: 800px; /* Larghezza massima */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid #333;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    text-align: center;
    color: white;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #aaa;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    line-height: 0.5;
}

.close-btn:hover {
    color: white;
}

#modalTitle {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    margin-bottom: 20px;
    color: white;
    text-transform: uppercase;
}

#modalDesc {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 40px;
    line-height: 1.6;
}

.modal-gallery-placeholder {
    display: flex;
    gap: 10px;
    justify-content: center;
    background: #222;
    padding: 20px;
    border-radius: 10px;
    color: #555;
}
/* =========================================
   STILE PAGINE INTERNE (ALBA, CUNEO, ECC.)
   ========================================= */

/* 1. HERO SECTION SPECIFICA */
.pool-hero {
    position: relative;
    height: 80vh; /* Meno alto della home, ma impattante */
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pool-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.back-home-btn {
    display: inline-block;
    margin-top: 20px;
    color: white;
    text-decoration: none;
    font-size: 1rem;
    border: 1px solid white;
    padding: 10px 20px;
    border-radius: 50px;
    transition: 0.3s;
    text-transform: uppercase;
}

.back-home-btn:hover {
    background: white;
    color: black;
}

/* 2. SEZIONE SERVIZI ELEGANTE */
.services-section {
    background-color: white;
    color: black;
    padding: 80px 20px;
    text-align: center;
}

.section-title-dark {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 60px;
    color: #111;
    text-transform: uppercase;
}

/* =========================================
   NUOVO LAYOUT SERVIZI (LISTA ORIZZONTALE)
   ========================================= */

/* =========================================
   RIPRISTINO GRIGLIA PULITA (CLICCABILE)
   ========================================= */

.services-grid {
    display: grid;
    /* PRIMA ERA: repeat(auto-fit, ...); */
    /* ORA METTI QUESTO PER AVERLI TUTTI LARGHI UGUALI: */
    grid-template-columns: 1fr; 
    
    gap: 30px; /* Spazio tra i rettangoli */
    max-width: 900px; /* Larghezza massima per non farli diventare giganti su schermi enormi */
    margin: 0 auto; /* Centra tutto */
    width: 100%; /* Assicura che usi tutto lo spazio disponibile */
}

/* IL BOX DEL SERVIZIO */
.service-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 15px; /* Angoli arrotondati */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); /* Ombra leggera */
    border: 1px solid #f0f0f0; /* Bordino sottilissimo */
    
    text-decoration: none; /* Toglie sottolineature brutte */
    color: #333;
    
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Spazia bene il contenuto */
    height: 100%; /* Forza tutti i box alla stessa altezza */
    
    transition: all 0.3s ease; /* Animazione morbida */
    cursor: pointer;
}

/* QUANDO PASSI IL MOUSE (Effetto Bottone) */
.service-item:hover {
    transform: translateY(-5px); /* Si alza leggermente */
    box-shadow: 0 15px 30px rgba(0,0,0,0.1); /* L'ombra diventa profonda */
    border-color: #1697c7; /* Il bordo diventa blu */
}

/* TESTO DENTRO */
.service-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    color: #1697c7; /* Titolo Blu */
    margin-bottom: 15px;
    text-transform: uppercase;
    font-weight: 700;
}

.service-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
    margin-bottom: 20px;
}

/* PICCOLA SCRITTA "SCOPRI" IN FONDO */
.service-cta {
    font-size: 0.8rem;
    font-weight: bold;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto; /* La spinge in fondo al box */
    display: flex;
    align-items: center;
    gap: 5px;
}

/* MOBILE: Si adatta agli schermi piccoli - testo centrato */
@media (max-width: 768px) {
    .service-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    .service-item h3,
    .service-item p {
        text-align: center;
    }
    .service-arrow {
        align-self: center;
        margin-top: 10px;
    }
}

.service-item h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #1697c7; /* Un richiamo al blu del footer */
}

.service-item p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
}

/* 3. FOOTER BLU (Stile Screenshot) */
.blue-info-section {
    background-color: #1697c7; /* Quel bel colore Ciano/Blu della foto */
    color: white;
    padding-top: 60px;
}

.blue-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 Colonne uguali */
    gap: 30px;
}

.blue-col h4 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    text-transform: uppercase;
}

.blue-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* MAPPA */
.map-col iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.map-buttons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.map-buttons a {
    font-size: 0.8rem;
    color: white;
    text-decoration: underline;
}

.copyright-bar {
    background-color: #127ba3; /* Un blu leggermente più scuro per la barra finale */
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
}

/* --- FOOTER HOME PAGE --- */
.site-footer {
    background-color: #ffffff;
    color: #333;
    padding: 80px 20px 30px;
    margin-top: 0;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.footer-col h3,
.footer-col h4 {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 25px;
    color: #1a1a1a;
}

.footer-col h3 {
    font-size: 1.3rem;
    margin-top: 15px;
}

.footer-col h4 {
    font-size: 1rem;
    border-bottom: 2px solid #1697c7;
    padding-bottom: 10px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logos {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-logo {
    height: auto;
    max-height: 60px;
    width: auto;
    max-width: 200px;
    opacity: 0.9;
    object-fit: contain;
    display: block;
}

.footer-logo-granda {
    max-width: 180px;
}

.footer-logo-fin {
    max-width: 120px;
}

.footer-brand-name {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: #333;
}

.footer-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: #1697c7;
    stroke: currentColor;
}

.footer-address {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 20px;
}

.footer-legal-info {
    font-size: 0.9rem;
    line-height: 1.8;
    color: #666;
    margin: 0;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
}

.footer-links-legal {
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 0.85rem;
    color: #1697c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #127ba3;
    text-decoration: underline;
}

.footer-separator {
    color: #ccc;
    font-size: 0.85rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

.footer-admin-link {
    margin: 15px 0;
    display: flex;
    justify-content: center;
}

.footer-admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background-color: transparent;
    border: 1px solid #1697c7;
    color: #1697c7;
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.footer-admin-btn:hover {
    background-color: #1697c7;
    color: white;
}

.footer-admin-btn .footer-icon {
    width: 16px;
    height: 16px;
}

/* Footer pagine pool (4 colonne: Chi siamo, Orari, Contatti, Dove siamo) */
.site-footer.footer-pool .footer-container {
    grid-template-columns: repeat(4, 1fr);
}

.site-footer.footer-pool .footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 12px;
}

.footer-map-wrap {
    margin-top: 10px;
}

.footer-map-canvas {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #e8f4f8;
}

.footer-map-wrap iframe {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 8px;
    display: block;
}

.footer-map-card {
    display: block;
    width: 100%;
    min-height: 160px;
    background: linear-gradient(135deg, #f0f7fa 0%, #e8f4f8 100%);
    border: 1px solid #d0e8f0;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.footer-map-card:hover {
    background: linear-gradient(135deg, #e0eef5 0%, #d8ecf4 100%);
    border-color: #1697c7;
    box-shadow: 0 4px 12px rgba(22, 151, 199, 0.15);
}

.footer-map-card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    color: #1697c7;
    opacity: 0.9;
}

.footer-map-card-address {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
}

.footer-map-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1697c7;
}

.footer-map-card:hover .footer-map-card-cta {
    color: #127ba3;
}

.footer-map-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    color: #1697c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-map-link:hover {
    color: #127ba3;
    text-decoration: underline;
}

/* Responsive Footer */
@media (max-width: 968px) {
    .site-footer.footer-pool .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .site-footer:not(.footer-pool) .footer-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .footer-brand {
        align-items: center;
    }
    
    .footer-contact-item {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 60px 20px 25px;
    }
    
    .footer-container {
        gap: 35px;
        padding-bottom: 30px;
    }
}

/* RESPONSIVE PER IL FOOTER BLU */
@media (max-width: 900px) {
    .blue-container {
        grid-template-columns: 1fr 1fr; /* 2 colonne su tablet */
    }
}

/* --- DENTRO LA MEDIA QUERY MOBILE (in fondo al file) --- */

/* --- DENTRO LA MEDIA QUERY MOBILE (in fondo al file) --- */
@media (max-width: 768px) {

    /* 1. CONTENITORE: Margini di sicurezza per non tagliare i bordi */
    .hero-center {
        width: 100%;
        padding: 0 10px;
        z-index: 20;
    }

    /* Logo e sottotitolo su mobile */
    .hero-logo {
        width: 70vw !important;
        max-width: none !important;
        margin-bottom: 15px;
    }
    
    .hero-subtitle {
        font-size: 2.5vw !important;
        letter-spacing: 0.1em !important;
    }

    /* Titolo su mobile */
    .hero-center h1 {
        flex-direction: column;
        padding: 0 15px;
    }
    
    .text-line {
        font-size: 4.5vw !important;
        letter-spacing: 0.08em !important;
        margin-bottom: 5px; 
    }
    
    .text-line.text-underline::after {
        width: 105%;
        height: 1px;
    }
    
    .hero-center {
        max-width: 100vw;
        padding: 0 10px;
    }
    
    /* 4. REGOLE EXTRA PER GLI ALTRI ELEMENTI MOBILE */
    .logo-img {
        height: 25px; /* Loghi piccoli in alto */
    }
    
}

.service-detail-container {
    max-width: 900px;
    margin: 60px auto;
    padding: 0 20px;
    color: #333;
}

.service-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 50px;
    color: #555;
}

/* TITOLI SEZIONI (ORARI / PREZZI) */
.info-title {
    font-family: 'Syne', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: #1697c7; /* Blu CSR */
    margin-bottom: 20px;
    border-left: 5px solid #1697c7;
    padding-left: 15px;
    margin-top: 60px;
}

/* TABELLE ORARI E PREZZI */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
    overflow: hidden; /* Per arrotondare gli angoli */
}

.info-table thead {
    background-color: #1697c7;
    color: white;
}

.info-table th, .info-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.info-table th {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-table tr:last-child td {
    border-bottom: none;
}

/* Nessun effetto hover sulle righe: le tabelle restano uniformi al passaggio del mouse */

/* Prezzo in grassetto */
.price-tag {
    font-weight: bold;
    font-size: 1.1rem;
    color: #333;
}

/* Note sotto le tabelle (stesso stile Alba/Asti) */
.table-note {
    margin-top: 15px;
    color: #666;
    font-size: 0.95rem;
}

/* Sottotitoli di sezione (es. sotto un info-title) */
.info-subtitle {
    font-family: 'Syne', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #1697c7;
    margin-top: 25px;
    margin-bottom: 15px;
}

/* Pulsante PRENOTA (Sommariva / prenotazione corsi) */
.btn-prenota-wrap {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
.btn-prenota {
    display: inline-block;
    padding: 14px 32px;
    background-color: #1697c7;
    color: #fff;
    text-decoration: none;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 50px;
    border: 2px solid #1697c7;
    transition: all 0.3s ease;
}
.btn-prenota:hover {
    background-color: #1380a8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(22, 151, 199, 0.35);
}

/* MOBILE */
@media (max-width: 600px) {
    .info-table th, .info-table td {
        padding: 10px;
        font-size: 0.9rem;
    }
}
/* =========================================
   TEMA CHIARO (PER PAGINE SERVIZI/DETTAGLI)
   ========================================= */

body.light-theme {
    background-color: #ffffff !important; /* Sfondo pagina BIANCO */
    color: #222222 !important; /* Testo NERO */
}

/* Assicuriamoci che i paragrafi siano ben leggibili */
body.light-theme p, 
body.light-theme li,
body.light-theme td {
    color: #333333;
}

/* PERÒ... Il titolo sopra la foto grande deve rimanere BIANCO */
body.light-theme .hero-center h1 {
    color: #ffffff !important;
    text-shadow: 0 5px 15px rgba(0,0,0,0.5); /* Ombra per leggerlo meglio */
}

body.light-theme .back-home-btn {
    color: #ffffff !important;
    border-color: #ffffff !important;
}

body.light-theme .back-home-btn:hover {
    background: white;
    color: black !important;
}

/* =========================================
   SEZIONE NEWS PISCINE (Pagina singola piscina)
   ========================================= */

.pool-news-section {
    background-color: #1697c7; /* Blu CSR */
    color: white;
    padding: 80px 20px;
}

.pool-news-container {
    max-width: 1200px;
    margin: 0 auto;
}

.pool-news-header {
    text-align: center;
    margin-bottom: 50px;
}

.pool-news-header h2 {
    font-family: 'Syne', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #fff;
}

.pool-news-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.pool-news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.pool-news-list .news-item {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.pool-news-list .news-item:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.pool-news-list .news-date {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: bold;
    letter-spacing: 1px;
}

.pool-news-list .news-title {
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.pool-news-list .news-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin: 10px 0;
}

.pool-news-list .read-more {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.pool-news-list .read-more:hover {
    opacity: 1;
}

.no-news {
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    font-style: italic;
    padding: 40px;
}

.pool-news-section .no-news {
    color: rgba(255, 255, 255, 0.8);
}

.news-pool {
    font-size: 0.8em;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* =========================================
   PAGINA LOGIN E ADMIN
   ========================================= */

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    padding: 40px 20px;
}

.login-box {
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    max-width: 500px;
    width: 100%;
}

.login-box h2 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.login-box p {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: white;
    color: #333;
}

.form-group input:hover {
    border-color: #b0b0b0;
}

.form-group input:focus {
    outline: none;
    border-color: #1697c7;
    box-shadow: 0 0 0 3px rgba(22, 151, 199, 0.1);
}

.form-group {
    position: relative;
}

/* Menu a tendina personalizzato elegante */
.custom-select-wrapper {
    position: relative;
    margin-top: 8px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    background-color: white;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: #999;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    position: relative;
}

.custom-select.has-selection .custom-select-trigger {
    color: #333;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #999;
    transition: transform 0.3s ease;
}

.custom-select.open .custom-select-trigger::after {
    transform: translateY(-50%) rotate(180deg);
    border-top-color: #1697c7;
}

.custom-select-trigger:hover {
    border-color: #1697c7;
}

.custom-select.open .custom-select-trigger {
    border-color: #1697c7;
    box-shadow: 0 0 0 3px rgba(22, 151, 199, 0.1);
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.custom-select.open .custom-select-options {
    max-height: 300px;
    opacity: 1;
    overflow-y: auto;
}

.custom-select-option {
    padding: 14px 16px;
    cursor: pointer;
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    color: #333;
    transition: all 0.2s ease;
    border-bottom: 1px solid #f5f5f5;
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: #f8f9fa;
    color: #1697c7;
    padding-left: 20px;
}

.custom-select-option:active {
    background-color: rgba(22, 151, 199, 0.1);
}

/* Stile per input nascosto */
.form-group input[type="hidden"] {
    display: none;
}

/* Stile per select tradizionale (backup) */
.form-group select {
    width: 100%;
    padding: 14px 45px 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Syne', sans-serif;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-sizing: border-box;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231697c7' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px;
    color: #333;
    font-weight: 500;
}

.form-group select:hover {
    border-color: #1697c7;
    box-shadow: 0 2px 8px rgba(22, 151, 199, 0.1);
}

.form-group select:focus {
    outline: none;
    border-color: #1697c7;
    box-shadow: 0 0 0 3px rgba(22, 151, 199, 0.1);
}

.btn-primary {
    width: auto;
    padding: 10px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(22, 151, 199, 0.1), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover {
    color: #1697c7;
    border-color: #1697c7;
    background: rgba(22, 151, 199, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(22, 151, 199, 0.15);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
}

.error-message {
    background-color: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    display: none;
}

.error-message.show {
    display: block;
}

/* =========================================
   PANNello ADMIN
   ========================================= */

.admin-container {
    min-height: 100vh;
    padding: 0;
    position: relative;
    background: #ffffff;
}

.admin-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

.admin-header {
    background: transparent;
    padding: 50px 45px 40px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header-left {
    flex: 1;
}

.admin-header h1 {
    font-family: 'Syne', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #333;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.admin-subtitle {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin: 0;
    font-weight: 400;
}

.admin-header-right {
    display: flex;
    align-items: center;
}

.btn-logout-modern {
    padding: 10px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-logout-modern:hover {
    color: #333;
    border-color: #ccc;
    background: #f8f9fa;
}

.btn-logout-modern svg {
    width: 18px;
    height: 18px;
}

.admin-header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-back {
    padding: 14px 28px;
    background: rgba(22, 151, 199, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(22, 151, 199, 0.3);
    letter-spacing: 0.3px;
}

.btn-back:hover {
    background: rgba(18, 123, 163, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22, 151, 199, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-back svg {
    width: 18px;
    height: 18px;
}

.btn-logout {
    padding: 14px 28px;
    background: rgba(198, 40, 40, 0.9);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(198, 40, 40, 0.3);
    letter-spacing: 0.3px;
}

.btn-logout:hover {
    background: rgba(183, 28, 28, 0.95);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(198, 40, 40, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

.admin-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.news-form-card,
.news-list-card {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    border: 1px solid #e0e0e0;
    width: 100%;
}

.card-header {
    background: #f8f9fa;
    padding: 25px 35px;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
}

.card-header h2 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-header svg {
    opacity: 0.9;
}

.news-form {
    padding: 35px;
    background: transparent;
}

.news-form label {
    color: #333;
}

.news-form input,
.news-form textarea,
.news-form select {
    background: #ffffff;
    border-color: #e0e0e0;
    color: #333;
}

.news-form input::placeholder,
.news-form textarea::placeholder {
    color: #999;
}

.news-form input:focus,
.news-form textarea:focus,
.news-form select:focus {
    background: #ffffff;
    border-color: #1697c7;
    color: #333;
}

.news-form h2 {
    display: none;
}

/* Formato unificato admin: titoli visibili per Servizi, Corsi e News */
.admin-services-section .section-title-form,
.admin-course-form .section-title-form,
.admin-news-section .section-title-form,
.news-list-section .section-title-form {
    display: block !important;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #1697c7;
}
.admin-services-section {
    margin-bottom: 0;
}

.news-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: 'Syne', sans-serif;
    resize: vertical;
    box-sizing: border-box;
    background-color: white;
    color: #333;
    line-height: 1.6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.news-form textarea:hover {
    border-color: #b0b0b0;
}

.news-form textarea:focus {
    outline: none;
    border-color: #1697c7;
    box-shadow: 0 0 0 3px rgba(22, 151, 199, 0.1);
}

.news-list-admin {
    padding: 0;
    max-height: 600px;
    overflow-y: auto;
    background: transparent;
}

.news-list-admin p {
    color: #666;
}

.news-list-section {
    padding: 35px;
    background: transparent;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    color: #155724;
    margin-bottom: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.9rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-message svg {
    flex-shrink: 0;
    stroke: #155724;
}

.news-list-admin h2 {
    display: none;
}

.news-list-admin::-webkit-scrollbar {
    width: 8px;
}

.news-list-admin::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.news-list-admin::-webkit-scrollbar-thumb {
    background: #1697c7;
    border-radius: 10px;
}

.news-list-admin::-webkit-scrollbar-thumb:hover {
    background: #127ba3;
}

.admin-news-item {
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
}

.admin-news-item:last-child {
    margin-bottom: 0;
}

.admin-news-item:hover {
    border-color: #1697c7;
    background: #f8f9fa;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.admin-news-content {
    flex: 1;
    padding-right: 20px;
}

.admin-news-content h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.5;
}

.admin-news-content p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #666;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.admin-news-date {
    font-size: 0.9rem;
    color: #999;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.admin-news-date::before {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.admin-news-content p {
    color: #666;
    margin: 5px 0;
}

.admin-news-date {
    color: #999;
    font-size: 0.9rem;
}

.btn-delete {
    width: auto;
    padding: 10px 20px;
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    margin-left: 15px;
    white-space: nowrap;
}

.btn-delete:hover {
    color: #c62828;
    border-color: #c62828;
    background: rgba(198, 40, 40, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(198, 40, 40, 0.15);
}

.btn-delete:active {
    transform: translateY(0);
}

/* Modale conferma eliminazione */
.confirm-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.confirm-overlay.show {
    display: flex;
}

.confirm-box {
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: confirmFadeIn 0.25s ease-out;
}

@keyframes confirmFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.confirm-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    color: #333;
}

.confirm-box h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px;
}

.confirm-box p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin: 0 0 30px;
    line-height: 1.5;
}

.confirm-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.confirm-cancel {
    padding: 10px 24px;
    background: transparent;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-cancel:hover {
    border-color: #ccc;
    background: #f8f9fa;
    color: #333;
}

.confirm-delete {
    padding: 10px 24px;
    background: transparent;
    color: #c62828;
    border: 1px solid #e0b0b0;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.confirm-delete:hover {
    border-color: #c62828;
    background: rgba(198, 40, 40, 0.05);
}

/* Pannello dettaglio corso dinamico */
.course-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 40px 20px;
}

.course-detail-overlay.show {
    display: flex;
}

.course-detail-panel {
    background: #fff;
    border-radius: 16px;
    padding: 50px 40px;
    max-width: 800px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: confirmFadeIn 0.25s ease-out;
    color: #333;
    max-height: 90vh;
    overflow-y: auto;
}

.course-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
    padding: 4px;
}

.course-detail-close:hover {
    color: #333;
}

@media (max-width: 768px) {
    .course-detail-panel {
        padding: 30px 20px;
    }
}

@media (max-width: 768px) {
    .pool-news-header h2 {
        font-size: 2rem;
    }
    
    .admin-grid {
        grid-template-columns: 1fr;
    }
    
    .admin-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
        padding: 30px;
    }
    
    .admin-header-left {
        width: 100%;
    }
    
    .admin-header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .admin-news-item {
        flex-direction: column;
    }
    
    .btn-delete {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
}
/* ============================================================
   TABELLA ORARI - restyling istituzionale (desktop)
   ============================================================ */
.info-table { border: 1px solid #e4e9ee; box-shadow: none; border-radius: 12px; }
.info-table thead { background-color: #16324f; }
.info-table th { font-size: 0.74rem; letter-spacing: 1.2px; padding: 14px 18px; }
.info-table td { padding: 14px 18px; color: #41505f; border-bottom: 1px solid #eef1f4; }
.info-table tbody tr:nth-child(even) { background-color: #f8fafb; }
.info-table td.info-day { font-weight: 700; color: #16324f; }
.info-pill { display: inline-block; background: #e7f4f9; color: #1274a0; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: 0.3px; }

/* TAG / LIVELLO del corso (badge su card e dettaglio) */
.course-tag {
    display: inline-block; vertical-align: middle;
    background: #16324f; color: #ffffff;
    font-family: 'Syne', sans-serif; font-size: 0.62rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    padding: 4px 11px; border-radius: 20px; margin-left: 8px; position: relative; top: -2px;
}


/* ============================================================
   NEWS - foto quadrata (Instagram) + layout piu' ordinato
   ============================================================ */
.news-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 16px;
    background: #eef1f4;
}
.news-carousel .news-image { max-width: 380px; }
.news-item { gap: 8px; }
.news-title { letter-spacing: -0.01em; line-height: 1.2; }
.news-date { text-transform: uppercase; }


/* ============================================================
   NEWS - layout PC affiancato (foto a sinistra, testo a destra)
   ============================================================ */
.news-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
@media (min-width: 768px) {
    .news-carousel .news-item,
    .pool-news-list .news-item {
        flex-direction: row;
        align-items: center;
        gap: 30px;
    }
    .news-carousel .news-item .news-image,
    .pool-news-list .news-item .news-image {
        width: 300px;
        max-width: 300px;
        flex-shrink: 0;
        margin-bottom: 0;
    }
}

/* ============================================================
   HERO LOGO SOPRA A TUTTO — il velo del video non lo tocca piu'
   ============================================================ */
.fullscreen-bg { z-index: -10 !important; }
.video-transition { z-index: -9 !important; }
.overlay { display: none !important; }
.content-layer { z-index: 50 !important; }
.hero-center { z-index: 60 !important; }
.hero-logo {
    z-index: 60 !important;
    position: relative !important;
    opacity: 1 !important;
}

/* Velo bianco hero ELIMINATO definitivamente (ingrigiva il logo) */
.video-transition { display: none !important; }

/* SECONDO velo bianco (welcome-section::before) — ELIMINATO: ingrigiva il box del logo */
.welcome-section::before { display: none !important; }

/* Tolgo l'ombra del logo hero (creava il rettangolo sfumato sotto il box) */
.hero-logo { filter: none !important; }


/* ============================================================
   FOTO DEL CORSO (compare solo se caricata dal gestionale)
   ============================================================ */
.csr-course-photo { margin: 0 0 28px; }
.csr-course-photo img {
    display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 480px;
    object-fit: cover; border-radius: 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}


/* ============================================================
   HOME - contatti di tutte le piscine
   ============================================================ */
.site-footer .footer-container.footer-container-wide { grid-template-columns: 1fr 1.9fr 1fr; }
.footer-pools-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; }
.fpc-item { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fpc-name { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.5px; }
.fpc-item a, .fpc-general a { color: inherit; text-decoration: none; font-size: 0.88rem; opacity: 0.85; overflow-wrap: anywhere; }
.fpc-item a:hover, .fpc-general a:hover { opacity: 1; text-decoration: underline; }
.fpc-general { margin-top: 20px; font-size: 0.88rem; }
@media (max-width: 900px) { .site-footer .footer-container.footer-container-wide { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .footer-pools-contacts { grid-template-columns: 1fr; } }

.fpc-wa { color: #25D366 !important; opacity: 1 !important; font-weight: 600; }


/* ============================================================
   NEWS - cornice blu con il nome dell'impianto
   ============================================================ */
.news-item.news-framed, .news-carousel .news-item.news-framed, .pool-news-list .news-item.news-framed {
    display: block; padding: 0; overflow: hidden; border: 3px solid #1697c7; border-radius: 16px;
    box-shadow: 0 6px 20px rgba(22,151,199,0.15);
}
.news-carousel .news-item.news-framed { background: #fff; padding-right: 0; }
.news-pool-banner {
    display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
    padding: 14px 22px; background: linear-gradient(135deg, #1697c7 0%, #16324f 100%); color: #fff;
}
.npb-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; opacity: 0.85; }
.npb-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.7rem; line-height: 1.1; text-transform: uppercase; letter-spacing: 0.5px; }
.news-framed .news-item-inner { display: flex; flex-direction: column; gap: 16px; padding: 22px; }
@media (min-width: 768px) { .news-framed .news-item-inner { flex-direction: row; align-items: center; gap: 30px; } }
@media (max-width: 480px) { .npb-name { font-size: 1.35rem; } }


/* ============================================================
   CHI SIAMO
   ============================================================ */
.cs-lead { font-size: 1.12rem; line-height: 1.75; color: #444; margin: 0 0 8px; }
.cs-list { list-style: none; padding: 0; margin: 22px 0 10px; display: grid; gap: 12px; }
.cs-list li { position: relative; padding: 15px 18px 15px 54px; background: #f5f9fc; border: 1px solid #e0edf5; border-radius: 12px; color: #2b3a47; line-height: 1.55; }
.cs-list li::before { content: ''; position: absolute; left: 21px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: #1697c7; box-shadow: 0 0 0 5px rgba(22,151,199,0.18); }
.cs-list.cs-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cs-goals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 26px 0; }
.cs-goal { background: #16324f; color: #fff; border-radius: 16px; padding: 26px 22px; }
.cs-goal .n { font-family: 'Syne', sans-serif; font-size: 2.3rem; font-weight: 800; color: #1697c7; display: block; margin-bottom: 8px; }
.cs-goal p { margin: 0; line-height: 1.6; font-size: 0.98rem; }
.cs-quote { margin: 44px 0 0; padding: 26px 30px; border-left: 5px solid #1697c7; background: #f5f9fc; border-radius: 0 14px 14px 0; font-size: 1.1rem; line-height: 1.75; color: #2b3a47; font-style: italic; }
@media (max-width: 800px) { .cs-goals, .cs-list.cs-two { grid-template-columns: 1fr; } }

.csr-text-block p { margin: 0 0 14px; line-height: 1.7; color: #444; font-size: 1.02rem; }


/* ============================================================
   SAFEGUARDING
   ============================================================ */
.sg-alert { margin: 26px 0 8px; padding: 16px 20px; background: #fff4f2; border: 2px solid #c0392b; border-radius: 12px; color: #7a2118; line-height: 1.6; }
.sg-note { color: #555; line-height: 1.7; margin: 0 0 22px; }
.sg-form { display: flex; flex-direction: column; gap: 8px; background: #f5f9fc; border: 1px solid #e0edf5; border-radius: 16px; padding: 26px; }
.sg-form label { font-weight: 700; color: #16324f; margin-top: 10px; font-size: 0.95rem; }
.sg-form label span { font-weight: 400; color: #7a8794; }
.sg-form input, .sg-form select, .sg-form textarea { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 2px solid #d6e2ea; border-radius: 10px; font-size: 1rem; font-family: inherit; background: #fff; }
.sg-form input:focus, .sg-form select:focus, .sg-form textarea:focus { outline: none; border-color: #1697c7; }
.sg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sg-error { color: #c0392b; font-weight: 600; margin: 8px 0 0; }
.sg-send { margin-top: 16px; align-self: flex-start; background: #16324f; color: #fff; border: 0; border-radius: 10px; padding: 14px 30px; font-weight: 800; letter-spacing: 1px; cursor: pointer; font-size: 0.95rem; }
.sg-send:disabled { opacity: 0.6; cursor: default; }
.sg-done { background: #eef8f1; border: 2px solid #2e9e5b; border-radius: 16px; padding: 26px; color: #1f5f3a; line-height: 1.7; }
.sg-done h3 { margin: 0 0 8px; font-family: 'Syne', sans-serif; }


/* ============================================================
   AGONISTICA
   ============================================================ */
.ag-wrap { max-width: 1100px; margin: 0 auto; padding: 30px 20px 70px; color: #333; }
.ag-tabs { position: sticky; top: 70px; z-index: 30; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; background: rgba(255,255,255,0.95); padding: 12px; border-radius: 14px; box-shadow: 0 4px 18px rgba(0,0,0,0.08); margin-bottom: 30px; }
.ag-tabs a { padding: 9px 20px; border-radius: 30px; background: #eef6fb; color: #16324f; text-decoration: none; font-weight: 700; font-size: 0.88rem; letter-spacing: 0.4px; }
.ag-tabs a:hover { background: #1697c7; color: #fff; }
.ag-section { margin-top: 48px; scroll-margin-top: 130px; }
.ag-title { font-family: 'Syne', sans-serif; font-size: 1.9rem; font-weight: 800; color: #16324f; text-transform: uppercase; margin: 0 0 22px; padding-left: 16px; border-left: 6px solid #1697c7; }
.ag-empty { text-align: center; padding: 70px 20px; color: #777; font-size: 1.1rem; }
.ag-intro-title { font-family: 'Syne', sans-serif; font-size: 2.1rem; font-weight: 800; color: #16324f; margin: 0 0 14px; }
.ag-intro-text p { font-size: 1.12rem; line-height: 1.8; color: #444; margin: 0 0 14px; }
.ag-news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ag-news-card { background: #fff; border: 1px solid #e3ebf1; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(22,50,79,0.07); display: flex; flex-direction: column; }
.ag-news-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.ag-news-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ag-news-date { align-self: flex-start; background: #1697c7; color: #fff; border-radius: 20px; padding: 3px 12px; font-size: 0.75rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ag-news-card h3 { margin: 4px 0 0; font-family: 'Syne', sans-serif; font-size: 1.25rem; color: #16324f; line-height: 1.25; }
.ag-news-card p { margin: 0; color: #555; line-height: 1.65; white-space: pre-line; }
.ag-news-card .ag-more { margin-top: auto; align-self: flex-start; color: #1697c7; font-weight: 700; text-decoration: none; }
.ag-table-wrap { overflow-x: auto; border-radius: 14px; box-shadow: 0 6px 20px rgba(22,50,79,0.08); }
.ag-records { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.ag-records thead { background: #16324f; color: #fff; }
.ag-records th { text-align: left; padding: 14px 18px; font-size: 0.78rem; letter-spacing: 1.2px; text-transform: uppercase; }
.ag-records td { padding: 14px 18px; border-bottom: 1px solid #eef1f4; color: #41505f; }
.ag-records tbody tr:nth-child(even) { background: #f8fafb; }
.ag-records td.ag-time { font-family: 'Syne', sans-serif; font-weight: 800; color: #1697c7; font-size: 1.1rem; white-space: nowrap; }
.ag-records td.ag-athlete { font-weight: 700; color: #16324f; }
.ag-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.ag-gallery figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: #eef1f4; }
.ag-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s; }
.ag-gallery figure:hover img { transform: scale(1.06); }
.ag-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; color: #fff; font-size: 0.85rem; background: linear-gradient(to top, rgba(0,0,0,0.7), transparent); }
.ag-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(8,16,28,0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.ag-lightbox img { max-width: 94vw; max-height: 82vh; border-radius: 8px; }
.ag-lb-cap { color: #fff; margin-top: 14px; text-align: center; max-width: 80ch; }
.ag-lb-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.6rem; cursor: pointer; line-height: 1; }
@media (max-width: 600px) { .ag-title { font-size: 1.5rem; } .ag-tabs { top: 60px; } }


/* ============================================================
   ICONE WHATSAPP / INSTAGRAM nei contatti
   ============================================================ */
.footer-icon.footer-icon-fill { stroke: none; fill: currentColor; }
.footer-contact-item a { color: inherit; text-decoration: none; }
.footer-contact-item a:hover { text-decoration: underline; }
.fpc-ico { width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; flex-shrink: 0; }
.fpc-ig { color: #E1306C !important; opacity: 1 !important; font-weight: 600; }


/* ============================================================
   MENU: tasto "Menu" con tendina unica
   ============================================================ */
.nav-menu-btn { cursor: pointer; }
.nav-bigmenu .dropdown-menu { left: auto; right: 0; transform: translateY(-10px); min-width: 270px; max-height: 80vh; overflow-y: auto; }
.nav-bigmenu:hover .dropdown-menu, .nav-bigmenu.open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-bigmenu .dropdown-menu::before { content: ''; position: absolute; top: -22px; left: 0; right: 0; height: 22px; }
.nav-bigmenu.open .dropdown-arrow { transform: rotate(180deg); opacity: 1; }
.dm-label { padding: 10px 25px 4px; font-family: 'Syne', sans-serif; font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: #1697c7; }
.dm-sep { height: 1px; background: rgba(0,0,0,0.08); margin: 8px 18px; }
@media (max-width: 968px) {
    .nav-bigmenu > .nav-menu-btn { display: none !important; }
    .nav-bigmenu .dropdown-menu { max-height: none !important; overflow: visible !important; background: transparent; margin: 0; }
    .nav-bigmenu .dropdown-menu li { border-bottom: 0; }
    .dm-label { color: #7fd0ee; text-align: center; padding-top: 18px; }
    .dm-sep { background: rgba(255,255,255,0.14); }
}


/* ============================================================
   SAFEGUARDING - pagina informativa
   ============================================================ */
.sg-page p { line-height: 1.75; color: #444; }
.sg-title { font-family: 'Syne', sans-serif; font-size: 1.7rem; font-weight: 800; color: #16324f; margin: 0 0 18px; line-height: 1.25; }
.sg-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: 0; margin: 32px 0 20px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(22,50,79,0.15); }
.sg-cta-main { background: linear-gradient(135deg, #16324f 0%, #1697c7 100%); color: #fff; padding: 30px; }
.sg-cta-main h3 { margin: 0 0 8px; font-family: 'Syne', sans-serif; font-size: 1.5rem; }
.sg-cta-main p { color: rgba(255,255,255,0.92); margin: 0 0 18px; }
.sg-big-btn { display: inline-block; background: #fff; color: #16324f !important; font-weight: 800; letter-spacing: 0.8px; text-decoration: none; padding: 15px 28px; border-radius: 12px; font-size: 0.95rem; }
.sg-big-btn:hover { background: #eaf6fc; }
.sg-bottom { text-align: center; margin: 36px 0 0; }
.sg-bottom .sg-big-btn { background: #16324f; color: #fff !important; }
.sg-cta-side { background: #f5f9fc; padding: 30px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.sg-side-label { font-size: 0.75rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: #7a8794; }
.sg-mail { color: #1697c7; font-weight: 700; text-decoration: none; overflow-wrap: anywhere; font-size: 1.05rem; }
.sg-112 { margin-top: 8px; color: #7a2118; }
.sg-docs { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 24px; }
.sg-doc { background: #fff; border: 2px solid #1697c7; color: #1697c7; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 10px; font-size: 0.9rem; }
.sg-modello-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 44px 0 10px; }
.sg-modello-head .info-title { font-size: 1.5rem; }
.sg-toggle { background: #eef6fb; border: 1px solid #cfe3ef; color: #16324f; font-weight: 700; padding: 9px 18px; border-radius: 10px; cursor: pointer; }
.sg-acc { border: 1px solid #e0edf5; border-radius: 12px; margin-bottom: 10px; background: #fff; }
.sg-acc summary { cursor: pointer; padding: 16px 20px; font-family: 'Syne', sans-serif; font-weight: 700; color: #16324f; font-size: 1.05rem; list-style: none; position: relative; padding-right: 48px; }
.sg-acc summary::-webkit-details-marker { display: none; }
.sg-acc summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: #1697c7; }
.sg-acc[open] summary::after { content: '−'; }
.sg-acc[open] summary { border-bottom: 1px solid #e0edf5; }
.sg-acc-body { padding: 8px 22px 18px; }
.sg-sub { font-family: 'Syne', sans-serif; color: #1697c7; margin: 18px 0 6px; font-size: 1rem; }
.sg-list { margin: 8px 0 4px; padding-left: 22px; line-height: 1.7; color: #444; }
.sg-list li { margin-bottom: 8px; }
.sg-def { margin: 14px 0; padding: 14px 18px; background: #f5f9fc; border-left: 4px solid #1697c7; border-radius: 0 10px 10px 0; }
.sg-def h4 { margin: 0 0 6px; font-family: 'Syne', sans-serif; color: #16324f; text-transform: uppercase; font-size: 0.9rem; letter-spacing: 0.5px; }
.sg-def p { margin: 0; }
.sg-back { margin: 0 0 14px; } .sg-back a { color: #1697c7; font-weight: 700; text-decoration: none; }
@media (max-width: 760px) { .sg-cta { grid-template-columns: 1fr; } }


/* ============================================================
   LAVORA CON NOI
   ============================================================ */
.work-cta { background: linear-gradient(135deg, #16324f 0%, #1697c7 100%); margin: 60px 0 0; }
.work-cta-inner { max-width: 1100px; margin: 0 auto; padding: 38px 24px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.work-cta-label { display: inline-block; font-size: 0.75rem; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #bfe6f6; margin-bottom: 6px; }
.work-cta-text h2 { margin: 0 0 6px; font-family: 'Syne', sans-serif; font-size: 1.7rem; color: #fff; }
.work-cta-text p { margin: 0; color: rgba(255,255,255,0.9); max-width: 56ch; }
.work-cta-btn { background: #fff; color: #16324f; font-weight: 800; letter-spacing: 0.8px; text-decoration: none; padding: 16px 30px; border-radius: 12px; white-space: nowrap; }
.work-cta-btn:hover { background: #eaf6fc; }
.wk-check { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: #444 !important; font-size: 0.92rem; }
.wk-check input { width: auto !important; margin-top: 4px; }
.wk-check a { color: #1697c7; }


/* ============================================================
   CONTATTI SEMPLIFICATI: telefono, email e icone sotto
   ============================================================ */
.soc { display: inline-flex; align-items: center; justify-content: center; color: #1697c7; text-decoration: none; transition: color 0.2s, transform 0.2s; }
.soc svg { width: 24px; height: 24px; display: block; }
.soc-wa:hover { color: #25D366; transform: translateY(-2px); }
.soc-ig:hover { color: #E1306C; transform: translateY(-2px); }
.footer-social, .fpc-social { display: flex; gap: 16px; align-items: center; margin: 8px 0 0; }
.footer-pool .footer-col p.footer-social { margin: 6px 0 0; }

/* home: i contatti occupano una riga a 4 colonne sotto logo e sede legale, cosi' il fondo pagina e' piu' corto */
.site-footer .footer-container.footer-container-wide { grid-template-columns: 1fr 1fr; grid-template-areas: "brand legal" "contacts contacts"; gap: 34px 60px; }
.footer-container-wide .footer-brand { grid-area: brand; }
.footer-container-wide .footer-legal { grid-area: legal; }
.footer-container-wide .footer-contacts { grid-area: contacts; }
.footer-pools-contacts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px 36px; }
.fpc-item { gap: 4px; }
.fpc-name { font-family: inherit; font-weight: 700; font-size: 0.98rem; text-transform: none; letter-spacing: 0; color: #222; }
.fpc-phone, .fpc-mail { color: inherit; font-size: 0.9rem; opacity: 1; font-weight: 400; text-decoration: none; overflow-wrap: anywhere; }
.fpc-phone:hover, .fpc-mail:hover { text-decoration: underline; }
@media (max-width: 900px) { .site-footer .footer-container.footer-container-wide { grid-template-columns: 1fr; grid-template-areas: "brand" "legal" "contacts"; } .footer-pools-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .footer-pools-contacts { grid-template-columns: 1fr; } }

/* fascia "Lavora con noi" piu' compatta */
.work-cta { margin-top: 40px; }
.work-cta-inner { padding: 20px 24px; }
.work-cta-text h2 { font-size: 1.3rem; margin: 0; }


/* ============================================================
   SAFEGUARDING (per impianto) - impaginazione sobria
   ============================================================ */
.sgd { max-width: 860px; }
.sgd-title { font-family: 'Syne', sans-serif; font-size: 2rem; font-weight: 800; color: #16324f; margin: 0 0 4px; }
.sgd-sub { color: #666; margin: 0 0 24px; font-size: 0.95rem; }
.sgd p { line-height: 1.75; color: #333; margin: 0 0 14px; }
.sgd-mail a { color: #16324f; font-weight: 700; }
.sgd-docs a { color: #16324f; font-weight: 700; margin-right: 18px; }
.sgd-h { font-family: 'Syne', sans-serif; font-size: 1.25rem; font-weight: 700; color: #16324f; margin: 38px 0 12px; padding-bottom: 8px; border-bottom: 1px solid #d9e2e8; }
.sgd-h.sgd-main { font-size: 1.4rem; margin-top: 54px; }
.sgd h4 { font-size: 1rem; margin: 22px 0 6px; color: #16324f; }
.sgd ul { padding-left: 22px; line-height: 1.7; color: #333; margin: 6px 0 14px; }
.sgd li { margin-bottom: 8px; }
.sgd-def { margin: 0 0 16px; }
.sgd-def h4 { text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.5px; margin: 18px 0 4px; }
.sgd-def p { margin: 0; }
.sgd-form { max-width: 640px; margin: 10px 0 0; }
.sgd-form label { display: block; font-weight: 600; margin: 16px 0 5px; color: #222; }
.sgd-form label span { font-weight: 400; color: #777; }
.sgd-form input, .sgd-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #b8c4cc; border-radius: 4px; font: inherit; background: #fff; }
.sgd-form input:focus, .sgd-form textarea:focus { outline: 2px solid #1697c7; outline-offset: 0; border-color: #1697c7; }
.sgd-error { color: #b3261e; font-weight: 600; margin: 10px 0 0 !important; }
.sgd-send { margin-top: 18px; background: #16324f; color: #fff; border: 0; padding: 12px 26px; font-weight: 700; border-radius: 4px; cursor: pointer; font-size: 0.95rem; }
.sgd-send:disabled { opacity: 0.6; cursor: default; }
.sgd-done { max-width: 640px; border: 1px solid #2e7d32; background: #f3faf4; padding: 14px 20px; border-radius: 4px; margin-top: 10px; }
.sgd-done p { margin: 0; color: #1f5f3a; }


/* ============================================================
   FOOTER HOME - contatti in due colonne, una sede sotto l'altra
   ============================================================ */
.site-footer.footer-home { padding: 44px 20px 22px; }
.footer-home .footer-container.footer-container-wide { gap: 24px 60px; padding-bottom: 24px; align-items: start; }
.footer-home .footer-col h4 { margin-bottom: 12px; font-size: 1.05rem; }
.footer-home .footer-logos { margin-bottom: 10px; }
.footer-home .footer-brand-name { font-size: 1.15rem; margin: 0 0 4px; }
.footer-home .footer-tagline { margin: 0; }
.footer-home .footer-address, .footer-home .footer-legal-info { line-height: 1.55; margin: 0 0 8px; }

/* elenco sedi: 2 colonne, si legge dall'alto verso il basso (Alba, Asti, Asti Bolle Blu, Cuneo | Sanfre, Savigliano, Sommariva) */
.footer-home .footer-pools-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; gap: 0 48px; }
.footer-home .fpc-item { display: grid; grid-template-columns: 138px minmax(0, 1fr) auto; column-gap: 14px; align-items: center; padding: 7px 0; border-bottom: 1px solid #e8edf1; min-width: 0; }
.footer-home .fpc-name { grid-column: 1; grid-row: 1 / span 2; font-size: 0.9rem; font-weight: 700; line-height: 1.25; text-transform: none; letter-spacing: 0; color: #1a1a1a; }
.footer-home .fpc-phone { grid-column: 2; grid-row: 1; font-size: 0.88rem; line-height: 1.3; }
.footer-home .fpc-mail { grid-column: 2; grid-row: 2; font-size: 0.88rem; line-height: 1.3; overflow-wrap: anywhere; }
.footer-home .fpc-name + .fpc-mail { grid-row: 1 / span 2; align-self: center; }
.footer-home .fpc-social { grid-column: 3; grid-row: 1 / span 2; margin: 0; gap: 12px; justify-self: end; }
.footer-home .fpc-social .soc { width: 22px; height: 22px; }
.footer-home .fpc-social .soc svg { width: 22px; height: 22px; }
.footer-home .fpc-general { margin: 14px 0 0; }
@media (max-width: 900px) {
    .footer-home .footer-pools-contacts { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
    .footer-home .fpc-name, .footer-home .fpc-phone, .footer-home .fpc-mail { text-align: left; }
}
@media (max-width: 600px) {
    /* telefono: nome con le icone a destra, poi telefono, poi email a tutta larghezza */
    .footer-home .fpc-item { grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; padding: 9px 0; }
    .footer-home .fpc-name { grid-column: 1; grid-row: 1; }
    .footer-home .fpc-social { grid-column: 2; grid-row: 1; }
    .footer-home .fpc-phone { grid-column: 1 / span 2; grid-row: 2; }
    .footer-home .fpc-mail { grid-column: 1 / span 2; grid-row: 3; }
    .footer-home .fpc-name + .fpc-mail { grid-row: 2; align-self: start; }
}

/* colore delle icone: scure come negli altri contatti, con il colore del marchio al passaggio del mouse */
.site-footer .soc { color: #333; }
.site-footer .soc-wa:hover { color: #25D366; }
.site-footer .soc-ig:hover { color: #E1306C; }


/* ============================================================
   CHI SIAMO - pagina di solo testo (modificabile dagli admin)
   ============================================================ */
.plain-page { max-width: 820px; margin: 0 auto; padding: 130px 20px 70px; color: #333; }
.plain-page h1 { font-family: 'Syne', sans-serif; font-size: 2.2rem; font-weight: 800; color: #16324f; margin: 0 0 26px; }
.plain-page p { font-size: 1.05rem; line-height: 1.85; margin: 0 0 18px; }


/* ============================================================
   Pulsante "Torna ..." sulla foto dell'impianto: piu' grande
   ============================================================ */
.back-home-btn, body.light-theme .back-home-btn { font-size: 1.3rem; font-weight: 700; letter-spacing: 0.5px; padding: 14px 34px; margin-top: 26px; border-width: 2px; }
@media (max-width: 600px) { .back-home-btn, body.light-theme .back-home-btn { font-size: 1.1rem; padding: 12px 26px; } }

/* icona Facebook */
.site-footer .soc-fb:hover { color: #1877F2; }


/* gestionale: modifica delle news */
.admin-news-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.btn-edit-news { background: #16324f; color: #fff; border: 0; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.4px; }
.btn-edit-news:hover { background: #1697c7; }
.btn-cancel-edit { background: #fff; color: #41505f; border: 1px solid #cfd6de; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 0.8rem; }
@media (max-width: 600px) { .admin-news-actions { flex-direction: column; align-items: stretch; } }


/* Agonistica: presentazione con foto e link; records leggibili su telefono */
.ag-intro-img { display: block; width: 100%; max-width: 760px; height: auto; border-radius: 14px; margin: 0 0 22px; }
.ag-intro-text a { color: #1697c7; font-weight: 600; overflow-wrap: anywhere; }
.ag-intro-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.ag-intro-links a { background: #16324f; color: #fff; text-decoration: none; font-weight: 700; padding: 11px 20px; border-radius: 10px; font-size: 0.92rem; }
.ag-intro-links a:hover { background: #1697c7; }
@media (max-width: 700px) {
    .ag-table-wrap { overflow-x: visible; box-shadow: none; border-radius: 0; }
    .ag-records { min-width: 0; background: transparent; }
    .ag-records thead { display: none; }
    .ag-records, .ag-records tbody, .ag-records tr, .ag-records td { display: block; width: 100%; box-sizing: border-box; }
    .ag-records tr { margin-bottom: 12px; padding: 10px 16px; background: #fff; border: 1px solid #e3ebf1; border-radius: 12px; }
    .ag-records tbody tr:nth-child(even) { background: #fff; }
    .ag-records td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 6px 0; border: 0; text-align: right; overflow-wrap: anywhere; }
    .ag-records td::before { content: attr(data-label); flex-shrink: 0; text-align: left; font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: #7a8794; }
}


/* ============================================================
   NEWS DELLA PISCINA: 3 in evidenza + "Vedi tutte"
   ============================================================ */
.pool-news-section .news-featured, .pool-news-section .news-more { display: flex; flex-direction: column; gap: 25px; }
.pool-news-section .news-more { margin-top: 25px; }
.pool-news-section .news-more[hidden] { display: none; }
.news-toolbar { display: flex; justify-content: flex-end; margin: -20px 0 16px; }
.news-more-btn { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.85); border-radius: 30px; padding: 7px 18px; font-size: 0.85rem; font-weight: 700; cursor: pointer; letter-spacing: 0.3px; }
.news-more-btn:hover { background: #fff; color: #1697c7; }

/* Safeguarding: pulsanti per scaricare i PDF + riga di revisione */
.sgd-docs { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 14px; }
.sgd-docs a.sgd-doc { margin-right: 0; background: #16324f; color: #fff; text-decoration: none; padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 0.95rem; }
.sgd-docs a.sgd-doc:hover { background: #1697c7; }
.sgd-rev { margin-top: 26px; font-size: 0.85rem; color: #7a8794; }

/* ============================================================
   AGONISTICA: pagine interne (squadre) + "Vedi tutte" nelle news
   ============================================================ */
.ag-title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 22px; }
.ag-title-row .ag-title { margin: 0; }
.ag-more-btn { background: transparent; color: #16324f; border: 1.5px solid #16324f; border-radius: 30px; padding: 7px 18px; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.ag-more-btn:hover { background: #16324f; color: #fff; }
.ag-news-card[hidden] { display: none; }
.ag-news-tag { display: inline-block; margin-left: 8px; background: #eef6fb; color: #16324f; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; vertical-align: middle; }
.ag-squads { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.ag-squad { display: block; text-decoration: none; background: #fff; border: 1px solid #dfe7ee; border-radius: 14px; padding: 24px; color: #16324f; transition: all 0.2s; }
.ag-squad:hover { border-color: #1697c7; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,50,79,0.10); }
.ag-squad h3 { margin: 0; font-family: 'Syne', sans-serif; font-size: 1.3rem; font-weight: 800; }
.ag-squad p { margin: 8px 0 0; color: #5b6b79; font-size: 0.95rem; line-height: 1.5; }
.ag-squad span { display: inline-block; margin-top: 16px; color: #1697c7; font-weight: 700; font-size: 0.92rem; }

/* ============================================================
   NEWS (home): schede tutte uguali + carosello con scorrimento nativo (swipe)
   ============================================================ */
.news-carousel-wrapper { max-width: 940px; overflow: visible; }
.news-carousel {
    position: relative; display: flex; gap: 16px; align-items: stretch;
    overflow-x: auto; overflow-y: hidden; padding: 4px 2px 16px;
    transform: none !important; transition: none; will-change: auto;
    scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.news-carousel::-webkit-scrollbar { display: none; }
.news-carousel > .no-news { flex: 1 0 100%; }
.news-carousel .news-item.news-framed {
    flex: 0 0 86%; width: auto; max-width: 420px; min-width: 0; padding: 0; box-sizing: border-box;
    display: flex; flex-direction: column; scroll-snap-align: start;
}
@media (min-width: 768px) {
    .news-carousel .news-item.news-framed { flex: 0 0 calc((100% - 16px) / 2); max-width: none; }
}
.news-carousel .news-framed .news-item-inner { flex: 1; display: flex; flex-direction: column !important; align-items: stretch; gap: 12px; padding: 18px; }
.news-carousel .news-image { width: 100%; max-width: none; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; margin: 0; flex-shrink: 0; }
.news-image-ph {
    display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 3; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, #e8f4fa 0%, #cfe6f2 100%); color: rgba(22,50,79,0.28);
    font-family: 'Syne', sans-serif; font-weight: 800; font-size: 2.4rem; letter-spacing: 6px;
}
.news-carousel .news-body { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news-carousel .news-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; font-size: 1.2rem; }
.news-carousel .news-description { margin: 0; }
.news-carousel .news-footer { margin-top: auto; padding-top: 6px; min-height: 30px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.news-carousel .news-read-more-toggle { margin: 0; padding: 4px 0; color: #16324f; font-weight: 700; }
.news-carousel-wrapper.news-single .news-carousel-controls { display: none; }

/* finestra con la news completa */
.news-modal { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(10,20,32,0.62); }
.news-modal[hidden] { display: none; }
.news-modal-box { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0,0,0,0.35); }
.news-modal-close { position: absolute; top: 8px; right: 10px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgba(255,255,255,0.92); color: #16324f; font-size: 1.7rem; line-height: 1; cursor: pointer; }
.news-modal-content { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; }
.news-modal-img { width: 100%; border-radius: 12px; display: block; }
.news-modal-text { margin: 0; white-space: pre-wrap; line-height: 1.6; color: #333; }
body.news-modal-open { overflow: hidden; }

/* =========================================
   VOLANTINI E MODULI (PDF scaricabili)
   ========================================= */
.docs-section { background: #f4f7fa; padding: 56px 20px 60px; text-align: center; }
.docs-section[hidden] { display: none; }
.docs-section .section-title-dark { font-size: 2rem; margin-bottom: 10px; }
.docs-intro { color: #5d6b79; margin: 0 auto 28px; max-width: 560px; }
.docs-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.doc-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid #e1e7ee; border-radius: 12px; padding: 14px 16px; }
.doc-ico { flex: 0 0 auto; width: 44px; height: 52px; border-radius: 6px; background: #c0392b; color: #fff; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.5px; display: flex; align-items: center; justify-content: center; }
.doc-info { flex: 1 1 auto; min-width: 0; }
.doc-title { font-weight: 700; color: #16324f; overflow-wrap: anywhere; }
.doc-meta { font-size: 0.8rem; color: #7a8794; margin-top: 2px; }
.doc-btn { flex: 0 0 auto; border: 0; border-radius: 999px; background: #16324f; color: #fff; font-weight: 700; font-size: 0.85rem; padding: 11px 20px; cursor: pointer; font-family: inherit; }
.doc-btn:hover { background: #1697c7; }
.doc-btn:disabled { opacity: 0.6; cursor: default; }
@media (max-width: 520px) { .doc-card { flex-wrap: wrap; } .doc-btn { width: 100%; } .docs-section .section-title-dark { font-size: 1.5rem; } }

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