/* --- VARIABILI E RESET --- */
:root {
    --primary-color: #003399;
    --secondary-color: #0d6efd;
    --accent-color: #FFC107;
    --text-dark: #1F2937;
    --text-light: #545862;
    --bg-light: #F9FAFB;
    --white: #ffffff;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --border-radius: 8px;
    --max-width: 1200px;
    --font-main: 'Inter', sans-serif;
    --navbar-height: 70px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--white);
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: color 0.3s;
}

ul { 
    list-style: none; 
}

img { 
    max-width: 100%; 
    display: block; 
}

button {
    font-family: inherit;
    line-height: inherit;
}

/* --- COMPONENTI GENERICI --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.btn-primary, .btn-secondary, .btn-buy, .btn-map, .btn-cta {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 1rem;
}

.btn-primary { 
    background-color: var(--primary-color); 
    color: var(--white); 
}

.btn-primary:hover { 
    background-color: #00256f; 
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secondary { 
    background-color: var(--white); 
    color: var(--primary-color); 
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.btn-secondary:hover { 
    background-color: var(--primary-color); 
    color: var(--white); 
}

.btn-secondary.dark { 
    background-color: transparent; 
    color: var(--white); 
    border-color: var(--white); 
}

.btn-secondary.dark:hover { 
    background-color: var(--white); 
    color: var(--primary-color); 
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 { 
    font-size: 2.2rem; 
    margin-bottom: 0.5rem; 
    color: var(--primary-color); 
}

.section-header p { 
    color: var(--text-dark); 
    font-size: 1.1rem; 
}

/* --- NAVBAR --- */
.navbar {
    position: sticky;
    top: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    z-index: 1000;
    padding: 1rem 0;
    height: var(--navbar-height);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 38px; 
    width: auto;      
    display: block;   
}

.nav-links { 
    display: flex; 
    gap: 2rem; 
    align-items: center;
    margin-left: auto;
}

.nav-links li {
    position: relative;
}

.nav-links li.mobile-only {
    display: none;
}

.nav-links a { 
    font-weight: 500; 
    color: var(--primary-color); 
    font-size: 0.95rem; 
}

.nav-links a:hover { 
    color: #0a14ff; 
}

/* === DROPDOWN BASE === */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    min-width: 220px;
    padding: 0.5rem 0;
    z-index: 1001;
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a,
.dropdown-menu span {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--primary-color);
    font-size: 0.95rem;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
}

/* Effetto hover a riga intera SOLO dentro le tendine */
.dropdown-menu a:hover,
.dropdown-menu span:hover {
    background: #eaeff4;
    color: var(--primary-color);
}

/* Icona freccia */
.dropdown-icon {
    font-size: 0.7rem;
    transition: transform 0.3s;
    margin-left: 0.25rem;
    display: inline-block;
}

/* === EFFETTI SPECIFICI SOLO PER DESKTOP (Linea animata esatta) === */
@media (min-width: 769px) {
    /* Mostra tendina al passaggio del mouse */
    .dropdown:hover > .dropdown-menu {
        display: block;
    }

    /* Ruota icona freccia */
    .nav-links > li.dropdown:hover > a .dropdown-icon {
        transform: rotate(180deg);
    }

    /* Prepariamo i link principali del menu desktop per la linea */
    .nav-links > li > a {
        position: relative;
        padding-bottom: 6px; /* Spazio preciso tra testo e linea */
        display: inline-block;
    }

    /* Creazione della linea animata sotto i link principali */
    .nav-links > li > a::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 2px;
        background-color: #0a14ff;
        transform: scaleX(0);
        transform-origin: bottom right;
        transition: transform 0.3s ease;
    }

    /* FIX DEFINITIVO FRECCIA: accorciamo la linea di 1rem sui menu a tendina per non toccare lo chevron */
    .nav-links > li.dropdown > a::after {
        width: calc(100% - 1rem);
    }

    /* Attivazione animazione linea all'hover */
    .nav-links > li > a:hover::after {
        transform: scaleX(1);
        transform-origin: bottom left;
    }
}

/* === NAVBAR ACTIONS === */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

nav li[aria-current="page"] {
    font-weight: 600;
    color: var(--primary-color);
}

nav li[aria-current="page"] > a {
    font-weight: 600;
}

.btn-cta { 
    background-color: var(--secondary-color); 
    color: white; 
    padding: 10px 20px; 
    font-size: 0.9rem; 
    order: 1; 
}

.btn-cta:hover { 
    background-color: #0b5ed7; 
}

.hamburger { 
    display: none; 
    cursor: pointer; 
    font-size: 1.5rem; 
    order: 2; 
}

/* --- HERO --- */
.hero {
    position: relative;
    padding-top: calc(var(--navbar-height) + 2rem);
    padding-bottom: 3rem;
    display: flex;
    align-items: center;
    color: var(--white);
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 81, 50, 0.9), rgba(13, 110, 253, 0.6));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    width: 100%;
}

.badge-eu1 {
    background: rgba(255,255,255,0.2);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.4);
}
.badge-eu {
  height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  width: 280px;
}

.hero h1 { 
    font-size: clamp(1.8rem, 5vw, 2.3rem);
    line-height: 1.2;
    margin-bottom: .9rem;
    text-align: center;
}

.hero p { 
    margin-bottom: 1rem;
    font-size: clamp(.9rem, 2.5vw, 1.1rem);
    text-align: center;
}

.cta-group { 
    display: flex; 
    gap: 1rem; 
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-group .btn-primary,
.cta-group .btn-secondary {
    flex: 1 1 auto;
    min-width: 200px;
}

.hero-stats {
    display: flex; 
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.stat-item { 
    display: flex; 
    flex-direction: column; 
    font-size: 0.9rem;
    min-width: 120px;
}

.stat-item strong { 
    font-size: 1.5rem; 
    color: var(--accent-color); 
}

/* --- SEZIONE CALCOLATORI --- */
.tools-section {
    padding: 4rem 0;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    background: #effbff;
    padding: 2rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
    border: 1px solid #c3c6d2;
    text-align: left;
}

.tool-card:hover {
    border-color: var(--primary-color);
    background: #e5f9ff;
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.tool-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #003399;
}

.tool-card p {
    font-size: 0.9rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.tool-card:hover .tool-icon,
.tool-card:hover h3 {
    color: #002879;
}

.tool-btn {
    width: 100%;
    text-align: center;
    font-size: 0.9rem;
    padding: 8px 16px;
}

/* --- INFO SECTION --- */
.info-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 6rem 0;
    position: relative;
    background-image: radial-gradient(circle at 10% 20%, rgba(255,255,255,0.05) 0%, transparent 20%);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.info-section .section-header h2 {
    color: var(--white);
    position: relative;
    display: inline-block;
}

/*.info-section .section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
    border-radius: 2px;
}*/

.info-section .section-header p {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
}

.info-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: none;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
    background: #0d6efd;
    border-color: var(--accent-color);
}

.info-card i {
    color: var(--accent-color);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: #0d6efd;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
}

.info-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.info-card p {
    color: #fff;
    font-size: 0.95rem;
}

.obj-card {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    box-shadow: none;
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    transition: all 0.4s ease;
    text-align: center;
}

.obj-card i {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: #0d6efd;
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    display: inline-block;
}

.obj-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.obj-card p {
    color: #fff;
    font-size: 0.95rem;
}

/* --- SERVIZI --- */
.main-services {
    background-color: #f3f4f6;
    padding: 6rem 0;
}

.services-wrapper {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.service-card {
    background: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 2.5rem;
    flex: 1;
    min-width: 280px;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.service-card.highlight {
    border-top: 4px solid var(--secondary-color);
    background: var(--white);
}

.benefit-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--secondary-color);
}

.benefit-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.benefit-card p {
    color: var(--text-light);
}

#definizioni li {
    text-align: left;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

#definizioni li i {
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.badge-new {
    position: absolute;
    top: -12px; 
    right: 20px;
    background: var(--accent-color);
    color: #000;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
}

.card-icon {
    width: 60px; 
    height: 60px;
    background: #eef2ff;
    border-radius: 50%;
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 { 
    font-size: 1.5rem; 
    margin-bottom: 1rem; 
}

.feature-list { 
    margin: 1.5rem 0; 
    flex-grow: 1; 
}

.feature-list li { 
    margin-bottom: 0.8rem; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: var(--text-dark); 
}

.feature-list li i { 
    color: var(--primary-color); 
}

.price { 
    font-size: 1.25rem; 
    font-weight: 700; 
    color: var(--text-dark); 
    margin-bottom: 1.5rem; 
}

.btn-buy { 
    width: 100%; 
    padding: 15px; 
    background: var(--text-dark); 
    color: white; 
    border-radius: var(--border-radius); 
    border: none; 
    cursor: pointer; 
    font-weight: 600;
    transition: background 0.3s;
}

.btn-buy:hover { 
    background: #000; 
}

.btn-buy.primary { 
    background: var(--secondary-color); 
}

.btn-buy.primary:hover { 
    background: #0b5ed7; 
}

/* --- Tecnologie --- */
.tecnologie { 
    padding: 5rem 0; 
    background: var(--bg-light); 
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.product-card:hover { 
    transform: translateY(-5px); 
}

.product-img { 
    height: 200px; 
    overflow: hidden; 
}

.product-img img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    transition: transform 0.5s; 
}

.product-card:hover .product-img img { 
    transform: scale(1.05); 
}

.product-content { 
    padding: 1.5rem; 
}

.category { 
    font-size: 0.8rem; 
    color: var(--secondary-color); 
    font-weight: 600; 
    text-transform: uppercase; 
}

.product-content h3 { 
    font-size: 1.25rem; 
    margin: 0.5rem 0; 
}

.product-content p { 
    color: var(--text-light); 
    font-size: 0.95rem; 
    margin-bottom: 1.5rem; 
}

.tecnologie-btn {
    display: block;
    text-align: center;
    background: white;
    border: 1px solid #e5e7eb;
    padding: 10px;
    border-radius: var(--border-radius);
    color: var(--text-dark);
    font-weight: 600;
    transition: all 0.3s;
}

.tecnologie-btn:hover { 
    border-color: var(--primary-color); 
    color: var(--primary-color); 
}

/* --- FINANCE & SUPPORT --- */
.finance-section { 
    background: var(--primary-color); 
    color: var(--white); 
    padding: 5rem 0; 
}

.finance-content { 
    display: flex; 
    align-items: center; 
    gap: 3rem; 
}

.finance-text { 
    flex: 1; 
}

.finance-image { 
    flex: 1; 
    text-align: center; 
    font-size: 10rem; 
    opacity: 0.2; 
}

.finance-list { 
    margin: 2rem 0; 
}

.finance-list li { 
    margin-bottom: 0.5rem; 
    list-style-type: disc; 
    margin-left: 20px; 
}

.support-section { 
    padding: 5rem 0; 
}

.support-box {
    background: #e6f4ea;
    border: 2px dashed var(--primary-color);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
}

.support-box h2 i { 
    color: var(--primary-color); 
    margin-right: 10px; 
}

.support-box p { 
    max-width: 700px; 
    margin: 1rem auto 2rem; 
    color: var(--text-dark); 
}

.support-actions { 
    display: flex; 
    justify-content: center; 
    gap: 1rem; 
    flex-wrap: wrap; 
}

.btn-map { 
    background: var(--primary-color); 
    color: white; 
    border: none; 
}

.btn-outline { 
    background: transparent; 
    border: 2px solid var(--text-dark); 
    padding: 12px 24px; 
    border-radius: var(--border-radius); 
    font-weight: 600; 
    cursor: pointer;
    transition: all 0.3s;
}

.accento {
    border: 2px solid #fff; 
    color: #fff;
}

.accento:hover {
    background: var(--accent-color) !important;
    color: #000 !important;
    border: 2px solid #000;
}

.btn-outline:hover { 
    background: var(--text-dark); 
    color: white; 
}

.btn-map, .btn-outline { 
    font-size: .9rem;
    min-width: 230px;
}

/* --- FOOTER --- */
footer { 
    background: #111827; 
    color: #9CA3AF; 
    padding: 4rem 20px 2rem; 
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-col h4 { 
    color: white; 
    margin-bottom: 1.5rem; 
}

.footer-col ul li { 
    margin-bottom: 0.8rem; 
}

.footer-col ul li a:hover { 
    color: white; 
}

.footer-bottom { 
    text-align: center; 
    border-top: 1px solid #374151; 
    padding-top: 1.3rem; 
    font-size: 0.8rem; 
}

:target {
  scroll-margin-top: 70px;
}

.audio-row {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
}
/*.player {
  width: 280px;
  height: 40px;
}*/

.player {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f0f4ff3b;
    border: 1px solid #c8d4f0;
    border-radius: 999px;
    padding: 4px 12px 4px 6px;
    width: 280px;
    box-sizing: border-box;
}
.play-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: none;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    flex-shrink: 0;
    transition: background .2s;
}
.play-btn:hover { background: #dadde278; }
.time-cur, .time-tot {
    font-size: .8rem;
    color: var(--text-dark);
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}
.progress-track {
    flex: 1;
    height: 4px;
    background: #dadde278;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.progress-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    pointer-events: none;
    transition: width .1s linear;
}

.immag {
    box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    border: 1px solid #8bbaff;
}
.spazio {
    max-width: var(--max-width); margin: 4rem auto 0 auto; padding: 0 20px;
}

/* Classe per evidenziare solo i link importanti nel testo */
.link-evid {
    color: #0a14ff !important; /* Un blu moderno e accessibile */
    text-decoration: underline !important; /* Forza la sottolineatura */
    text-decoration-color: #0a14ff !important; /* Colore della sottolineatura coordinato */
    text-underline-offset: 3px; /* Stacca la linea dal testo per una lettura migliore */
    font-weight: 500; /* Rende il link leggermente più visibile */
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

/* Effetto al passaggio del mouse (Hover) */
.link-evid:hover {
    color: #0a12be !important; /* Il blu si scurisce leggermente */
    text-decoration-color: #004499 !important;
}

#back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #2a7f4f;
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s, visibility .3s, transform .2s;
    z-index: 999;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    transform: translateY(-3px);
    background: #1f6040;
}

/* ACCORDION */
/* Stile Accordion */
.accordion-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
}

.guida-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.guida-item summary {
    padding: 20px;
    font-weight: 500;
    font-size: 1.15rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s;
    color: var(--primary-color);
}

.guida-item summary:hover {
    background: #f0f0f0;
}

/* Freccia che ruota */
.guida-item summary i {
    transition: transform 0.3s;
    font-size: 0.9rem;
    margin-left: 20px;
}

.guida-item[open] summary {
    background: #e4edf0;
    font-weight: 700;
}

.guida-item[open] summary i {
    transform: rotate(180deg);
}

/* Contenuto Risposta */
.guida-content {
    padding: 0 20px 20px 20px;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 1rem;
    border-top: 1px solid #eee;
    background: #e4edf0;
}

.guida-content p {
    padding: 0 20px 20px 20px;
    font-size: 1rem;
    padding-top: 15px;
}

.guida-content ul {
    padding-left: 35px;
    margin: -15px 0 15px 0;
    list-style-type: disc;
}

/* Tabella interna se necessaria */
.benefits-table {
    border-collapse: collapse;
    font-size: 1rem;
    margin: 0 20px 20px 20px;
}

.benefits-table th, .benefits-table td {
    border: 1px solid #eee;
    padding: 10px;
    text-align: left;
}

.benefits-table th {
    background: #e4edf0;
}

/* Rimuove freccia standard Safari */
.guida-item summary::-webkit-details-marker {
    display: none;
}
/* FINE ACCORDION */

.cta {
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
}

.cta h2 {
    font-size: 2.4rem; margin-bottom: 1rem; color: var(--white);
}
.cta p {
    font-size: 1.1rem; margin-bottom: 2rem; opacity: 0.95;
}
.cta-button {
    display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
}

.faq-section { padding: 4rem 0 6rem 0; background: var(--bg-light); }

.faq-section h3 {
    color: #fff;
    background: #003399;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-top: 3.5rem;
    padding: .6rem 1rem;
    font-size: 1rem;
    scroll-margin-top: 140px;
}

.alphabet-nav a:hover {
    color: #0a14ff;
}

/* Stile responsive accordion*/
@media (max-width: 768px) {
    .guida-content, .guida-content p {
        font-size: .85rem;
        padding: 0 10px 20px 10px;
    }
    .benefits-table {
        font-size: .85rem;
        margin: 0 10px 20px 10px;
    }
    .guida-item summary {
        font-size: 1rem;
    }
    #faq-direttiva .section-header {
        margin-bottom: 1rem;
    }
    .btn-secondary.dark {
        width: 100%;
    }

    .logo img {
        max-height: 30px;
    }
    
    /* === NAVBAR MOBILE === */
    .nav-links { 
        display: none; 
    }
    
    .hamburger { 
        display: block; 
    }
    
    .nav-actions .btn-cta {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
    
    .nav-links li.mobile-only {
        display: block;
    }
    
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--navbar-height);
        left: 0;
        width: 100%;
        background-color: var(--white);
        padding: 20px 10% 20px 10%;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        border-top: 1px solid #eee;
        animation: slideDown 0.3s ease forwards;
        gap: 0;
    }

    .nav-links.active li {
        /*margin-bottom: 1.5rem;
        text-align: center;*/
        width: 100%;
    }

    .nav-links.active > li > a,
    .nav-links.active > li[aria-current="page"] > span {
        font-size: 1.1rem;
        display: block;
        padding: 10px;
    }
    
    /* Dropdown mobile */
    .nav-links.active .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #dee7f1;
        margin-top: 0.5rem;
        border-radius: var(--border-radius);
    }
    
    .nav-links.active .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .nav-links.active .dropdown-menu a,
    .nav-links.active .dropdown-menu span {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }
    
    .nav-links.active li[aria-current="page"] a,
    .nav-links.active li[aria-current="page"] span {
        /*color: var(--primary-color) !important;*/
        font-weight: 600 !important;
        cursor: default !important;
        pointer-events: none !important;
    }

    @keyframes slideDown {
        from { 
            opacity: 0; 
            transform: translateY(-10px); 
        }
        to { 
            opacity: 1; 
            transform: translateY(0); 
        }
    }
    
    /* === HERO MOBILE === */
    .hero {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 1rem);
        padding-bottom: 2rem;
    }
    
    .hero-content {
        padding: 0 10px;
    }
    
    .badge-eu {
        font-size: 0.8rem;
        padding: 4px 12px;
    }
    
    .btn-cta {
        font-size: 0.85rem;
        padding: 8px 16px;
        margin-right: auto;
        margin-top: 15px;
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .section-header p {
        font-size: .9rem;
    }
    
    .cta-group { 
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }
    
    .cta-group .btn-primary,
    .cta-group .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .stat-item {
        min-width: auto;
    }
    
    /* ALTRI RESPONSIVE */
    .finance-content { 
        flex-direction: column; 
    }
    
    .finance-image { 
        display: none; 
    }
    
    .footer-content { 
        grid-template-columns: 1fr; 
    }
    
    .support-actions {
        flex-direction: column;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    .spazio {
        margin: 2rem auto 0 auto;
    }
    .cta h2 {
        font-size: 2.1rem; line-height: 1.4; margin-bottom: 1rem; color: var(--white);
    }
    .cta p {
        font-size: 1rem; line-height: 1.4; margin-bottom: 2rem; opacity: 0.95;
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .logo img {
        max-height: 32px;
    }
    
    .hero {
        min-height: auto;
        padding-top: calc(var(--navbar-height) + 1.5rem);
        padding-bottom: 2rem;
    }
    
    .services-wrapper {
        flex-direction: column;
        align-items: center;
    }
    
    .service-card {
        max-width: 600px;
    }
    .spazio {
        margin: 3rem auto 0 auto;
    }
}

@media (min-width: 768px) {
    .finance-content {
        padding-left: 50px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-height: 28px;
    }
    
    .hero {
        padding-top: calc(var(--navbar-height) + 0.5rem);
    }
    
    .section-header h2 {
        font-size: 1.4rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }

    .hero-stats { 
        flex-direction: column;
        gap: 1rem;
        padding-top: 1rem;
    }
    .support-box {
        padding: 1.5rem;
    }
    .cta {
        padding: 1.5rem;
    }
    .cta h2 {
        font-size: 1.9rem; line-height: 1.2; margin-bottom: 1rem; color: var(--white);
    }
    .cta p {
        font-size: .9rem; line-height: 1.3; margin-bottom: 1.4rem; opacity: 0.95;
    }
}

@media (min-width: 480px) {
    .cta-group .btn-primary {
        max-width: 280px;
    }
}

@media (max-width: 550px) {
  .audio-row {
    flex-direction: column;   /* verticale */
    align-items: stretch;     /* elementi larghi 100% */
  }

  .badge-eu,
  .player {
    width: 100%;
  }
}
}