
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue-deep:#003399; --blue-mid:#0050cc; --blue-light:#e8edf7; --blue-xlight:#f2f5fc;
  --gold:#FFCC00; --text-dark:#121a2e; --text-mid:#3a4460; --text-light:#6b7594;
  --border:#dce3f0; --white:#ffffff; --bg:#f5f7fc;
  --serif:'Source Serif 4',Georgia,serif; --sans:'DM Sans',system-ui,sans-serif;
  --nav-h:68px; --max-w:1160px;
}
html { scroll-behavior:smooth; }
body { font-family:var(--sans); color:var(--text-dark); background:var(--white); font-size:16px; line-height:1.6; -webkit-font-smoothing:antialiased; }

/* TOPBAR */
.topbar { background:var(--blue-deep); color:rgba(255,255,255,.7); font-size:.75rem; letter-spacing:.04em; text-transform:uppercase; padding:0 2rem; display:flex; justify-content:space-between; align-items:center; height:34px; }
.topbar a { color:inherit; text-decoration:none; }
.topbar a:hover { color:var(--gold); }
.topbar-right { display:flex; gap:1.5rem; align-items:center; }
.lang-btn { background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); color:rgba(255,255,255,.8); font-size:.7rem; font-weight:600; letter-spacing:.06em; padding:.15rem .5rem; border-radius:3px; text-decoration:none; transition:background .15s; }
.lang-btn:hover, .lang-btn.active { background:var(--gold); color:var(--text-dark); border-color:var(--gold); }

/* NAVBAR */
nav { position:sticky; top:0; z-index:100; background:var(--white); border-bottom:1px solid var(--border); height:var(--nav-h); }
.nav-inner { max-width:var(--max-w); margin:0 auto; padding:0 2rem; height:100%; display:flex; align-items:center; justify-content:space-between; gap:2rem; }
.nav-logo { display:flex; align-items:center; gap:.75rem; text-decoration:none; flex-shrink:0; }
.logo-mark { width:42px; height:42px; background:var(--blue-deep); border-radius:6px; display:grid; place-items:center; position:relative; }
.logo-mark::before { content:'★★★★★★★★★★★★'; position:absolute; font-size:5px; letter-spacing:1px; color:var(--gold); line-height:1; width:38px; text-align:center; top:50%; left:50%; transform:translate(-50%,-50%); }
.logo-text { display:flex; flex-direction:column; }
.logo-name { font-family:var(--serif); font-weight:600; font-size:1.1rem; color:var(--blue-deep); line-height:1.2; }
.logo-sub { font-size:.68rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-light); }
.nav-menu { display:flex; align-items:center; list-style:none; gap:.25rem; }
.nav-menu > li { position:relative; }
.nav-menu > li > a, .nav-menu > li > button { display:flex; align-items:center; gap:.3rem; padding:.5rem .85rem; font-size:.875rem; font-weight:500; color:var(--text-mid); text-decoration:none; border:none; background:none; cursor:pointer; border-radius:6px; white-space:nowrap; transition:background .15s,color .15s; }
.nav-menu > li > a:hover, .nav-menu > li > button:hover, .nav-menu > li > button.open { background:var(--blue-light); color:var(--blue-deep); }
.nav-menu > li > a.active { color:var(--blue-deep); font-weight:600; background:var(--blue-light); }
.chevron { font-size:.65rem; opacity:.6; transition:transform .2s; }
.chevron.open { transform:rotate(180deg); }
.dropdown { display:none; position:absolute; top:calc(100% + 4px); left:0; min-width:220px; background:var(--white); border:1px solid var(--border); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,50,.1); overflow:hidden; z-index:200; }
.dropdown.open { display:block; animation:fadeDown .15s ease; }
@keyframes fadeDown { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:none} }
.dropdown a { display:block; padding:.65rem 1.1rem; font-size:.875rem; color:var(--text-mid); text-decoration:none; transition:background .12s; }
.dropdown a:hover { background:var(--blue-light); color:var(--blue-deep); }
.nav-cta { display:flex; align-items:center; gap:.75rem; flex-shrink:0; }
.btn-login { font-size:.875rem; font-weight:500; color:var(--text-mid); text-decoration:none; padding:.5rem .9rem; border-radius:6px; border:1px solid var(--border); transition:all .15s; }
.btn-login:hover { border-color:var(--blue-deep); color:var(--blue-deep); }
.btn-primary { font-size:.875rem; font-weight:600; color:var(--white); background:var(--blue-deep); text-decoration:none; padding:.55rem 1.2rem; border-radius:6px; transition:background .15s; }
.btn-primary:hover { background:var(--blue-mid); }
.hamburger { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:.5rem; }
.hamburger span { width:22px; height:2px; background:var(--text-dark); border-radius:2px; }

/* PAGE HEADER */
.page-header { background:linear-gradient(135deg,var(--blue-deep) 0%,#001a66 100%); color:var(--white); padding:3rem 2rem; position:relative; overflow:hidden; }
.page-header::before { content:''; position:absolute; inset:0; background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(255,204,0,.07)'/%3E%3C/svg%3E") repeat; }
.page-header-inner { max-width:var(--max-w); margin:0 auto; position:relative; }
.page-eyebrow { display:inline-flex; align-items:center; gap:.5rem; font-size:.72rem; font-weight:500; letter-spacing:.1em; text-transform:uppercase; color:var(--gold); margin-bottom:.75rem; }
.page-eyebrow::before { content:''; width:24px; height:2px; background:var(--gold); }
.page-header h1 { font-family:var(--serif); font-size:clamp(1.75rem,3vw,2.5rem); font-weight:300; line-height:1.2; margin-bottom:.5rem; }
.page-header h1 strong { font-weight:600; }
.page-header p.subtitle { font-size:.95rem; color:rgba(255,255,255,.7); max-width:620px; line-height:1.7; margin-top:.5rem; }

/* BREADCRUMB */
.breadcrumb-bar { background:var(--bg); border-bottom:1px solid var(--border); padding:.65rem 2rem; }
.breadcrumb { max-width:var(--max-w); margin:0 auto; display:flex; align-items:center; gap:.4rem; font-size:.8rem; color:var(--text-light); list-style:none; }
.breadcrumb a { color:var(--blue-mid); text-decoration:none; }
.breadcrumb a:hover { text-decoration:underline; }
.breadcrumb li::after { content:'/'; margin-left:.4rem; opacity:.4; }
.breadcrumb li:last-child::after { display:none; }
.breadcrumb li:last-child { color:var(--text-dark); font-weight:500; }

/* MAIN */
.main-content { max-width:var(--max-w); margin:0 auto; padding:3rem 2rem 5rem; }

/* QUICK LINKS BAR */
.quick-links { display:flex; gap:.75rem; flex-wrap:wrap; margin-bottom:2.5rem; padding:1rem 1.25rem; background:var(--bg); border:1px solid var(--border); border-radius:8px; align-items:center; }
.quick-links-label { font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.08em; color:var(--text-light); white-space:nowrap; margin-right:.25rem; }
.quick-link { display:inline-flex; align-items:center; gap:.4rem; padding:.45rem .9rem; background:var(--white); border:1px solid var(--border); border-radius:6px; font-size:.82rem; font-weight:500; color:var(--text-mid); text-decoration:none; transition:all .15s; white-space:nowrap; }
.quick-link:hover { background:var(--blue-light); border-color:var(--blue-mid); color:var(--blue-deep); }
.quick-link.primary { background:var(--blue-deep); border-color:var(--blue-deep); color:var(--white); }
.quick-link.primary:hover { background:var(--blue-mid); border-color:var(--blue-mid); }

/* CONTENT LAYOUT — testo + immagine */
.content-layout { display:grid; grid-template-columns:1fr 340px; gap:3rem; margin-bottom:3rem; align-items:start; }
.content-layout.no-image { grid-template-columns:1fr; }
.content-layout.image-left { grid-template-columns:340px 1fr; }
.content-text { font-size:.95rem; color:var(--text-mid); line-height:1.8; }
.content-text h2 { font-family:var(--serif); font-size:1.4rem; font-weight:400; color:var(--text-dark); margin:1.75rem 0 .75rem; }
.content-text h3 { font-family:var(--serif); font-size:1.1rem; font-weight:600; color:var(--blue-deep); margin:1.25rem 0 .5rem; }
.content-text p { margin-bottom:.9rem; }
.content-text ol, .content-text ul { padding-left:1.25rem; margin-bottom:.9rem; }
.content-text li { margin-bottom:.35rem; }
.content-text a { color:var(--blue-mid); }
.content-text strong { color:var(--text-dark); }
.content-text em { color:var(--text-light); }
.content-image { position:sticky; top:calc(var(--nav-h) + 1rem); }
.content-image img { width:100%; height:auto; border-radius:10px; box-shadow:0 4px 20px rgba(0,30,100,.1); }

/* CARDS GRID — 3 card in fondo */
.cards-section { margin-top:3rem; padding-top:2.5rem; border-top:1px solid var(--border); }
.cards-section-title { font-size:.7rem; font-weight:600; text-transform:uppercase; letter-spacing:.1em; color:var(--text-light); margin-bottom:1.25rem; }
.cards-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:1.25rem; }
.info-card { background:var(--white); border:1px solid var(--border); border-radius:10px; padding:1.5rem; display:flex; flex-direction:column; gap:.5rem; transition:box-shadow .2s,border-color .2s; }
.info-card:hover { box-shadow:0 6px 20px rgba(0,30,100,.08); border-color:var(--blue-mid); }
.info-card-title { font-size:.9rem; font-weight:600; color:var(--text-dark); }
.info-card-desc { font-size:.83rem; color:var(--text-mid); line-height:1.6; flex:1; }
.info-card-desc img { max-width:100px; float:right; margin-left:.75rem; border-radius:4px; }
.info-card-link { display:inline-flex; align-items:center; gap:.35rem; font-size:.82rem; font-weight:600; color:var(--blue-mid); text-decoration:none; margin-top:.5rem; padding:.4rem .8rem; background:var(--blue-light); border-radius:5px; transition:background .15s; align-self:flex-start; }
.info-card-link:hover { background:var(--blue-deep); color:var(--white); }

/* TEAM GRID (Index_QUI) */
.team-section { margin-top:2rem; }
.team-group-title { font-family:var(--serif); font-size:1rem; font-weight:600; color:var(--blue-deep); padding:.6rem 1rem; background:var(--blue-xlight); border-radius:6px; margin-bottom:1rem; border-left:3px solid var(--blue-deep); }
.team-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:1rem; margin-bottom:2rem; }
.team-member { display:flex; flex-direction:column; align-items:center; text-align:center; gap:.4rem; }
.team-member img { width:80px; height:80px; border-radius:50%; object-fit:cover; border:2px solid var(--border); }
.team-member span { font-size:.75rem; font-weight:500; color:var(--text-mid); line-height:1.3; }

/* TABLE (election results, etc.) */
.data-table { width:100%; border-collapse:collapse; font-size:.875rem; margin-bottom:1.5rem; }
.data-table th { background:var(--blue-deep); color:white; padding:.6rem .9rem; text-align:left; font-size:.78rem; font-weight:600; }
.data-table td { padding:.55rem .9rem; border-bottom:1px solid var(--border); color:var(--text-mid); }
.data-table tr:hover td { background:var(--blue-xlight); }

/* FALLBACK generic content */
.generic-content { font-size:.95rem; color:var(--text-mid); line-height:1.8; }
.generic-content h2 { font-family:var(--serif); font-size:1.3rem; font-weight:400; color:var(--text-dark); margin:1.5rem 0 .75rem; }
.generic-content h3 { font-size:1rem; font-weight:600; color:var(--blue-deep); margin:1.25rem 0 .5rem; }
.generic-content p { margin-bottom:.9rem; }
.generic-content a { color:var(--blue-mid); }
.generic-content img { max-width:100%; border-radius:6px; margin:.5rem 0; }
.generic-content table { width:100%; border-collapse:collapse; margin-bottom:1rem; }
.generic-content th { background:var(--blue-deep); color:white; padding:.5rem .75rem; font-size:.8rem; }
.generic-content td { padding:.5rem .75rem; border-bottom:1px solid var(--border); font-size:.875rem; }

/* FOOTER */
footer { background:#0c1630; color:rgba(255,255,255,.6); padding:3rem 2rem 1.5rem; }
.footer-inner { max-width:var(--max-w); margin:0 auto; }
.footer-top { display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:3rem; padding-bottom:2.5rem; border-bottom:1px solid rgba(255,255,255,.08); }
.footer-brand p { font-size:.83rem; margin-top:1rem; line-height:1.6; }
.footer-col h5 { font-size:.72rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.9); margin-bottom:1rem; }
.footer-col a { display:block; font-size:.83rem; color:rgba(255,255,255,.55); text-decoration:none; padding:.25rem 0; transition:color .15s; }
.footer-col a:hover { color:var(--gold); }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:1.5rem; font-size:.78rem; flex-wrap:wrap; gap:.75rem; }
.footer-bottom a { color:inherit; text-decoration:none; }
.footer-bottom a:hover { color:var(--gold); }

/* RESPONSIVE */
@media(max-width:900px) {
  .content-layout { grid-template-columns:1fr; }
  .content-image { position:static; }
  .footer-top { grid-template-columns:1fr 1fr; gap:2rem; }
}
@media(max-width:640px) {
  .nav-menu,.nav-cta .btn-login { display:none; }
  .hamburger { display:flex; }
  .main-content { padding:2rem 1.25rem 3rem; }
  .footer-top { grid-template-columns:1fr; }
  .cards-grid { grid-template-columns:1fr; }
  .team-grid { grid-template-columns:repeat(3,1fr); }
}
.mobile-nav { display:none; }
@media(max-width:640px) {
  .mobile-nav { display:block; position:fixed; inset:0; background:var(--white); z-index:200; padding:5rem 2rem 2rem; transform:translateX(100%); transition:transform .3s ease; }
  .mobile-nav.open { transform:none; }
  .mobile-nav a { display:block; padding:.9rem 0; border-bottom:1px solid var(--border); color:var(--text-dark); text-decoration:none; font-weight:500; }
  .mobile-close { position:absolute; top:1.25rem; right:1.5rem; background:none; border:none; font-size:1.5rem; cursor:pointer; }
}

/* ── FORMS ── */
.form-wrap { margin-bottom: 2.5rem; }
.form-wrap h3 { font-family:var(--serif); font-size:1.1rem; font-weight:600; color:var(--blue-deep); margin-bottom:1.25rem; padding-bottom:.75rem; border-bottom:1px solid var(--border); }
.field-row { display:grid; grid-template-columns:1fr 1fr; gap:1rem; margin-bottom:.85rem; }
.field-row.full { grid-template-columns:1fr; }
.field { display:flex; flex-direction:column; gap:.3rem; }
.field label { font-size:.75rem; font-weight:600; text-transform:uppercase; letter-spacing:.06em; color:var(--text-light); }
.field input, .field select, .field textarea { width:100%; padding:.6rem .85rem; border:1px solid var(--border); border-radius:6px; font-family:var(--sans); font-size:.9rem; color:var(--text-dark); background:var(--white); outline:none; transition:border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color:var(--blue-mid); box-shadow:0 0 0 3px rgba(0,80,204,.1); }
.field select { appearance:none; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7594' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right .75rem center; padding-right:2.5rem; }
.form-actions { display:flex; gap:.75rem; margin-top:1.5rem; flex-wrap:wrap; }
.btn-submit { background:var(--blue-deep); color:var(--white); border:none; padding:.7rem 2rem; border-radius:6px; font-family:var(--sans); font-size:.9rem; font-weight:600; cursor:pointer; transition:background .15s; }
.btn-submit:hover { background:var(--blue-mid); }
.btn-reset { background:none; color:var(--text-mid); border:1px solid var(--border); padding:.7rem 1.5rem; border-radius:6px; font-family:var(--sans); font-size:.9rem; cursor:pointer; transition:all .15s; }
.btn-reset:hover { border-color:var(--blue-mid); color:var(--blue-mid); }

/* ── TABLES ── */
.table-wrap { overflow-x:auto; margin-bottom:2rem; border-radius:8px; border:1px solid var(--border); }
.data-table { width:100%; border-collapse:collapse; font-size:.875rem; }
.data-table th { background:var(--blue-deep); color:white; padding:.6rem 1rem; text-align:left; font-size:.78rem; font-weight:600; letter-spacing:.03em; white-space:nowrap; }
.data-table td { padding:.55rem 1rem; border-bottom:1px solid var(--border); color:var(--text-mid); vertical-align:top; }
.data-table tr:last-child td { border-bottom:none; }
.data-table tr:hover td { background:var(--blue-xlight); }
.data-table td a { color:var(--blue-mid); }

/* ── HOMEPAGE ── */
.home-hero { background:linear-gradient(135deg,var(--blue-deep),#001a66); color:var(--white); padding:4rem 2rem 3rem; margin:-3rem -2rem 3rem; }
.home-hero-inner { max-width:var(--max-w); margin:0 auto; display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:center; }
.home-hero h2 { font-family:var(--serif); font-size:clamp(1.6rem,3vw,2.4rem); font-weight:300; line-height:1.2; margin-bottom:1rem; }
.home-hero h2 strong { font-weight:600; }
.home-hero p { font-size:.95rem; color:rgba(255,255,255,.75); line-height:1.7; margin-bottom:1.5rem; }
.home-hero-actions { display:flex; gap:.75rem; flex-wrap:wrap; }
.btn-gold { background:var(--gold); color:var(--text-dark); font-weight:600; font-size:.875rem; padding:.65rem 1.4rem; border-radius:6px; text-decoration:none; transition:opacity .15s; }
.btn-gold:hover { opacity:.9; }
.btn-white-outline { border:1px solid rgba(255,255,255,.35); color:var(--white); font-size:.875rem; padding:.65rem 1.4rem; border-radius:6px; text-decoration:none; transition:border-color .15s; }
.btn-white-outline:hover { border-color:rgba(255,255,255,.7); }
.home-news-img { position:relative; }
.home-news-img img { width:100%; border-radius:10px; box-shadow:0 12px 40px rgba(0,0,0,.3); }
.home-services { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; margin-bottom:3rem; }
.home-service { display:flex; flex-direction:column; gap:.5rem; padding:1.5rem; background:var(--white); border:1px solid var(--border); border-radius:10px; text-decoration:none; color:inherit; transition:all .2s; }
.home-service:hover { box-shadow:0 6px 24px rgba(0,30,100,.08); border-color:var(--blue-mid); transform:translateY(-2px); }
.home-service-icon { font-size:1.4rem; }
.home-service-name { font-size:.9rem; font-weight:600; color:var(--text-dark); }
.home-service-desc { font-size:.82rem; color:var(--text-light); line-height:1.5; flex:1; }
.home-service-arrow { font-size:.78rem; font-weight:600; color:var(--blue-mid); margin-top:auto; }
@media(max-width:900px){ .home-hero-inner { grid-template-columns:1fr; } .home-news-img { display:none; } }
