html {
  /* Minimo: 12px | Fluido: calcolato tra 320px e 1600px | Massimo: 18px */
  font-size: clamp(12px, 10.5px + 0.47vw, 16px);
   -webkit-text-size-adjust: 100%; /* Blocca l'ingrandimento automatico su iOS Safari */
    text-size-adjust: 100%;         /* Standard per gli altri browser */
    box-sizing: border-box;
}
*, *::before, *::after {
  box-sizing: inherit;
}
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}

body {font-family: 'Exo 2';
	background-color: #89c3f1;
	/*background-image: url("/images/sfondo-pagina.jpg");*/
	background-repeat:no-repeat;
	-webkit-background-size:cover;
	-moz-background-size:cover;
	-o-background-size:cover;
	background-size: cover;background-position: center;
	background-attachment: fixed;
    margin:0;
    line-height: 1.6;
    font-size: 1rem;
}
/* ==== LAYOUT ==== */
#wrapper {
    max-width: 1200px;
    width:100%;
    margin:0 auto;
    padding:0px;
    box-shadow: 0px 0px 15px 0px rgba(204,204,204,1);
    background: url(/img/background-light.png);
    }
#header {
    position: relative;
    display: block;
    max-height: 125px;
    overflow: hidden;
    background: #02203a;
    color: #fff;
    text-align: center;
    }
.wp-login-btn {
    position: absolute;
    bottom: 8px;
    right: 12px;
    z-index: 10;
    
    display: inline-flex;
    align-items: center;
    gap: 6px;
    
    background-color: rgba(15, 23, 42, 0.75); /* Fondo scuro semi-trasparente */
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    
    padding: 4px 10px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px); /* Effetto vetro opaco */
    transition: all 0.2s ease-in-out;
}

/* Effetto Hover */
.wp-login-btn:hover {
    background-color: #2563eb; /* Blu acceso al passaggio del mouse */
    color: #ffffff;
    border-color: #3b82f6;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.weather-clock {padding:0 2px; font-family: "Courier New", sans-serif;
    letter-spacing: -0.7px;
    border-top:1px dotted #ddd;
    border-bottom:1px solid #ddd;
    background-color: #2b3990;
}    
#container { padding: 1px 20px 5px; margin: 0 auto; clear: both; }


.dashboard-wrapper {
  display: flex;
  flex: 1;
  background-color: #f4f6f9;
  overflow: hidden;
}
.sidebar-container {
  width: 260px; /* Larghezza fissa su Desktop */
  background-color: #ffffff;
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  transition: width 0.3s ease;
  position: relative;
}
.hamburger-btn {
  display: none; /* Nascosto su desktop */
}
.modern-sidebar {
  padding: 20px;
  height: 100%;
}
.sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-menu li {
  margin-bottom: 8px;
}

.sidebar-menu a {
  display: block;
  padding: 12px 15px;
  color: #64748b;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
  white-space: nowrap;
  border-bottom:1px dotted #bbb;
}

.sidebar-menu a:hover, 
.sidebar-menu a.active {
  background-color: #eff6ff;
  color: #2563eb;
}
.sidebar-menu a::before {
  content: "»";
  position: absolute;
  left: 5px;
  opacity: 0;
  transform: translateX(-5px); /* Parte leggermente più a sinistra */
  transition: all 0.2s ease;
  font-weight: bold;
}

/* Mostra il carattere » e fallo scivolare in posizione su :hover e .active */
.sidebar-menu a:hover::before,
.sidebar-menu a.active::before {
  opacity: 1;
  transform: translateX(0); /* Scivola fluidamente verso destra */
  color: #2563eb; /* Colore dell'icona (puoi cambiarlo) */
}
/* Micro-animazione: fa oscillare leggermente il pulsante all'inizio per dire "cliccami" */
@keyframes hintPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); background-color: #dbeafe; }
}

/* ==== BREADCRUMBS ==== */
nav[aria-label="Percorso di navigazione"] {
    margin: 5px;
    padding: 0;
}

ul.breadcrumb {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px); /* Effetto vetro sfocato */
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(43, 57, 144, 0.05);
    font-size: 0.9rem;
}

ul.breadcrumb li {display: flex; align-items: center; color: #666;}

ul.breadcrumb li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 4px;
    border-radius: 6px;
    transition: all 0.25s ease-in-out;
    display: flex;
    align-items: center;
}

ul.breadcrumb li a:hover {
    background-color: #eff6ff; color: #2563eb;    
    transform: translateY(-1px); 
}

ul.breadcrumb li a .fa-home {
    font-size: 1.05rem; color: #666;
    transition: color 0.25s ease;
}
ul.breadcrumb li a:hover .fa-home {
    color: #000;
}

ul.breadcrumb li:not(:last-child)::after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #94a3b8; /* Crea una freccetta geometrica minimalista */
    border-top: 2px solid #94a3b8;
    transform: rotate(45deg); /* Ruota il quadrato per farlo diventare una punta */
    margin: 0 10px;
    opacity: 0.7;
}

ul.breadcrumb li.breadcrumb-active {
    font-weight: 600; color: #2563eb;
    padding: 4px 8px; letter-spacing: 0.3px;
}

/* ==== FOOTER ==== */
.site-footer {
    background: repeating-linear-gradient(0deg, #05056c,#05056c 25%, #2b3990 50%,#2b3990 100%);
    background-size: 100% 2px;
    box-shadow: 0px 0px 9px 2.25px rgba(0, 0, 0, 0.5), inset 0px 50px 60px 0px rgba(0, 0, 0, 0.5), inset 0px 0px 21px 0px rgba(255, 255, 255, 0.13);
    color: #ecf0f1;
    padding: 40px 0 0 0;
    font-size: 1rem;
    line-height: 1.6;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
    box-sizing: border-box;
}

.footer-brand {
    flex: 1 1 300px; /* Si espande ma mantiene una base di 300px */
}

.footer-logo {
    max-width: 150px;
    height: auto;
    margin-bottom: 15px;
    display: block;
}

.footer-tagline {
    color: #bdc3c7;
    font-size: 0.95rem;
}

.footer-title {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-nav {
    flex: 1 1 200px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 10px;
}

.footer-menu a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #3498db;
}

.footer-contact {
    flex: 1 1 250px;
}

.footer-contact p {
    color: #bdc3c7;
    margin-bottom: 10px;
}

.footer-email {
    color: #3498db;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    transition: border-bottom 0.3s ease;
    border-bottom: 1px dashed transparent;
}

.footer-email:hover {
    border-bottom: 1px dashed #3498db;
}

.footer-bottom {
    background-color: #05056c;
    margin-top: 20px;
    padding: 5px 0;
    border-top: 1px solid #2c3e50;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.85rem;
    text-shadow: 1px 1px 1px #000;
    color: #7f8c8d;
}

.container {
    max-width: 1200px;
    width: 100%;
    position: relative;
    margin: 0 auto;
    padding: 0 20px 20px;
    background: repeating-linear-gradient( 0deg, #07175a, #07175a 2px, #0b267d 3px );
    background-size: auto;
    background-size: 2px 2px;
    border: 3px solid #273cff;
    border-radius: 6px;
    box-shadow: 0px 0px 9px 2.25px rgba(0, 0, 0, 0.5), inset 0px 50px 60px 0px rgba(0, 0, 0, 0.5), inset 0px 0px 21px 0px rgba(255, 255, 255, 0.13);
    overflow: hidden;
}

.box-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 30px;
}

/* ==== NOWCASTING ==== */

.synoptic-weather-panel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 20px;
    background: #030326; /* Blu notte radar profondo */
    background: repeating-linear-gradient( 0deg, #07175a, #07175a 2px, #0b267d 3px );
    border-radius: 6px;
    box-shadow: 0px 0px 9px 2.25px rgba(0, 0, 0, 0.5), inset 0px 50px 60px 0px rgba(0, 0, 0, 0.5), inset 0px 0px 21px 0px rgba(255, 255, 255, 0.13);
    overflow: hidden; /* Taglia l'animazione del radar fuori dai bordi */
}

/* --- SISTEMA RADAR ATTIVO (SFONDO) --- */
.radar-background-system {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    pointer-events: none; /* Evita interferenze con i clic sui link */
    z-index: 1;
}

/* Gli anelli concentrici di distanza del radar */
.radar-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(34, 197, 94, 0.12); /* Verde radar finissimo */
    border-radius: 50%;
}
.ring-1 { width: 250px; height: 250px; }
.ring-2 { width: 550px; height: 550px; }
.ring-3 { width: 850px; height: 850px; }

/* Il fascio di scansione (Sweep) che ruota */
.radar-sweep-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    /* Crea un gradiente conico per simulare la scia luminosa che sfuma */
    background: conic-gradient(
        from 0deg, 
        rgba(34, 197, 94, 0.25) 0deg, 
        rgba(34, 197, 94, 0.03) 60deg, 
        transparent 120deg, 
        transparent 360deg
    );
    /* Avvia la rotazione infinita tramite accelerazione hardware gpu */
    animation: radar-sweep-spin 4s linear infinite;
    transform-origin: center center;
}

/* Animazione matematica della rotazione a 360° */
@keyframes radar-sweep-spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- INTERFACCIA GRAFICA (SOPRA IL RADAR) --- */
.panel-grid {
    position: relative;
    z-index: 2; /* Elementi forzati sopra l'animazione di sfondo */
    display: flex;
    gap: 30px;
    width: 100%;
}

.panel-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Intestazioni esterne e centrate */
.panel-title {
    color: #ffd21f;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin: 0 0 18px 0;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    background-color: rgba(34, 197, 94, 0.06); /* Richiamo verde radar soft */
    padding: 6px 20px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(4px);
    font-family: "Jersey 25", sans-serif;
}

/* Box protettivo per le immagini */
.img-wrapper {
    width: 100%;
    height: 450px;
    background: rgba(3, 3, 20, 0.85); /* Sfondo scuro per far risaltare i dati meteo */
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.6);
    transition: all 0.3s ease;
}

.img-wrapper a {
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    padding: 10px;
    box-sizing: border-box;
}

/* Gestione dei rapporti d'aspetto nativi (800x800 vs 1144x1268) */
.img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Feedback visivo all'hover */
.panel-column:hover .img-wrapper {
    border-color: #22c55e; /* Il contorno si illumina di verde radar */
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.2);
}
.panel-column:hover img {
    transform: scale(1.02);
}

/* ==================================================
   OTTIMIZZAZIONE RESPONSIVE PER SMARTPHONE
   ================================================= */
@media (max-width: 768px) {
    .synoptic-weather-panel {
        padding: 20px;
        margin: 15px auto;
    }

    .panel-grid {
        flex-direction: column;
        gap: 25px;
    }

    .img-wrapper {
        height: 350px;
    }
    
    .panel-title {
        font-size: 1rem;
        margin-bottom: 12px;
    }
    
    /* Riduce il raggio del radar su schermi piccoli per non impattare sulla memoria mobile */
    .radar-background-system {
        width: 600px;
        height: 600px;
    }
    .ring-3 { display: none; } /* Rimuove l'anello più esterno superfluo su mobile */
}



/* ==== MENU CON CARDS ==== */
/* Il contenitore principale a griglia */
.services-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

/* La singola Card (tag <a> per intero) */
.service-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 3px solid #e2e8f0;
    border-radius: 4px;
    padding: 24px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.services-container .service-card:nth-of-type(1):hover {
    border: 3px solid #e6ff70;
}

.services-container .service-card:nth-of-type(2):hover {
    border: 3px solid #a855f7;
}

.services-container .service-card:nth-of-type(3):hover {
    border: 3px solid #FFCF70;
}

.services-container .service-card:nth-of-type(4):hover {
    border: 3px solid #70A0FF;
}

.services-container .service-card:nth-of-type(5):hover {
    border: 3px solid #f97316;
}

/* Contenitore dell'icona */
.card-icon {
    width: 50px;
    height: 50px;
    background-color: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #2b3990;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

/* Cambio colore icona al passaggio del mouse */
.service-card:nth-of-type(1):hover .card-icon {
    background-color: #e6ff70; 
    color: #05056c;
}
.service-card:nth-of-type(2):hover .card-icon {
    background-color: #a855f7; 
    color: #05056c;
}
.service-card:nth-of-type(3):hover .card-icon {
    background-color: #FFCF70; 
    color: #05056c;
}
.service-card:nth-of-type(4):hover .card-icon {
    background-color: #70A0FF; 
    color: #05056c;
}

.service-card h3 {
    margin: 0 0 8px 0;
    color: #05056c;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Descrizione testuale */
.service-card p {
    margin: 0 0 20px 0;
    font-size: 0.9rem;
    line-height: 1.5;
    /*flex-grow: 1; Spinge il link di azione sempre in fondo alla card */
}

.service-card a {
    display:block;
    text-decoration: none;
    border-bottom: 1px dotted #bbb;
}

.service-card a::before {
    content: "»";
    position: absolute;
    left: 5px;
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s ease;
    font-weight: bold;
}

.service-card a:hover::before {
    opacity: 1;
    transform: translateX(0);
    color: #666;
}

/* ==== VARI ELEMENTI ==== */
.main-content {
    flex-grow: 1;
    padding: 5px 30px 30px;
    overflow-y: auto;
    color: #1e293b;
}

section {
    padding: 0 15px 15px;
    /*margin-bottom: 1rem; */
    height: auto;

    }

h1 {
    font-family:"jersey 25";
    margin: 5px;
    position: relative;
    padding-bottom: 8px;
    background: #00B4D8;
    background: -webkit-linear-gradient(to right, #00B4D8 0%, #0077B6 10%, #2F5EA1 30%);
    background: -moz-linear-gradient(to right, #00B4D8 0%, #0077B6 10%, #2F5EA1 30%);
    background: linear-gradient(to right, #00B4D8 0%, #0077B6 10%, #2F5EA1 30%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    font-weight: 700;
    font-style: italic;
}    
h1::after {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  margin-bottom: 8px;
  width: 25%;
  min-width: 2px;
  max-width: 85px;
  background: #00B4D8;
}

#preloader {  position: fixed;  top: 0;  left: 0;  width: 100%;
  height: 100%;  background-color: rgba(0, 0, 0, 0.9); color:#ffd21f;  z-index: 9999;
  display: flex;  justify-content: center;  align-items: center;}
.loader {  border: 8px solid #8e8e8e;  border-top: 8px solid #ffd21f;
  border-radius: 50%;  width: 60px;  height: 60px;  animation: spin 2s linear infinite;}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.homepage-meteo_attuale {
    padding: 2px 0 ;
    display:grid;
    gap:20px;
    grid-template-columns: 2fr 1fr;
    }
    
.box-ribbon {
  width: 100%;
  position: relative;
}

.ribbon {
  position: absolute;
  top: 2%;
  left: -8px;
  padding: 1.5px 12px;
  border-radius: 0 4px 4px 0;
  background: linear-gradient(#F79E05 0%, #FFD21F 100%);
  color: #2989D8;
  box-shadow: 0 5px 10px rgba(0,0,0,0.15);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  z-index:10;
}

.ribbon::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  border-top: 8px solid #FFD21F;
  filter: brightness(70%);
  border-left: 8px solid transparent;
}
    
    
.full-size  {width:100%;}
.grid-1x1   {
    display:grid;
    gap:20px;
    grid-template-columns: 1fr 1fr;
    }
/* --- STILI TESTO --- */
.txt-bianco  {color:white;}
.txt-blu  {color:#001627;}
.txt-giallo  {color:#ffd21f;}
.txt-silver {color:#ddd}
.txt-333  {color:#333;}
.txt-666  {color:#666;}
.txt-dx  {text-align:right;}
.txt-sx  {text-align:left;}
.txt-c  {text-align:center;}
.txt-shadow  {text-shadow:1px 1px 1px #000;}


sections h1 {
    width:100%;
    background: repeating-linear-gradient(0deg, #05056c,#05056c 25%,#2b3990 50%,#2b3990 100%);
    background-size: 100% 2px;
    font-family: 'Yanone Kaffeesatz';
	font-weight: bold;
	color: #ddd;
    text-shadow:1px 1px 1px #000;
    text-align: left;
    box-sizing: border-box;
    box-shadow: inset 10px 0 0 0 #ffd21f;
    padding-left: 15px;
    margin:10px 0;
    }
.nota {
    border-left:4px solid #999999;
    margin:10px 0 16px;
    padding:6px 10px;
    background:#f5f5f5;
}
/* Contenitore principale */
details.box-nota {
    background-color: rgba(255,255,255,0.2);
    padding: 6px 10px;
    border-radius: 6px;
    border-left: 4px solid #999999;
    margin: 10px 0 16px;
}
/* Il "Pulsante" su cui cliccare */
details.box-nota summary {
    font-weight: bold;
    font-size: 1rem;
    color: #ffd21f;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-left: 25px;
}
/* Rimuove la freccia di default su Safari (iOS) */
details.box-nota summary::-webkit-details-marker {
    display: none;
}
/* Crea una freccia personalizzata usando i CSS */
details.box-nota summary::before {
    content: "▶";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
    font-size: 0.9rem;
}
/* Ruota la freccia verso il basso quando il paragrafo si espande */
details[open].box-nota summary::before {
    transform: translateY(-50%) rotate(90deg);
}
/* Spazio e stile del testo nascosto quando appare */
details.box-nota p {
    margin-top: 12px;
    margin-bottom: 0;
    line-height: 1.5;
    font-family: 'Exo 2', sans-serif; /* Uno dei tuoi font caricati */
    font-size: 0.95rem;
}

a:visited {
  color: inherit;
}    
/* --- STILI SFONDO --- */
.bg-bianco {background:white;}
.bg-blu {background:#001627;}
.bg-blu1 {background:#0b1c2c;}
.bg-giallo {background:#ffd21f;}
.bg-rosso {background:red;}
.bg-celeste {background:#0088CE;}
.bg-turchese {background:#EFF9FF;}
.bg-grigio {background:#132f4c;}
.bg-stripes {background-color: #2b3990; background-size: 2px 2px;
    background-image:  repeating-linear-gradient(0deg, #05056c, #05056c 1px, #2b3990 1px, #2b3990);}
.bg-diagonal { background: url(/img/background-light.png);
    }
.bg-light { background-color: rgba(40,105,195,0.10); }

/* --- STILI ORIENTAMENTO --- */
.center {margin:0 auto;}
.destra {float:right;}
.sinistra {float:left;}
.clearfix {clear: both;}

/* --- prova idx2 --- */
/* ==========================================================================
   INTEGRAZIONE NUOVO LAYOUT: INTERFACCIA RADAR LIVE
   ========================================================================== */
.radar-interactive-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 10px 0;
}

.radar-tabs-switcher {
    display: flex;
    gap: 8px;
    background-color: #f1f5f9;
    padding: 5px;
    border-radius: 30px;
    border: 1px solid #cbd5e1;
}

.radar-tab-btn {
    border: none;
    background: transparent;
    padding: 6px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #64748b;
    cursor: pointer;
    border-radius: 20px;
    font-family: 'Exo 2', sans-serif;
    transition: all 0.3s ease;
}

.radar-tab-btn.active, 
.radar-tab-btn:hover {
    background-color: #05056c;
    color: #ffd21f;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.radar-frame-display {
    width: 100%;
    max-width: 600px; /* Dimensione ideale quadrata per render 10x10 */
    background: #000000;
    border-radius: 6px;
    overflow: hidden;
    border: 3px solid #2b3990;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
}

.radar-frame-display img {
    width: 100%;
    height: auto;
    display: block;
}

.radar-caption {
    font-size: 0.85rem;
    color: #666666;
    text-align: center;
}

/* ==========================================================================
   INTEGRAZIONE NUOVO LAYOUT: STRUTTURA EDITORIALE A 2 COLONNE
   ========================================================================== */
.two-columns-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr; /* Colonna Feed leggermente più larga */
    gap: 25px;
    width: 100%;
}

.column-left-feed, 
.column-right-focus {
    display: flex;
    flex-direction: column;
}

/* Personalizzazione e pulizia dell'elenco dei Bollettini RSS */
.box-bollettini {
    background: #ffffff;
    border-radius: 6px;
    padding: 15px;
    height: 100%;
    border: 1px solid #e2e8f0;
}

ul.elenco-bollettini {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.elenco-bollettini li {
    border-bottom: 1px dotted #cbd5e1;
    padding: 10px 0;
}

ul.elenco-bollettini li:last-child {
    border-bottom: none;
}

ul.elenco-bollettini a.link-bollettino {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

ul.elenco-bollettini a.link-bollettino:hover {
    color: #2b3990;
    text-decoration: underline;
}

ul.elenco-bollettini .data-bollettino {
    color: #64748b;
    margin-left: 5px;
}

.error-rss {
    color: #666;
    font-size: 0.95rem;
}

/* ==========================================================================
   STILIZZAZIONE CARD: FOCUS TERRITORIO LUCANO
   ========================================================================== */
.focus-lucania-card {
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0px -5px 0px 0px #2b3990; /* Richiama lo stile a bande dei tuoi titoli */
}

.focus-card-header {
    background-size: 2px 2px;
    background-image: repeating-linear-gradient(0deg, #05056c, #05056c 1px, #2b3990 1px, #2b3990);
    padding: 12px 15px;
    box-shadow: inset 5px 0 0 0 #ffd21f; /* Identico all'estetica dei tuoi H1 */
}

.focus-card-header h3 {
    margin: 0;
    color: #ffffff;
    font-family: 'Exo 2', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.focus-card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-grow: 1;
}

.focus-card-body p {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    line-height: 1.5;
}

.focus-card-btn {
    margin-top: auto; /* Spinge il pulsante sempre sul fondo della card */
    align-self: flex-start;
    color: #05056c;
    background-color: #ffd21f;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.2s ease;
    border: 1px solid #e2a400;
}

.focus-card-btn:hover {
    background-color: #05056c;
    color: #ffd21f;
    border-color: #05056c;
}

/* ==========================================================================
   OTTIMIZZAZIONE RESPONSIVE MOBILE
   ========================================================================== */
@media (max-width: 768px) {
    .two-columns-row {
        grid-template-columns: 1fr; /* Sposta le due colonne in verticale sui telefoni */
        gap: 20px;
    }
    
    .radar-frame-display {
        border-width: 2px;
    }
    
    .radar-tab-btn {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}





/* --- OTTIMIZZAZIONE RESPONSIVE (TABLET) --- */
@media (min-width: 768px) and (max-width: 1024px) {
  body {
    line-height: 1.5;
  }
}

/* --- OTTIMIZZAZIONE RESPONSIVE (SMARTPHONE) --- */
@media (max-width: 767px) {
    body {
        font-size: 15px; /* Riduce leggermente il testo base (di solito è 16px) */
        line-height: 1.5; /* Interlinea compatta ma altamente leggibile */
        letter-spacing: -0.01em; /* Avvicina leggermente le lettere per ottimizzare lo spazio */
    }

    h1 {
        font-size: 2.2rem !important; /* Forza una dimensione proporzionata allo schermo del telefono */
        line-height: 1.15; /* Evita che i titoli su più righe abbiano troppo spazio verticale */
        margin-bottom: 12px;
        letter-spacing: -0.02em; /* Compone meglio i titoli grandi */
    }

    h2 {
        font-size: 1.6rem;
        line-height: 1.2;
        margin-top: 30px;
        margin-bottom: 12px;
    }

    h3 {
        font-size: 1.3rem;
        line-height: 1.25;
        margin-top: 24px;
        margin-bottom: 10px;
    }

    h4, h5, h6 {
        font-size: 1.1rem;
        line-height: 1.3;
        margin-bottom: 8px;
    }

    p {
        margin-top: 0;
        margin-bottom: 14px; 
    }

    small, .source-text, .caption {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    ul, ol {
        padding-left: 20px;
    }
    
    #container {
        padding:5px;
    }
    ul.breadcrumb {
        width: 100%;
        border-radius: 12px;
        padding: 12px;
    }
    ul.breadcrumb li:not(:last-child)::after {
        margin: 0 8px; /* Riduce lo spazio sui lati sui display piccoli */
    }
    section {
        padding:1px;
    }
      /* La sidebar occupa solo lo spazio dell'hamburger quando è chiusa */
    .sidebar-container {
        width: 60px; 
        overflow: hidden;
    }
    /* Quando è espansa, cresce restando nel suo flusso */
    .sidebar-container.expanded {
        width: 100%;
    }
    /* Mostra l'hamburger allineato dentro il contenitore */
    .hamburger-btn {
        display: block;
        background: #000;
        border: none;
        font-size: 1.4rem;
        padding: 15px 0; /* Centratura verticale */
        cursor: pointer;
        color: #ffd21f;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid #e2e8f0;
        /* Animazione di benvenuto per attirare lo sguardo */
        animation: hintPulse 1s ease-in-out 20; 
    }
    /* Nasconde il menu visivamente se lo spazio è inferiore a quello dei link */
    .modern-sidebar {
        padding: 15px 10px;
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    /* Mostra le voci di menu solo quando il contenitore si è allargato */
    .sidebar-container.expanded .modern-sidebar {
        opacity: 1;
    }
    .sidebar-menu a {
    white-space: normal;
    }
    
    .site-footer {
        padding-top: 40px;
        line-height: 1.45; /* Interlinea più compatta su mobile come consigliato */
    }
    .footer-container {
        flex-direction: column; /* Incolonna gli elementi verticalmente */
        gap: 30px;
    }
    .footer-brand, .footer-nav, .footer-contact {
        flex: 1 1 100%;
        text-align: center; /* Centra i testi per un look migliore su smartphone */
    }
    .footer-logo {
        margin: 0 auto 15px auto; /* Centra il logo */
    }
}

@media (max-width: 480px) {
    .services-container {
        grid-template-columns: 2fr; /* Una sola card per riga su smartphone */
        gap: 16px;
    }
    .service-card {
        padding: 20px;
    }
}