/* 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; }
