/* =========
   Base
   ========= */
:root{
  --bg: #fbf7f4;          /* bianco caldo */
  --surface: #ffffff;
  --text: #1b1a1a;
  --muted: #5a5656;

  --brand: #5b0f22;       /* borgogna profondo */
  --brand-2: #7a1730;
  --ring: rgba(91, 15, 34, 0.25);

  --border: rgba(27, 26, 26, 0.10);
  --shadow: 0 18px 40px rgba(27, 26, 26, 0.10);

  --radius: 16px;
  --radius-sm: 12px;

  --container: 1120px;

  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-serif: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
}

img{ max-width: 100%; height: auto; }

a{
  color: inherit;
  text-decoration: none;
}
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - 2rem));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 9999;
}
.skip-link:focus{ left: 1rem; top: 1rem; outline: 3px solid var(--ring); }

.small{ font-size: .925rem; }
.muted{ color: var(--muted); }
.link-strong{ font-weight: 600; }

/* =========
   Header / Nav
   ========= */
.site-header{
  position: sticky;
  top: 0;
  background: rgba(251, 247, 244, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 50;
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 0;
}

.brand{
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 200px;
}
.brand-mark{
  width: 14px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--brand), var(--brand-2));
}
.brand-title{
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: .2px;
}
.brand-subtitle{
  margin: 0;
  font-size: .95rem;
  color: var(--muted);
}

.site-nav{ display: flex; align-items: center; }
.nav-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .6rem .8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:focus{ outline: 3px solid var(--ring); }

.nav-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  position: absolute;
  right: 1rem;
  top: 68px;
  width: min(420px, calc(100% - 2rem));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.nav-list.is-open{ display: block; }
.nav-list li{ border-bottom: 1px solid var(--border); }
.nav-list li:last-child{ border-bottom: none; }
.nav-list a{
  display: block;
  padding: .9rem 1rem;
  font-weight: 600;
}
.nav-list a[aria-current="page"]{
  background: rgba(91, 15, 34, 0.06);
}

@media (min-width: 860px){
  .nav-toggle{ display: none; }
  .nav-list{
    position: static;
    display: flex;
    gap: .4rem;
    width: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }
  .nav-list li{ border: none; }
  .nav-list a{
    padding: .55rem .8rem;
    border-radius: 999px;
  }
  .nav-list a:hover{
    text-decoration: none;
    background: rgba(27, 26, 26, 0.05);
  }
  .nav-list a[aria-current="page"]{
    background: rgba(91, 15, 34, 0.10);
  }
}

/* =========
   Buttons
   ========= */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.05rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover{ text-decoration: none; background: var(--brand-2); }
.btn:focus{ outline: 3px solid var(--ring); }

.btn-outline{
  background: transparent;
  color: var(--brand);
  border-color: rgba(91, 15, 34, 0.35);
}
.btn-outline:hover{
  background: rgba(91, 15, 34, 0.06);
}

.btn-ghost{
  background: transparent;
  color: var(--text);
  border-color: rgba(27, 26, 26, 0.18);
}
.btn-ghost:hover{ background: rgba(27, 26, 26, 0.05); }

.btn-small{ padding: .55rem .85rem; font-weight: 700; }
.btn-block{ width: 100%; }

.cta-row{
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.2rem;
}

/* =========
   Sections
   ========= */
.section{
  padding: 3.2rem 0;
}
.section-alt{
  background: rgba(255, 255, 255, 0.55);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head{
  max-width: 760px;
  margin-bottom: 1.6rem;
}

.section-cta{
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

/* =========
   Typography
   ========= */
h1, h2, h3{
  font-family: var(--font-serif);
  letter-spacing: .2px;
  line-height: 1.15;
  margin: 0 0 .75rem 0;
}
h1{ font-size: clamp(2rem, 3.2vw, 3.1rem); }
h2{ font-size: clamp(1.5rem, 2.3vw, 2.1rem); }
h3{ font-size: 1.15rem; }

p{ margin: 0 0 1rem 0; }
.lead{
  font-size: 1.08rem;
  color: var(--text);
  max-width: 70ch;
}
.kicker{
  margin: 0 0 .6rem 0;
  color: var(--brand);
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: .86rem;
}

/* =========
   Hero
   ========= */
.hero{
  padding: 3.4rem 0 2.2rem 0;
}
.hero-inner{
  display: grid;
  gap: 1.4rem;
  align-items: start;
}
.hero-points{
  margin: 1.2rem 0 0 0;
  padding: 0 0 0 1.1rem;
  color: var(--muted);
}
.hero-points li{ margin: .35rem 0; }

.hero-card .card{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.card-title{
  margin: 0 0 .8rem 0;
}
.card-line{ margin: .4rem 0; }
.card-note{ margin: .9rem 0 1.1rem 0; color: var(--muted); }

@media (min-width: 980px){
  .hero-inner{
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
  }
}

/* =========
   Page hero
   ========= */
.page-hero{
  padding: 3rem 0 1.6rem 0;
}

/* =========
   Layout blocks
   ========= */
.grid-2{
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}
.grid-3{
  display: grid;
  gap: 1rem;
  margin-top: 1.1rem;
}

@media (min-width: 860px){
  .grid-2{ grid-template-columns: 1fr 1fr; }
  .grid-3{ grid-template-columns: 1fr 1fr 1fr; }
}

.panel{
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.panel p:last-child{ margin-bottom: 0; }

.split{
  display: grid;
  gap: 1.2rem;
  align-items: start;
}
@media (min-width: 980px){
  .split{
    grid-template-columns: 1.2fr .8fr;
    gap: 2rem;
  }
}

.note-box{
  background: var(--surface);
  border: 1px solid rgba(91, 15, 34, 0.18);
  border-radius: var(--radius);
  padding: 1.25rem;
}
.checklist{
  margin: .8rem 0 0 0;
  padding: 0 0 0 1.1rem;
}
.checklist li{ margin: .35rem 0; }

.bullets{
  margin: .65rem 0 0 0;
  padding: 0 0 0 1.1rem;
}
.bullets li{ margin: .35rem 0; }

.notice{
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(91, 15, 34, 0.22);
  background: rgba(91, 15, 34, 0.06);
}
.notice p{ margin: 0; }

/* Template message block */
.template{
  background: rgba(27, 26, 26, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  margin: .75rem 0 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: .95rem;
  color: #2a2828;
}

/* =========
   Footer
   ========= */
.site-footer{
  border-top: 1px solid var(--border);
  padding: 2.2rem 0 1.2rem 0;
  background: rgba(255, 255, 255, 0.65);
}
.footer-inner{
  display: grid;
  gap: 1.2rem;
}
.footer-title{
  margin: 0 0 .3rem 0;
  font-family: var(--font-serif);
  font-weight: 600;
}
.footer-links{
  list-style: none;
  margin: .6rem 0 0 0;
  padding: 0;
}
.footer-links li{ margin: .35rem 0; }

.footer-bottom{
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

@media (min-width: 860px){
  .footer-inner{
    grid-template-columns: 1.1fr 1fr .9fr;
    gap: 2rem;
  }
}

/* =========
   Reduce motion
   ========= */
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
}
