/* IMPORTAZIONE DEI FONT CORE */
@import url('https://fonts.cdnfonts.com/css/kagitingan');
@import url('https://fonts.cdnfonts.com/css/glacial-indifference-2');

:root {
    --primary: #00b6d3;       /* Cyan */
    --secondary: #6acde5;     /* Light Blue */
    --accent: #0085D0;        /* Deep Blue */
    --green-brand: #00c853;   /* Green */
    --dark: #000000;          
    --tertiary: #ffffff;      
    --light-gray: #f5f5f7;    
    --dark-gray: #86868b;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Glacial Indifference', sans-serif;
}

body {
    background-color: var(--tertiary);
    color: #1d1d1f;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Kagitingan', sans-serif;
    font-weight: 600;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* NAVBAR MODERNA */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background-color: rgba(255, 255, 255, 0.75);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

.main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 30px rgba(0, 182, 211, 0.08);
}

.logo-area img {
    display: block;
    transition: transform 0.3s ease;
}
.logo-area img:hover { transform: scale(1.05); }

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-menu ul li a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.nav-menu ul li a:hover, .nav-menu ul li a.active {
    color: var(--primary);
}

/* LA LINEA SI APPLICA ESCLUSIVAMENTE AI LINK TESTUALI DEL MENU */
.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--secondary), var(--accent));
    transition: var(--transition);
}

.nav-menu ul li a:hover::after, .nav-menu ul li a.active::after {
    width: 100%;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-link {
    color: #1d1d1f;
    font-size: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0,0,0,0.03);
    transition: var(--transition);
}

.social-link:hover {
    transform: translateY(-2px);
    color: white;
}
.social-link.wa:hover { background-color: #25d366; }
.social-link.tt:hover { background-color: var(--dark); }
.social-link.ig:hover { background-color: #e1306c; }

/* HERO DESIGN */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px;
    background: radial-gradient(circle at center, rgba(106, 205, 229, 0.12) 0%, rgba(255, 255, 255, 1) 70%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    z-index: 2;
}

.product-render {
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.08));
    animation: float 4s ease-in-out infinite;
}

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

.brand-sub {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--dark-gray);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.product-name {
    font-size: 54px;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--dark) 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 182, 211, 0.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 133, 208, 0.3);
}

.btn-secondary {
    background-color: var(--light-gray);
    color: var(--dark);
}
.btn-secondary:hover {
    background-color: #e8e8ed;
    transform: translateY(-2px);
}

/* INTRO SECTION */
.intro { padding: 90px 0; text-align: center; background-color: var(--light-gray); }
.intro h2 { font-size: 42px; margin-bottom: 25px; background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.intro p { font-size: 22px; max-width: 850px; margin: 0 auto; color: #424245; line-height: 1.6; font-weight: 300; }

/* SENSORS SECTION */
.sensors { padding: 100px 0; background: linear-gradient(135deg, var(--primary), var(--accent)); }
.sensors h2 { text-align: center; font-size: 46px; margin-bottom: 60px; color: var(--tertiary); }
.sensors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.sensor-card {
    background-color: var(--tertiary); border-radius: 22px; height: 260px; cursor: pointer;
    overflow: hidden; padding: 25px; position: relative; transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.sensor-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }

.sensor-icon { font-size: 45px; color: var(--primary); position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - 20px)); transition: var(--transition); }
.sensor-name { font-size: 20px; color: var(--dark); position: absolute; top: 50%; left: 50%; transform: translate(-50%, calc(50% + 15px)); text-align: center; width: 90%; transition: var(--transition); }

.sensor-card:hover .sensor-icon { top: 25px; left: 25px; transform: translate(0, 0); font-size: 26px; }
.sensor-card:hover .sensor-name { top: 22px; left: 65px; transform: translate(0, 0); font-size: 18px; text-align: left; }

.republic-emblem-container { display: flex; align-items: center; position: absolute; top: 65px; left: 25px; opacity: 0; transition: opacity 0.4s ease; }
.sensor-card:hover .republic-emblem-container { opacity: 1; }
.article-reference { font-size: 15px; color: var(--accent); }
.article-text { position: absolute; top: 120px; left: 25px; right: 25px; font-size: 13.5px; line-height: 1.5; color: var(--dark-gray); opacity: 0; transition: var(--transition); }
.sensor-card:hover .article-text { opacity: 1; top: 105px; }

@media (hover: none) {
    .sensor-card { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.2); }
    .sensor-card .sensor-icon { top: 25px; left: 25px; transform: translate(0, 0); font-size: 26px; }
    .sensor-card .sensor-name { top: 22px; left: 65px; transform: translate(0, 0); font-size: 18px; text-align: left; }
    .sensor-card .republic-emblem-container { opacity: 1; }
    .sensor-card .article-text { opacity: 1; top: 105px; }
}

/* AWARDS SECTION */
.awards { padding: 100px 0; text-align: center; background-color: var(--tertiary); }
.awards h2 { font-size: 42px; margin-bottom: 50px; background: linear-gradient(135deg, var(--dark), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.awards-container { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.award { width: 380px; height: 260px; background: var(--light-gray); border-radius: 20px; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.award:hover { transform: translateY(-8px); box-shadow: 0 12px 30px rgba(0, 133, 208, 0.15); }
.award img { width: 100%; height: 100%; object-fit: cover; }

/* FOOTER */
/* ==========================================================================
   4. SEZIONE FOOTER DEL BRAND (Layout a 3 Colonne Premium)
   ========================================================================== */
footer {
    background-color: var(--dark);
    color: var(--tertiary);
    padding: 60px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

/* Regole comuni per i titoli delle colonne laterali */
footer h4 {
    font-size: 16px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

/* --- COLONNA SINISTRA: CONTATTI --- */
.footer-left {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-emails {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-emails a {
    color: #e3e3e5;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-emails a i {
    color: var(--secondary);
    width: 16px;
}

.footer-emails a:hover {
    color: var(--secondary);
}

/* Social link con testo cliccabile accanto */
.footer-social-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 5px;
}

.footer-social-links a {
    color: var(--dark-gray);
    text-decoration: none;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
    width: fit-content;
}

.footer-social-links a i {
    font-size: 18px;
    color: var(--tertiary);
    transition: color 0.2s ease;
}

/* Colori specifici al passaggio del mouse sui brand */
.footer-social-links a:hover { color: var(--tertiary); transform: translateX(3px); }
.footer-social-links a:hover i.fa-instagram { color: #e1306c; }
.footer-social-links a:hover i.fa-tiktok { color: #00f2fe; }
.footer-social-links a:hover i.fa-whatsapp { color: #25d366; }

/* --- COLONNA CENTRALE: INVARIATA --- */
.footer-center {
    flex: 1;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.copyright {
    font-size: 13px;
    color: var(--dark-gray);
    margin-bottom: 6px;
    font-weight: 300;
}

/* --- COLONNA DESTRA: PULSANTI --- */
.footer-right {
    flex: 1;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.footer-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 220px; /* Larghezza fissa dei bottoni per simmetria */
}

.footer-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: rgba(255, 255, 255, 0.04);
    color: #e3e3e5;
    text-decoration: none;
    padding: 12px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: var(--transition);
}

.footer-btn i {
    font-size: 14px;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.footer-btn:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--tertiary);
    border-color: var(--secondary);
}

.footer-btn:hover i {
    color: var(--secondary);
}

/* Variazione sottile per il tasto della scuola */
.btn-scuola:hover {
    border-color: var(--accent);
}
.btn-scuola:hover i {
    color: var(--accent);
}

/* --- OTTIMIZZAZIONE RESPONSIVE PER SMARTPHONE --- */
@media (max-width: 768px) {
    .footer-grid {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .footer-left, .footer-center, .footer-right {
        text-align: center;
        align-items: center;
        flex: none;
        width: 100%;
    }

    /* Forza la centratura del blocco logo e dei testi di copyright */
    .footer-center {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .footer-logo img {
        margin: 0 auto;
    }

    .copyright {
        text-align: center;
        width: 100%;
    }

    /* Forza la centratura interna di icone e testi per le Email */
    .footer-emails {
        align-items: center;
    }

    .footer-emails a {
        justify-content: center;
        width: 100%;
    }

    /* Forza la centratura interna di icone e testi per i Social */
    .footer-social-links {
        align-items: center;
    }

    .footer-social-links a {
        margin: 0 auto;
        justify-content: center;
    }

    /* Evita l'effetto translate laterale al click su mobile */
    .footer-social-links a:hover {
        transform: none;
    }

    .footer-buttons {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
}
/* RESPONSIVE HAMBURGER MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}
.menu-toggle .bar {
    height: 2px; width: 25px; background-color: var(--dark); border-radius: 2px; transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed; top: 60px; right: -100%; width: 260px; height: calc(100vh - 60px);
        background-color: rgba(255,255,255,0.96); backdrop-filter: blur(15px);
        box-shadow: -5px 5px 15px rgba(0,0,0,0.05); transition: var(--transition);
    }
    .nav-menu.active { right: 0; }
    .nav-menu ul { flex-direction: column; padding: 40px; gap: 25px; }
    .menu-toggle { display: flex; }

    /* Animazione Hamburger a X */
    .menu-toggle.is-active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .menu-toggle.is-active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.is-active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    .product-name { font-size: 38px; }
}

/* ==========================================================================
   RESET DI SICUREZZA PER GLITCH ICONE SOCIAL (WHATSAPP, TIKTOK, INSTAGRAM)
   ========================================================================== */
.social-link, 
.social-link i, 
.social-link i::before, 
.social-link i::after {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    outline: none !important;
}

.social-link i {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* ==========================================================================
   STILI SPECIFICI PER LA PAGINA PRODOTTO (INFO.PNG & DATA.PNG)
   ========================================================================== */
.product-page-hero {
    padding: 120px 0 60px;
    background: radial-gradient(circle at top, rgba(106, 205, 229, 0.12) 0%, rgba(255, 255, 255, 1) 80%);
    text-align: center;
}

.product-main-title {
    font-size: 42px;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--dark) 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.showcase-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sezione Info Showcase */
.info-showcase {
    width: 100%;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.06);
    transition: var(--transition);
    margin-bottom: 60px;
    background-color: var(--tertiary);
}

.info-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0, 182, 211, 0.12);
}

.info-showcase img {
    display: block;
    width: 100%;
    height: auto;
}

/* Sezione Data Showcase */
.data-showcase-section {
    padding: 60px 0 100px;
    background-color: var(--light-gray);
    border-radius: 40px;
    margin-bottom: 60px;
}

.data-showcase {
    max-width: 85%;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
    background-color: var(--tertiary);
}

.data-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 133, 208, 0.1);
}

.data-showcase img {
    display: block;
    width: 100%;
    height: auto;
}

/* Ottimizzazione Tablet e Mobile per la pagina prodotto */
@media (max-width: 768px) {
    .product-main-title { font-size: 32px; padding: 0 10px; }
    .data-showcase-section { padding: 40px 0; border-radius: 20px; }
    .data-showcase { max-width: 95%; }
}

/* ==========================================================================
   6. STILI SPECIFICI PER LA PAGINA ABOUT US (US.HTML) - NUOVO DESIGN Premium
   ========================================================================== */
.about-us {
    padding: 140px 0 100px;
    background-color: var(--tertiary);
    text-align: center;
}

.about-us h2 {
    font-size: 46px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--dark) 20%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
}

.about-subtitle {
    font-size: 20px;
    color: var(--dark-gray);
    line-height: 1.6;
    margin-bottom: 60px;
    font-weight: 300;
}

/* Griglia flessibile a due righe bilanciate */
.team-areas-flex {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
    max-width: 1150px;
    margin: 0 auto 60px;
}

/* Card principale trasparente per fare da contenitore alle transizioni */
.area-card-team {
    width: calc(33.333% - 24px);
    min-width: 300px;
    display: flex;
    flex-direction: column;
    background: transparent;
    border-radius: 20px;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: default;
}

/* EFFETTO HOVER SULL'INTERA CARD: Si ingrandisce leggermente e si solleva */
.area-card-team:hover {
    transform: scale(1.03) translateY(-8px);
}

/* Slot superiore per il titolo con i colori della Brand Identity */
.card-header-badge {
    padding: 18px 25px;
    border-radius: 20px 20px 0 0;
    text-align: left;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.card-header-badge h3 {
    font-size: 20px;
    color: var(--tertiary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Colorazioni dedicate ai badge in base all'area usando le var del brand */
.style-software { background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.style-compliance { background: linear-gradient(135deg, #4b7bec, var(--primary)); }
.style-comunicazione { background: linear-gradient(135deg, var(--secondary), var(--accent)); }
.style-engine { background: linear-gradient(135deg, #10ac84, #1dd1a1); }
.style-hardware { background: linear-gradient(135deg, var(--dark), #57606f); }

/* Slot inferiore per le descrizioni - Grigio chiaro morbido */
.card-body-content {
    background-color: var(--light-gray);
    border-radius: 0 0 20px 20px;
    padding: 30px 25px;
    flex-grow: 1;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.02);
    border-top: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

/* Quando passi sopra la card, l'area di descrizione acquista più profondità */
.area-card-team:hover .card-body-content {
    background-color: var(--tertiary);
    box-shadow: 0 20px 40px rgba(0, 182, 211, 0.08);
    border-color: rgba(0, 182, 211, 0.15);
}

/* Stile della lista interna */
.card-body-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.card-body-content ul li {
    font-size: 15px;
    color: #424245;
    line-height: 1.6;
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
}

.card-body-content ul li:last-child {
    margin-bottom: 0;
}

/* Sottile bullet point del colore del brand */
.card-body-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-size: 18px;
    line-height: 1;
}

.about-summary {
    font-size: 24px;
    color: var(--dark);
    margin-top: 50px;
    letter-spacing: 0.5px;
}

/* ==========================================================================
   STILI SPECIFICI PER LA PAGINA MEDIA
   ========================================================================== */

/* Hero Media */
.media-hero {
    padding: 140px 0 40px;
    text-align: center;
}

.media-hero-logo {
    width: 100px;
    height: 100px;
    margin-bottom: 10px;
}

.media-title {
    font-size: 46px;
    font-family: 'Kagitingan', sans-serif;
    color: var(--dark);
}

/* Centratore e stile Card Responsabile */
.media-card-wrapper {
    display: flex;
    justify-content: center;
    margin: 40px 0 60px;
}

.manager-card {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--tertiary);
    padding: 40px 30px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 182, 211, 0.15);
    transition: var(--transition);
}

.manager-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 45px rgba(0, 182, 211, 0.25);
}

.manager-card h3.manager-area {
    font-family: 'Kagitingan', sans-serif;
    font-size: 28px;
    margin: 0 0 15px;
    letter-spacing: 0.5px;
}

.manager-name {
    font-size: 18px;
    margin-bottom: 20px;
}

.manager-socials {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 24px;
    margin-bottom: 25px;
}

.manager-socials a {
    color: var(--tertiary);
    transition: transform 0.2s ease;
}

.manager-socials a:hover {
    transform: scale(1.15);
}

.manager-email {
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Sezione Download Pulsanti */
.download-section {
    text-align: center;
    margin-bottom: 80px;
}

.download-section h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--dark);
}

.download-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

/* Sezione Regolamento Stampa */
.rules-section {
    max-width: 900px !important;
    margin: 0 auto 100px;
    padding: 0 25px;
    text-align: left;
}

.rules-main-title {
    font-size: 30px;
    margin-bottom: 25px;
    color: var(--dark-gray);
    font-weight: 600;
}

.rules-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #424245;
    margin-bottom: 20px;
}

.rules-section h4 {
    font-size: 20px;
    margin: 30px 0 12px;
    color: var(--primary);
    font-weight: 600;
}

.rules-footer-note {
    margin-top: 35px !important;
    padding-top: 20px;
    border-top: 1px solid var(--light-gray);
    font-style: italic;
}

.rules-footer-note a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.rules-footer-note a:hover {
    text-decoration: underline;
}

/* Responsive Mobile per Pagina Media */
@media (max-width: 600px) {
    .media-title { font-size: 36px; }
    .manager-card { padding: 30px 20px; }
    .manager-card h3.manager-area { font-size: 24px; }
    .manager-email { font-size: 15px; }
    .download-grid .cta-button { width: 100%; text-align: center; }
    .rules-main-title { font-size: 24px; }
    .rules-section h4 { font-size: 18px; }
}

/* ==========================================================================
   STILE PULSANTI DI DOWNLOAD (MEDIA PAGE)
   ========================================================================== */
.download-section h3 {
    font-family: 'Kagitingan', sans-serif;
    font-size: 30px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 30px;
}

.download-grid .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: var(--tertiary) !important; /* Forza il testo bianco ed elimina il blu dei link */
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none !important; /* Rimuove la sottolineatura brutta */
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 182, 211, 0.2);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

/* Effetto dinamico al passaggio del mouse */
.download-grid .cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 182, 211, 0.4);
    opacity: 0.95;
}

/* Effetto click premuto */
.download-grid .cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 182, 211, 0.2);
}

/*@media (max-width: 768px) {
    
    .sensor-card {
        transform: none !important;
        margin-bottom: 20px;
    }

    .article-text {
        opacity: 1 !important;
        visibility: visible !important;
        display: block !important;
        max-height: none !important;
        position: relative !important;
        top: 0 !important;
        padding-top: 15px;
    }
}*/

/* ==========================================================================
   9. STILI SPECIFICI PER LA PAGINA PRIVACY (PRIVACY.HTML)
   ========================================================================== */
.privacy-hero {
    padding: 140px 0 30px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 182, 211, 0.08) 0%, rgba(255, 255, 255, 1) 70%);
}

.privacy-main-title {
    font-size: 40px;
    color: var(--dark);
    letter-spacing: 0.5px;
}

/* Nota integrativa Ally stile Apple Alert Banner */
.ally-privacy-note {
    display: flex;
    gap: 20px;
    background-color: var(--light-gray);
    border-left: 4px solid var(--secondary);
    padding: 20px 25px;
    border-radius: 12px;
    margin: 20px auto 40px;
    max-width: 900px;
    align-items: flex-start;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.01);
}

.ally-privacy-note .note-icon {
    color: var(--primary);
    font-size: 20px;
    margin-top: 2px;
}

.ally-privacy-note .note-content p {
    font-size: 15px;
    line-height: 1.6;
    color: #424245;
    margin: 0;
}

.ally-privacy-note .note-content a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.ally-privacy-note .note-content a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Contenitore documento dell'Istituto */
.privacy-body-section {
    max-width: 950px !important;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.privacy-document-card {
    background-color: var(--tertiary);
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 50px 45px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.02);
    text-align: left;
}

.privacy-document-card .doc-subtitle {
    font-size: 16px;
    color: var(--dark-gray);
    font-style: italic;
    margin-bottom: 35px;
    border-bottom: 1px solid var(--light-gray);
    padding-bottom: 15px;
}

.privacy-document-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin: 35px 0 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.privacy-document-card h3:first-of-type {
    margin-top: 0;
}

.privacy-document-card p {
    font-size: 16px;
    line-height: 1.7;
    color: #333336;
    margin-bottom: 18px;
}

.privacy-document-card strong {
    color: var(--dark);
}

/* Lista dei file PDF della scuola */
/* Lista dei file PDF della scuola - Ottimizzata Premium */
.privacy-files-list {
    list-style: none;
    padding-left: 0;
    margin-top: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Il tag li diventa un contenitore neutro flessibile */
.privacy-files-list li {
    padding: 0; /* Resettiamo il padding per darlo tutto al link interno */
    margin: 0;
    display: block;
}

/* Il link ora occupa il 100% dello spazio, rendendo TUTTO il riquadro cliccabile */
.privacy-files-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px;
    background-color: var(--light-gray);
    color: #424245; /* Grigio scuro stile Apple, basta blu elettrico */
    text-decoration: none; /* Rimuove la brutta sottolineatura visibile in image_e670f7.png */
    font-size: 14px;
    font-weight: 500;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.02);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Icona del PDF personalizzata (Usiamo FontAwesome via pseudo-elemento) */
.privacy-files-list li a::before {
    content: '\f1c1'; /* Icona specifica del File-PDF di FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: #e74c3c; /* Rosso PDF classico che stacca bene sul grigio */
    font-size: 16px;
    transition: transform 0.3s ease;
}

/* EFFETTO HOVER CORRETTO: Illumina il riquadro e colora il testo con il brand Ally */
.privacy-files-list li a:hover {
    background-color: var(--tertiary);
    color: var(--primary); /* Il testo diventa del colore primario del brand */
    border-color: rgba(0, 182, 211, 0.2); /* Sottile bordo azzurro */
    box-shadow: 0 6px 15px rgba(0, 182, 211, 0.06);
    transform: translateX(5px); /* Leggero slittamento a destra elegante */
}

/* Animazione dinamica dell'icona PDF quando ci passi sopra */
/* Icona del PDF personalizzata con il colore della Brand Identity di Ally */
.privacy-files-list li a::before {
    content: '\f1c1'; /* Icona specifica del File-PDF di FontAwesome */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--primary); /* Cambiato da rosso al colore principale di Ally */
    font-size: 16px;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Al passaggio del mouse, l'icona si coordina con il cambio colore del testo */
.privacy-files-list li a:hover::before {
    transform: scale(1.15);
    color: var(--secondary); /* Opzionale: diventa del colore secondario/accento quando ci passi sopra */
}

/* Responsive mobile per la privacy */
@media (max-width: 768px) {
    .privacy-hero { padding-top: 110px; }
    .privacy-main-title { font-size: 30px; }
    .privacy-document-card { padding: 30px 20px; border-radius: 16px; }
    .privacy-document-card h3 { font-size: 19px; }
    .privacy-document-card p { font-size: 15px; }
    .ally-privacy-note { flex-direction: column; gap: 10px; padding: 15px; }
}