@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Inter:wght@300;400;500;600&display=swap');

/* ===== VARIABILI COLORI SAGITTARIO ROMA ===== */
:root {
  --navy:       #1B3A6B;
  --navy-mid:   #254E8F;
  --navy-light: #3568B8;
  --green:      #2E7D32;
  --green-dark: #1B5E20;
  --green-light:#4CAF50;
  --white:      #FFFFFF;
  --off-white:  #F5F7F2;
  --light-green:#E8F5E9;
  --text:       #0F1E3A;
  --text-mid:   #3A5070;
  --text-muted: #7A8EA0;
  --border:     rgba(27,58,107,0.11);
  --gold:       #C8A94A;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 12px rgba(27,58,107,0.07);
  --shadow-md: 0 6px 28px rgba(27,58,107,0.11);
  --shadow-lg: 0 12px 48px rgba(27,58,107,0.16);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 600; }
p { line-height: 1.75; color: var(--text-mid); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 14px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--green);
  border-radius: 2px;
  opacity: .6;
}

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 28px; }
.section { padding: 80px 0; }
.section-alt { background: var(--off-white); }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--green);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo-icon {
  width: 38px;
  height: 38px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.navbar-logo-icon svg { width: 20px; height: 20px; fill: white; }
.navbar-title {
  display: flex;
  flex-direction: column;
}
.navbar-title strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  letter-spacing: .04em;
  line-height: 1.1;
}
.navbar-title span {
  font-size: 0.65rem;
  color: rgba(255,255,255,.5);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-nav a {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(255,255,255,.75);
  border-radius: var(--radius-sm);
  transition: all .2s;
  position: relative;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: white;
  background: rgba(255,255,255,.08);
}
.navbar-nav .dropdown { position: relative; align-self: stretch; display: flex; align-items: center; }
.navbar-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  z-index: 200;
}
.navbar-nav .dropdown-menu.open { display: block; }
.navbar-nav .dropdown-menu a {
  display: block;
  padding: 10px 16px;
  color: var(--text);
  font-size: 0.82rem;
  border-radius: 0;
}
.navbar-nav .dropdown-menu a:hover {
  background: var(--light-green);
  color: var(--navy);
}
.navbar-cta {
  background: var(--green);
  color: white !important;
  padding: 8px 20px !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 500 !important;
  font-size: 0.8rem !important;
  letter-spacing: .06em;
  transition: background .2s !important;
}
.navbar-cta:hover { background: var(--green-dark) !important; }

/* Hamburger mobile */
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.navbar-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all .3s;
}

/* ===== HERO ===== */
.hero {
  background: var(--navy);
  min-height: 580px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.hero-bg-photo {
  position: absolute;
  inset: 0;
  background-image: url(../img/banner.jpg);
  background-size: cover;
  background-position: center 30%;
  opacity: 0.22;
  z-index: 0;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 100% at 0% 50%, rgba(27,58,107,0.85) 0%, rgba(27,58,107,0.4) 60%, transparent 100%),
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(46,125,50,0.15) 0%, transparent 70%);
  z-index: 1;
}
/* grain texture overlay */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
  z-index: 2;
  pointer-events: none;
}
.hero-target-bg {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  opacity: .07;
  z-index: 0;
}
.hero .container { position: relative; z-index: 3; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding-top: 70px; padding-bottom: 70px; }
.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(46,125,50,.2);
  border: 1px solid rgba(46,125,50,.4);
  color: #A5D6A7;
  font-size: 0.7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.hero-badge::before { content: ''; width: 6px; height: 6px; background: var(--green-light); border-radius: 50%; }
.hero h1 {
  color: white;
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}
.hero h1 em { color: var(--green-light); font-style: italic; }
.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: white;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.06); }
.btn-navy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: white;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--navy-light);
  cursor: pointer;
  transition: background .2s;
}
.btn-navy:hover { background: var(--navy-mid); }

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-target-svg { width: 100%; max-width: 340px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: linear-gradient(90deg, var(--green-dark) 0%, var(--green) 60%, #388E3C 100%);
  padding: 0;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 100% at 80% 50%, rgba(255,255,255,0.06) 0%, transparent 70%);
}
.stats-bar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  divide-x: 1px solid rgba(255,255,255,.2);
}
.stat-item {
  padding: 22px 20px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.2);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  line-height: 1;
}
.stat-star {
  display: inline-block;
  transition: transform 0.1s linear;
}
.stat-star.spinning {
  animation: starSpin 2.5s cubic-bezier(0.33, 0, 0.66, 1) forwards;
}
@keyframes starSpin {
  0%   { transform: rotate(0deg) scale(1); }
  60%  { transform: rotate(340deg) scale(1.2); }
  80%  { transform: rotate(355deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}
.stat-lbl {
  font-size: 0.68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-top: 4px;
}

/* ===== CARDS ===== */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .25s cubic-bezier(.22,.61,.36,1), box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card-header {
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(255,255,255,0.08) 0%, transparent 70%);
}
.card-header-navy { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%); }
.card-header-red  { background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%); }
.card-header-mid  { background: linear-gradient(135deg, var(--navy-mid) 0%, var(--navy-light) 100%); }
.card-header svg { width: 52px; height: 52px; opacity: .75; position: relative; z-index: 1; }
.card-header-icon { font-size: 2.4rem; color: white; opacity: .85; position: relative; z-index: 1; }
.card-body { padding: 24px; }
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
}
.card-desc { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--green);
  transition: gap .2s;
}
.card-link:hover { gap: 10px; }

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}
.section-header-link {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .2s;
}
.section-header-link:hover { color: var(--green-dark); }

/* ===== MEDAGLIE ANNO CORRENTE ===== */
.recenti-recap {
  display: flex;
  align-items: center;
  gap: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 28px;
  flex-wrap: wrap;
  row-gap: 12px;
}
.recenti-anno-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  flex-shrink: 0;
  padding-right: 24px;
  margin-right: 24px;
  border-right: 1px solid var(--border);
}
.recenti-gruppo {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.recenti-riga-label {
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-right: 8px;
}
.recenti-sep {
  width: 1px;
  height: 28px;
  background: var(--border);
  margin: 0 20px;
  flex-shrink: 0;
}
.recenti-count {
  display: flex;
  align-items: center;
  gap: 5px;
}
.recenti-emoji { font-size: 1.1rem; }
.recenti-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  min-width: 20px;
}
.recenti-count-tot {
  padding-left: 14px;
  border-left: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.recenti-tot-label {
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

/* ===== QUOTE ===== */
.quote-section {
  background: linear-gradient(135deg, #0F2348 0%, var(--navy) 50%, #1a3d5c 100%);
  padding: 72px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '\201C';
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 18rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
}
.quote-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: rgba(255,255,255,.9);
  max-width: 680px;
  margin: 0 auto 16px;
  line-height: 1.5;
}
.quote-divider {
  width: 40px;
  height: 2px;
  background: var(--green);
  margin: 16px auto;
}
.quote-author {
  font-size: 0.75rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

/* ===== CONTACT SECTION ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-block h3 { margin-bottom: 20px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.contact-row:last-child { border-bottom: none; }
.contact-icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}
.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
  min-width: 70px;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-val { color: var(--text); }
.iban-box {
  background: var(--light-green);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--navy);
  padding: 14px 18px;
  margin-top: 16px;
}
.iban-box .iban-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); margin-bottom: 6px; }
.iban-box .iban-code { font-family: monospace; font-size: 0.92rem; color: var(--navy); font-weight: 500; word-break: break-all; }

/* ===== AFFILIAZIONI ===== */
.affiliazioni-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.affiliazione-pill {
  background: var(--light-green);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid rgba(13,31,78,.12);
}

.affiliazioni-loghi {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 20px;
}
.affiliazione-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 8px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-mid);
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: box-shadow .18s, border-color .18s;
  text-align: center;
}
.affiliazione-logo-card:hover {
  box-shadow: 0 2px 12px rgba(0,0,0,.10);
  border-color: var(--navy);
}
.affiliazione-logo {
  height: 36px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
}
.affiliazione-logo-testo {
  height: 36px;
  display: flex;
  align-items: center;
  font-size: .9rem;
  color: var(--navy);
  letter-spacing: .01em;
  text-transform: none;
}

/* ===== SOCIAL STRIP ===== */
.social-strip {
  background: var(--navy-mid);
  padding: 18px 0;
}
.social-strip .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.social-strip-text { color: rgba(255,255,255,.6); font-size: 0.85rem; }
.social-btns { display: flex; gap: 10px; }
.social-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: white;
  font-size: 0.78rem;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
}
.social-btn:hover { background: rgba(255,255,255,.15); }
.social-btn svg { width: 16px; height: 16px; fill: white; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); border-top: 3px solid var(--green); padding: 40px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}
.footer-brand strong {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: white;
  display: block;
  margin-bottom: 8px;
}
.footer-brand p {
  color: rgba(255,255,255,.45);
  font-size: 0.82rem;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 14px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  color: rgba(255,255,255,.6);
  font-size: 0.85rem;
  transition: color .2s;
}
.footer-col ul li a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p { color: rgba(255,255,255,.3); font-size: 0.78rem; }
.footer-bottom a { color: rgba(255,255,255,.3); transition: color .2s; }
.footer-bottom a:hover { color: rgba(255,255,255,.7); }
.footer-loghi {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo {
  height: 28px;
  width: auto;
  max-width: 80px;
  object-fit: contain;
  opacity: .55;
  filter: brightness(0) invert(1);
  transition: opacity .2s;
}
.footer-logo-wa {
  max-width: 110px;
}
.footer-loghi a:hover .footer-logo { opacity: .9; }

/* ===== NEWS SECTION ===== */
.news-section { display: none; }
.news-section.has-news { display: block; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-card-img {
  margin: -22px -24px 16px;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.news-card-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.news-card-date {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.news-card-title {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.3;
}
.news-card-text {
  font-size: .87rem;
  color: var(--text-mid);
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-expand-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 0;
  background: none;
  border: none;
  color: var(--navy);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
  cursor: pointer;
  font-family: inherit;
  opacity: .75;
  transition: opacity .15s;
}
.news-expand-btn:hover { opacity: 1; }

/* ── NEWS MODAL ── */
.news-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 50, .55);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.news-modal-overlay.open { display: flex; }
.news-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 620px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.22);
}
.news-modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
}
.news-modal-date {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.news-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}
.news-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-mid);
  transition: background .15s;
}
.news-modal-close:hover { background: var(--border); }
.news-modal-body {
  padding: 24px 28px;
  overflow-y: auto;
  font-size: .92rem;
  color: var(--text-mid);
  line-height: 1.75;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* ===== CORSI DINAMICI ===== */
.corsi-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.corsi-list-main { margin-bottom: 48px; }
.corso-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.corso-meta-item {}
.corso-meta-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.corso-meta-val {
  font-size: .9rem;
  font-weight: 500;
  color: var(--navy);
  margin-top: 2px;
}
.corso-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }

.atleti-section { margin-top: 48px; margin-bottom: 12px; }

/* ===== ATLETI GRID ===== */
.atleti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.atleta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.atleta-nome {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.atleta-sub { font-size: .82rem; color: var(--text-mid); margin-bottom: 10px; }
.atleta-risultati { font-size: .82rem; color: var(--text-mid); line-height: 1.55; }

/* ===== PAGE INNER (pagine interne) ===== */
.page-hero {
  background: var(--navy);
  padding: 52px 0 44px;
  border-bottom: 3px solid var(--green);
}
.page-hero h1 { color: white; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.65); margin-top: 8px; font-size: .95rem; }
.page-hero .breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 10px;
}
.page-hero .breadcrumb a { color: rgba(255,255,255,.45); transition: color .2s; }
.page-hero .breadcrumb a:hover { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb span { color: rgba(255,255,255,.7); }

/* ===== MEDAGLIERE / TABLE ===== */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
thead th {
  background: var(--navy);
  color: white;
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 12px 16px;
  text-align: left;
}
tbody tr { border-bottom: 1px solid var(--border); transition: background .15s; }
tbody tr:hover { background: var(--light-green); }
tbody td { padding: 12px 16px; color: var(--text-mid); }
tbody td:first-child { color: var(--text); font-weight: 500; }
.medal-gold { color: #B8860B; font-weight: 700; }
.medal-silver { color: #708090; font-weight: 700; }
.medal-bronze { color: #8B4513; font-weight: 700; }

/* ===== MEDAGLIERE SOMMARIO ===== */
.medagliere-sommario {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
.medagliere-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 680px;
  margin-bottom: 36px;
  padding: 12px 16px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 8px;
  font-size: .84rem;
  line-height: 1.6;
  color: #6b5e3a;
}
.medagliere-disclaimer i {
  color: #C9A227;
  margin-top: 3px;
  flex-shrink: 0;
}
.medagliere-disclaimer a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: underline;
}
.medagliere-sommario-sq {
  grid-template-columns: repeat(4, 1fr);
}
.medagliere-sommario-sq {
  margin-bottom: 48px;
  opacity: .85;
}
.medagliere-sommario-sq .sommario-card {
  padding: 16px 24px;
}
.medagliere-sommario-sq .sommario-num {
  font-size: 1.8rem;
}
.sommario-card {
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
}
.sommario-navy  { background: var(--navy); }
.sommario-gold  { background: var(--off-white); border: 1px solid var(--border); }
.sommario-silver{ background: var(--off-white); border: 1px solid var(--border); }
.sommario-bronze{ background: var(--off-white); border: 1px solid var(--border); }
.sommario-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--navy);
}
.sommario-navy .sommario-num { color: white; }
.sommario-gold   .sommario-num { color: #B8860B; }
.sommario-silver .sommario-num { color: #607D8B; }
.sommario-bronze .sommario-num { color: #8B4513; }
.sommario-lbl {
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
  margin-top: 6px;
}
.sommario-navy .sommario-lbl { color: rgba(255,255,255,.5); }

/* ── FILTRI MEDAGLIERE ── */
.medagliere-filtri {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.filtro-group { display: flex; flex-direction: column; gap: 6px; }
.filtro-label {
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.filtro-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.filtro-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border);
  background: white;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  color: var(--text-mid);
  transition: all .15s;
  font-family: inherit;
}
.filtro-pill:hover  { border-color: var(--navy); color: var(--navy); }
.filtro-pill.active { background: var(--navy); color: white; border-color: var(--navy); }
.filtro-pill.gold.active   { background: #B8860B; border-color: #B8860B; }
.filtro-pill.silver.active { background: #607D8B; border-color: #607D8B; }
.filtro-pill.bronze.active { background: #8B4513; border-color: #8B4513; }
.filtro-select {
  padding: 8px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  font-family: inherit;
  color: var(--text);
  background: white;
  cursor: pointer;
  min-width: 160px;
}
.filtro-select:focus { outline: none; border-color: var(--navy); }
.filtro-reset {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: .82rem;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  align-self: flex-end;
}
.filtro-reset:hover { border-color: #C62828; color: #C62828; }
@media (max-width: 640px) {
  .medagliere-filtri { flex-direction: column; align-items: stretch; }
  .filtro-select { min-width: 0; width: 100%; }
}
.table-loading {
  text-align: center;
  color: var(--text-muted);
  font-style: italic;
  padding: 24px;
}

/* ===== CORSI CARDS ===== */
.corso-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 4px 1fr;
}
.corso-card-accent { background: var(--green); }
.corso-card-body { padding: 24px; }
.corso-card-title { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--navy); margin-bottom: 8px; }
.corso-tag {
  display: inline-block;
  background: var(--light-green);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 10px;
  margin-bottom: 10px;
}

/* ===== TAB LATERALE FISSO ===== */
#side-tab-wrap {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  align-items: center;
}
#side-tab-trigger {
  writing-mode: vertical-lr;
  text-orientation: mixed;
  background: var(--navy);
  color: white;
  border: none;
  padding: 18px 10px;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: .08em;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: -3px 0 16px rgba(27,58,107,.18);
  transition: background .2s;
  flex-shrink: 0;
}
#side-tab-trigger:hover { background: var(--navy-mid); }
#side-tab-arrow {
  font-size: .85rem;
  transition: transform .3s;
  display: inline-block;
}
#side-tab-wrap.open #side-tab-arrow {
  transform: rotate(180deg);
}
#side-tab-panel {
  width: 0;
  overflow: hidden;
  transition: width .35s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  overflow-y: auto;
  background: transparent;
}
#side-tab-wrap.open #side-tab-panel {
  width: 300px;
  padding: 12px 0 12px 12px;
}
#side-tab-panel .widget {
  flex-shrink: 0;
}

/* ── LINK nel pannello ── */
.side-tab-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  font-size: .85rem;
  color: var(--text);
  transition: background .15s;
  text-decoration: none;
}
.side-tab-link:last-child { border-bottom: none; }
.side-tab-link:hover { background: var(--light-green); }
.side-tab-link-accent { color: var(--navy); font-weight: 500; }
.side-tab-link-arrow { margin-left: auto; color: var(--text-muted); font-size: .75rem; }

/* ===== WIDGET BASE ===== */
.widget {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid var(--border);
}
.widget-header-icon {
  font-size: 1rem;
  line-height: 1;
  color: var(--navy);
  width: 16px;
  text-align: center;
}
.widget-header-title {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.widget-body { padding: 16px 18px; }

/* ── METEO WIDGET ── */
.meteo-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.meteo-icon { font-size: 2.8rem; line-height: 1; flex-shrink: 0; }
.meteo-temp {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.meteo-desc {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 2px;
  text-transform: capitalize;
}
.meteo-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.meteo-detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.meteo-detail-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-muted);
}
.meteo-detail-val {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--navy);
}
.meteo-previsioni {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.meteo-prev-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.meteo-prev-giorno {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
}
.meteo-prev-icon { font-size: 1.1rem; }
.meteo-prev-temp {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--navy);
}
.meteo-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 10px;
}
.meteo-loading {
  text-align: center;
  padding: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ── ORARI WIDGET ── */
.orari-list { display: flex; flex-direction: column; gap: 8px; }
.orario-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  background: var(--off-white);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--navy);
}
.orario-giorno {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--navy);
  min-width: 60px;
  flex-shrink: 0;
}
.orario-info { display: flex; flex-direction: column; gap: 2px; }
.orario-corso {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
}
.orario-time {
  font-size: 0.75rem;
  color: var(--text-mid);
}

/* ── WIDGET LINK ── */
.widget-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--green);
  border-top: 1px solid var(--border);
  transition: background .15s;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.widget-link:hover { background: var(--light-green); }

/* ── METEO ALLERTA ── */
.meteo-allerta {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  font-size: 0.75rem;
  color: #6D4C00;
  line-height: 1.5;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .homepage-layout {
    grid-template-columns: 1fr 260px;
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar .container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .navbar-nav { display: none; }
  .navbar-nav.open { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 12px 16px; border-bottom: 3px solid var(--green); z-index: 200; }
  .navbar-toggle { display: flex; }
  /* Dropdown mobile: accordion inline, non fluttuante */
  .navbar-nav .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,.08);
    border-left: 3px solid var(--green);
    margin: 4px 0 4px 12px;
    padding: 4px 0;
  }
  .navbar-nav .dropdown-menu a {
    color: rgba(255,255,255,.85);
    font-size: 0.85rem;
    padding: 8px 14px;
  }
  .navbar-nav .dropdown-menu a:hover {
    background: rgba(255,255,255,.1);
    color: white;
  }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .container { padding: 0 18px; }
}
