/* Sodesi — foglio di stile unico */

:root{
  --bg:#fcfbf9;
  --bg-alt:#efeeea;
  --bg-dark:#141414;
  --ink:#141414;
  --ink-soft:#6a6a66;
  --ink-invert:#fcfbf9;
  --accent:#c22a22;
  --accent-2:#3c5a4a;
  --step:80px;
  --gap:24px;
}

*{box-sizing:border-box;}

html{-webkit-text-size-adjust:100%;}

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:system-ui,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;
  font-size:17px;
  line-height:1.7;
  overflow-x:hidden;
}

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

a{color:var(--accent);text-decoration:none;border-bottom:1px solid rgba(194,42,34,.35);}
a:hover{border-bottom-color:var(--accent);}

a:focus-visible,
:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:3px;
}

.wrap{
  max-width:1220px;
  margin:0 auto;
  padding:0 28px;
}

.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  column-gap:var(--gap);
}

/* ---------- intestazione ---------- */

.site-head{
  border-bottom:0;
  padding:26px 0 10px;
}
.site-head .wrap{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:14px 28px;
}
.brand{
  font-size:19px;
  font-weight:700;
  letter-spacing:-.01em;
  color:var(--ink);
  border-bottom:0;
}
.brand span{color:var(--accent);}

.nav ul{
  list-style:none;
  margin:0;padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:6px 22px;
}
.nav a{
  font-size:14px;
  color:var(--ink);
  border-bottom:1px solid transparent;
  padding-bottom:2px;
}
.nav a:hover,
.nav a[aria-current="page"]{
  border-bottom-color:var(--accent);
  color:var(--accent);
}

/* ---------- hero ---------- */

.hero{padding:56px 0 var(--step);}
.hero-title{grid-column:1 / span 7;margin:0;}
.hero h1{
  margin:0;
  font-size:clamp(34px,5.4vw,62px);
  line-height:1.04;
  font-weight:800;
  letter-spacing:-.035em;
  max-width:14ch;
}
.hero-lede{
  grid-column:9 / span 4;
  margin:6px 0 0;
  color:var(--ink-soft);
  font-size:16px;
}
.hero-lede strong{color:var(--ink);font-weight:600;}

/* asse grafico in CSS puro */
.axis{margin-top:34px;}
.axis-bar{
  height:2px;
  background:var(--accent);
  width:100%;
}
.axis-legs{
  display:flex;
  gap:64px;
  padding-left:6px;
}
.axis-legs i{
  display:block;
  width:1px;
  background:var(--ink);
  position:relative;
}
.axis-legs i:nth-child(1){height:54px;}
.axis-legs i:nth-child(2){height:88px;background:var(--accent-2);}
.axis-legs i:nth-child(3){height:32px;}
.axis-legs i::after{
  content:"";
  position:absolute;
  left:-3px;bottom:-7px;
  width:7px;height:7px;
  background:var(--ink);
}
.axis-legs i:nth-child(2)::after{background:var(--accent);}

/* ---------- immagine principale ---------- */

.figure-main{
  margin:0 0 var(--step);
}
.figure-main .cap{
  grid-column:1 / span 2;
  align-self:end;
  font-size:13px;
  color:var(--ink-soft);
  padding-bottom:4px;
}
.figure-main .cap b{
  display:block;
  color:var(--accent-2);
  font-weight:600;
  letter-spacing:.08em;
  text-transform:uppercase;
  font-size:11px;
  margin-bottom:6px;
}
.figure-main picture,
.figure-main img{grid-column:4 / span 9;width:100%;}
.figure-main img{grid-column:4 / span 9;}

/* ---------- sezioni ---------- */

.band{padding:var(--step) 0;}
.band--alt{background:var(--bg-alt);}
.band--dark{background:var(--bg-dark);color:var(--ink-invert);}
.band--dark h2,.band--dark h3{color:var(--ink-invert);}
.band--dark .kicker{color:#a8bcb0;}
.band--dark p{color:#d9d8d3;}
.band--dark a{color:#f0a49e;border-bottom-color:rgba(240,164,158,.4);}

.sec{align-items:start;}
.sec + .sec{margin-top:var(--step);}

.sec-head{
  grid-column:1 / span 3;
  position:relative;
  padding-left:20px;
}
.sec-head::before{
  content:"";
  position:absolute;
  left:0;top:12px;
  width:8px;height:8px;
  background:var(--accent);
}
.band--dark .sec-head::before{background:var(--accent-2);}
.sec-head h2{
  margin:0;
  font-size:22px;
  line-height:1.25;
  font-weight:700;
  letter-spacing:-.015em;
}
.sec-head h3{
  margin:0;
  font-size:20px;
  font-weight:700;
  letter-spacing:-.01em;
}
.kicker{
  display:block;
  font-size:11px;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--accent-2);
  margin-bottom:8px;
  font-weight:600;
}

.sec-body{grid-column:5 / span 7;}
.sec-body > :first-child{margin-top:0;}
.sec-body p{margin:0 0 18px;}
.sec-body p:last-child{margin-bottom:0;}
.sec-body h3{
  font-size:18px;
  margin:28px 0 8px;
  letter-spacing:-.01em;
}

/* ---------- elenchi ---------- */

.list{
  list-style:none;
  margin:20px 0;
  padding:0;
}
.list li{
  position:relative;
  padding-left:22px;
  margin-bottom:11px;
}
.list li::before{
  content:"";
  position:absolute;
  left:0;top:11px;
  width:6px;height:6px;
  background:var(--accent);
}
.band--dark .list li::before{background:var(--accent-2);}

.list--num{counter-reset:s;}
.list--num li{padding-left:34px;}
.list--num li::before{
  counter-increment:s;
  content:counter(s,decimal-leading-zero);
  background:none;
  width:auto;height:auto;
  top:0;
  font-size:12px;
  font-weight:700;
  color:var(--accent-2);
  letter-spacing:.04em;
}

.terms{margin:20px 0 0;}
.terms dt{font-weight:700;margin-top:16px;}
.terms dd{margin:2px 0 0;color:var(--ink-soft);}
.band--dark .terms dd{color:#d9d8d3;}

/* ---------- sezione scura con immagine verticale ---------- */

.detail-figure{
  grid-column:1 / span 4;
  margin:0;
}
.detail-figure figcaption{
  font-size:13px;
  color:#a8a8a2;
  margin-top:12px;
}
.detail-text{grid-column:7 / span 6;}
.detail-text h2{
  margin:0 0 14px;
  font-size:26px;
  letter-spacing:-.02em;
}

/* ---------- About ---------- */

.about-grid{position:relative;}
.about-grid::before{
  content:"";
  position:absolute;
  left:calc(33.333% - 12px);
  top:0;bottom:0;
  width:1px;
  background:#d8d7d2;
}
.about-grid .sec-head{grid-column:1 / span 3;}
.about-grid .sec-body{grid-column:5 / span 7;}
.about-grid .gap{margin-top:56px;}

/* ---------- piè di pagina ---------- */

.site-foot{
  background:var(--bg-dark);
  color:var(--ink-invert);
  padding:56px 0 44px;
  margin-top:0;
}
.foot-top{
  display:flex;
  flex-wrap:wrap;
  align-items:baseline;
  justify-content:space-between;
  gap:10px 24px;
}
.foot-name{
  font-size:28px;
  font-weight:800;
  letter-spacing:-.03em;
}
.foot-mail a{color:#f0a49e;border-bottom-color:rgba(240,164,158,.45);font-size:16px;}
.foot-rule{
  height:1px;
  background:#3a3a38;
  margin:22px 0 20px;
}
.foot-links{
  list-style:none;
  margin:0 0 18px;
  padding:0;
  display:flex;
  flex-wrap:wrap;
  gap:8px 26px;
}
.foot-links a{
  color:var(--ink-invert);
  font-size:14px;
  border-bottom:1px solid transparent;
}
.foot-links a:hover{border-bottom-color:var(--accent);color:#f0a49e;}
.foot-note{
  margin:0;
  color:#8f8f8a;
  font-size:13px;
  max-width:62ch;
}

/* ---------- pagine interne ---------- */

.page-head{padding:48px 0 var(--step);}
.page-head h1{
  grid-column:1 / span 7;
  margin:0;
  font-size:clamp(30px,4.4vw,50px);
  line-height:1.08;
  font-weight:800;
  letter-spacing:-.03em;
}
.page-head .lede{
  grid-column:9 / span 4;
  margin:6px 0 0;
  color:var(--ink-soft);
  font-size:16px;
}

/* ---------- responsive ---------- */

@media (max-width:1000px){
  .hero-lede,.page-head .lede{grid-column:1 / span 12;margin-top:22px;}
  .hero-title,.page-head h1{grid-column:1 / span 12;}
  .hero h1{max-width:100%;}
  .figure-main .cap{grid-column:1 / span 12;order:2;margin-top:12px;padding-bottom:0;}
  .figure-main img{grid-column:1 / span 12;order:1;}
  .figure-main{display:block;}
  .detail-figure{grid-column:1 / span 6;}
  .detail-text{grid-column:1 / span 12;margin-top:28px;}
}

@media (max-width:760px){
  :root{--step:48px;--gap:16px;}
  body{font-size:16px;}
  .wrap{padding:0 20px;}
  .sec-head,.sec-body,
  .about-grid .sec-head,.about-grid .sec-body{grid-column:1 / span 12;}
  .sec-body{margin-top:14px;}
  .about-grid::before{display:none;}
  .detail-figure{grid-column:1 / span 12;}
  .axis-legs{gap:40px;}
  .hero{padding:34px 0 var(--step);}
  .site-head .wrap{flex-direction:column;align-items:flex-start;}
  .nav ul{gap:6px 18px;}
  .foot-name{font-size:23px;}
}

@media (max-width:760px){
  .about-grid .sec-body.gap{margin-top:14px;}
}
