/* ===================== Reset / base ===================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Titillium Web", "Segoe UI", Arial, sans-serif;
  color: #1b1b2f;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

:root {
  --blue:        #0a3d8f;   /* main institutional blue */
  --blue-dark:   #06285f;   /* top bar */
  --blue-bright: #1a63d6;   /* accents / buttons */
  --ink:         #1b2a4a;   /* headings */
  --red:         #e2001a;   /* CTA banner */
  --orange:      #e8730c;
  --line:        #e2e6ee;
  --muted:       #5a6376;
  --wrap:        980px;
}

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ===================== Header ===================== */
.site-header { position: sticky; top: 0; z-index: 50; }

.topbar { background: var(--blue-dark); color: #fff; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 34px; }
.topbar-brand { opacity: .95; }
.topbar-tools { display: flex; align-items: center; gap: 14px; }
.icon-btn, .lang-btn {
  background: none; border: 0; color: #fff; cursor: pointer;
  font-size: 13px; padding: 4px;
}

.mainbar { background: var(--blue); color: #fff; }
.mainbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 16px; }

.logo { display: flex; align-items: center; text-decoration: none; color: #fff; }
/* logo.png sorgente ~395x114 (rapporto ~3.46:1); scalato in altezza per l'header */
.logo-img { height: 56px; width: auto; display: block; }

.header-right { display: flex; align-items: center; gap: 18px; }
.follow { display: flex; align-items: center; gap: 12px; }
.follow-label { font-size: 13px; opacity: .9; }
.social { display: flex; gap: 8px; }
.social a {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.12);
  font-size: 12px; text-decoration: none; color: #fff;
  transition: background .15s;
}
.social a:hover { background: rgba(255,255,255,.28); }
.search-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: #fff; color: var(--blue);
  font-size: 18px; cursor: pointer;
}

.navbar { background: var(--blue); border-top: 1px solid rgba(255,255,255,.15); }
.navbar-inner { display: flex; align-items: center; }
.nav-toggle {
  display: none;
  background: none; border: 0; color: #fff; font-size: 15px;
  padding: 12px 0; cursor: pointer;
}
.nav-list { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; }
.nav-list a {
  display: block; color: #fff; text-decoration: none;
  font-size: 14px; padding: 13px 0; opacity: .95;
}
.nav-list a:hover { opacity: 1; text-decoration: underline; }

/* ===================== Article ===================== */
.article { padding: 26px 20px 60px; }

.breadcrumb { font-size: 14px; color: var(--blue-bright); margin-bottom: 18px; }
.breadcrumb a { text-decoration: none; }
.breadcrumb span { color: var(--muted); margin: 0 4px; }

h1 {
  color: var(--ink);
  font-size: 34px;
  line-height: 1.25;
  font-weight: 800;
  margin: 0 0 16px;
  max-width: 780px;
}

.meta { display: flex; align-items: center; justify-content: space-between; max-width: 780px; margin-bottom: 28px; }
.meta-date {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 14px;
}
.meta-date-icon { width: 14px; height: 14px; flex: 0 0 14px; }
.meta-more { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; }

.intro-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px;
  align-items: start;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 26px; margin-bottom: 26px;
}
.intro-text p { margin: 0 0 12px; }
.intro-list { color: #33405c; font-size: 15px; margin: 0 0 8px; }
.intro-lead { color: var(--muted); font-size: 15px; margin: 0 0 8px; }

.lede { font-size: 16px; color: #33405c; max-width: 820px; margin: 0 auto 34px; text-align: left; }

.section-title {
  color: var(--ink); font-size: 22px; font-weight: 800;
  display: flex; align-items: center; gap: 8px; margin: 34px 0 16px;
}

.more-info p { max-width: 820px; margin: 0 0 16px; }

/* ===================== Image placeholders ===================== */
.img-placeholder {
  margin: 0;
  background:
    repeating-linear-gradient(45deg, #eef1f6 0 12px, #e6eaf1 12px 24px);
  border: 1px dashed #c3ccdb;
  border-radius: 8px;
  display: grid; place-items: center;
  color: #8b97ac; font-size: 14px;
  position: relative;
}
.img-placeholder span { background: rgba(255,255,255,.7); padding: 4px 10px; border-radius: 4px; }
.ratio-4-3 { aspect-ratio: 4 / 3; }
.ratio-16-9 { aspect-ratio: 16 / 9; }
.img-placeholder figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #f4f6fa; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); padding: 6px 10px; text-align: left;
}

/* ===================== Content images ===================== */
/* main-hero.png ~609x436 */
.hero-figure { margin: 0; }
.hero-figure img {
  width: 100%; height: auto; aspect-ratio: 609 / 436;
  object-fit: cover; border-radius: 8px; display: block;
}
/* main-photo.png ~670x448 */
.photo-figure { margin: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.photo-figure img {
  width: 100%; height: auto; aspect-ratio: 670 / 448;
  object-fit: cover; display: block;
}
.photo-figure figcaption {
  background: #f4f6fa; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--muted); padding: 6px 10px;
}

/* ===================== Form fields (shared) ===================== */
.field { margin-bottom: 12px; }
.field input {
  width: 100%; padding: 12px 14px;
  border: 1px solid #d5dbe6; border-radius: 8px;
  font-size: 15px; background: #f7f9fc; color: #1b1b2f;
}
.field input:focus { outline: none; border-color: var(--blue-bright); background: #fff; }
.phone-field { display: flex; gap: 8px; }
.phone-prefix {
  display: flex; align-items: center; gap: 6px;
  padding: 0 12px; background: #f0f3f8;
  border: 1px solid #d5dbe6; border-radius: 8px;
  font-size: 14px; white-space: nowrap;
}
.italy-flag {
  width: 19px; height: 13px; flex: 0 0 19px;
  border-radius: 1px;
  background: linear-gradient(90deg, #009246 0 33.333%, #fff 33.333% 66.666%, #ce2b37 66.666% 100%);
  box-shadow: 0 0 0 1px rgba(27,27,47,.12);
}
.phone-field input { flex: 1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

.consent { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--muted); margin: 4px 0 14px; }
.consent input { margin-top: 3px; }

.btn-primary {
  background: var(--blue-bright); color: #fff;
  border: 0; border-radius: 8px; cursor: pointer;
  font-size: 15px; font-weight: 700; letter-spacing: .3px;
  padding: 13px 18px; transition: background .15s;
}
.btn-primary:hover { background: #1450b0; }
.btn-block { width: 100%; display: block; text-align: center; text-decoration: none; }

.form-note { font-size: 13px; margin: 12px 0 0; text-align: center; min-height: 18px; }
.form-note.ok { color: #128a3c; }
.form-note.err { color: var(--red); }

/* ===================== Iscrizione card (Nalvurikenz) ===================== */
.iscr-card {
  max-width: 350px; margin: 34px auto;
  scroll-margin-top: 180px;
  border-radius: 16px; overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20,24,80,.18);
}
.iscr-head { background: #23286b; color: #fff; text-align: center; padding: 20px 22px 16px; }
.iscr-title { margin: 0 0 8px; font-size: 24px; font-weight: 800; }
.iscr-rating { margin: 0; font-size: 13px; color: #dfe2f2; }
.iscr-stars { color: #f5a623; letter-spacing: 2px; margin-right: 4px; }
.iscr-divider { color: #dfe2f2; margin-right: 4px; }
.iscr-rating strong { color: #fff; font-weight: 700; }
.iscr-rating .iscr-count { color: #18c66a; }

.iscr-body { padding: 20px; }
.iscr-seats {
  text-align: center; font-weight: 800; font-size: 16px; color: #1b1b2f;
  margin: 0 0 18px; padding-top: 16px;
  border-top: 3px solid var(--orange);
}
.iscr-btn { background: #23286b; margin-top: 4px; }
.iscr-btn:hover { background: #1a1e52; }

/* ===================== Gallery ===================== */
.gallery { margin-top: 40px; }

/* ===================== CTA banner ===================== */
.cta-banner { text-align: center; margin: 44px 0; }
.cta-link {
  display: inline-block; background: var(--red); color: #fff;
  font-weight: 800; font-size: 26px; letter-spacing: 1px;
  padding: 14px 40px; border-radius: 4px; text-decoration: none;
}

/* ===================== Calcolatore Profitto ===================== */
.calc-card {
  max-width: 360px; margin: 34px auto 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: 0 12px 34px rgba(10,61,143,.12);
  padding: 24px;
}
.calc-status {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: #8b8f9a; font-size: 10px; line-height: 1.2;
  margin: 0 0 16px;
}
.calc-live {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--red); font-weight: 800;
}
.calc-live::before {
  content: ""; width: 5px; height: 5px; flex: 0 0 5px;
  border-radius: 50%; background: var(--red);
}
.calc-eyebrow { color: var(--blue-bright); font-weight: 800; font-size: 12px; letter-spacing: 1px; margin: 0 0 6px; }
.calc-title { color: var(--ink); font-size: 30px; line-height: 1.08; font-weight: 800; margin: 0 0 12px; }
.calc-amount { color: var(--ink); font-size: 46px; font-weight: 800; text-align: center; margin: 6px 0 18px; }

.calc-range-head {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 700; letter-spacing: .4px; color: var(--muted);
  margin-bottom: 8px;
}
.calc-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 6px; border-radius: 6px;
  background: #dbe6fb; outline: none; margin: 0 0 22px;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-bright); border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(10,61,143,.4); cursor: pointer;
}
.calc-slider::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--blue-bright); border: 3px solid #fff; cursor: pointer;
}

.calc-rows { list-style: none; margin: 0 0 18px; padding: 0; }
.calc-rows li {
  display: flex; justify-content: space-between; align-items: center;
  background: #f6f8fc; border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
}
.calc-rows strong { display: block; font-size: 13px; color: var(--ink); line-height: 1.2; }
.calc-rows small { color: var(--muted); font-size: 12px; }
.calc-gain { text-align: right; }
.calc-plus { display: block; font-size: 22px; font-weight: 800; color: #16a34a; }
.calc-total { display: block; margin-top: 2px; }
.calc-fine { color: var(--muted); font-size: 11px; text-align: center; margin: 14px 0 0; line-height: 1.5; }

/* ===================== Footer ===================== */
.site-footer { background: var(--blue); color: #fff; margin-top: 50px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; padding: 40px 20px 24px; }
.footer-col h4 { font-size: 14px; margin: 0 0 12px; }
.footer-col h4 + h4 { margin-top: 22px; }
.footer-col a + h4 { margin-top: 20px; }
.footer-col a { display: block; color: rgba(255,255,255,.8); text-decoration: none; font-size: 13px; margin-bottom: 8px; }
.footer-col a:hover { color: #fff; }
.footer-legal {
  display: flex; align-items: center; flex-wrap: wrap; gap: 14px;
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 16px 20px 30px; font-size: 12px; color: rgba(255,255,255,.75);
}
.footer-legal strong { color: #fff; }

/* ===================== Responsive ===================== */
@media (max-width: 820px) {
  h1 { font-size: 27px; }
  .intro-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .follow-label, .social { display: none; }
}

@media (max-width: 620px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none; flex-direction: column; gap: 0;
    width: 100%; padding-bottom: 8px;
  }
  .nav-list.open { display: flex; }
  .navbar-inner { flex-wrap: wrap; }
  .nav-list a { padding: 10px 0; border-top: 1px solid rgba(255,255,255,.12); }
  .cta-link { font-size: 20px; padding: 12px 26px; }
  .mainbar-inner { min-height: 64px; }
  .logo-img { height: 42px; }
}

@media (max-width: 440px) {
  h1 { font-size: 23px; }
  .footer-grid { grid-template-columns: 1fr; }
  .article { padding-top: 18px; }
}
