/* Studio Boccalatte — foglio di stile
   Registro: istituzionale ed editoriale. Inchiostro blu notte, avorio, ottone. */

@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans.woff2") format("woff2"); font-weight: 300 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Open Sans"; src: url("../fonts/open-sans-italic.woff2") format("woff2"); font-weight: 300 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("../fonts/gelasio-400.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("../fonts/gelasio-500.woff2") format("woff2"); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Gelasio"; src: url("../fonts/gelasio-400-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }

:root {
  --ink: #0F1B2D;
  --ink-2: #2C3A4F;
  --muted: #56616F;
  --ivory: #F6F3EE;
  --ivory-2: #EDE8DF;
  --paper: #FFFFFF;
  --line: #E2DDD3;
  --line-dark: rgba(255,255,255,.16);
  --brass: #B08D57;          /* solo filetti e numeri grandi */
  --brass-text: #7A5B2B;     /* testo piccolo su avorio/bianco */
  --brass-light: #D9C29A;    /* testo su fondo scuro */
  --serif: Georgia, "Gelasio", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --wrap: 1240px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brass-text); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
::selection { background: var(--brass-light); color: var(--ink); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 200; }
.skip:focus { left: 12px; top: 12px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografia ---------- */
h1, h2, h3 { margin: 0; font-weight: 400; font-family: var(--serif); letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(32px, 3.6vw, 50px); line-height: 1.1; }
h3 { font-size: 24px; line-height: 1.25; }
.kicker { display: inline-flex; align-items: center; gap: 14px; font-family: var(--sans); font-size: 12.5px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-text); margin: 0 0 22px; }
.kicker::before { content: ""; width: 36px; height: 1px; background: currentColor; opacity: .7; }
.on-dark .kicker, .kicker.light { color: var(--brass-light); }
.lead { font-family: var(--serif); font-size: clamp(20px, 1.9vw, 25px); line-height: 1.5; font-weight: 300; color: var(--ink-2); }
.muted { color: var(--muted); }
em.serif, .serif-it { font-family: var(--serif); font-style: italic; }

/* ---------- Intestazione ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); transition: background .4s var(--ease), border-color .4s var(--ease), color .4s var(--ease); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: inherit; line-height: 1.15; }
.brand:hover { color: inherit; }
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: .01em; }
.brand-sub { font-size: 10.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; opacity: .72; margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 14.5px; font-weight: 500; letter-spacing: .02em; }
.nav a { color: inherit; text-decoration: none; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover { color: inherit; }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 2px; background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; }

/* intestazione trasparente sopra lo slider della home */
body.has-hero .site-header { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; color: #fff; }
body.has-hero .site-header.solid { background: rgba(255,255,255,.97); border-color: var(--line); color: var(--ink); backdrop-filter: saturate(1.2) blur(6px); }

@media (max-width: 1020px) {
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 28px 24px; box-shadow: 0 20px 30px rgba(15,27,45,.08); }
  .nav.open { display: flex; }
  .nav a { padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a::after { display: none; }
  .site-header .wrap { position: relative; height: 72px; }
  .brand-name { font-size: 22px; }
}

/* ---------- Slider della home ---------- */
.hero { position: relative; min-height: max(640px, 100vh); min-height: max(640px, 100svh); color: #fff; overflow: hidden; background: var(--ink); display: flex; }
.slides { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; }
.slide.active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); }
.slide.active img { animation: kenburns 7s linear forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.12); } }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(10,18,31,.58) 0%, rgba(10,18,31,.3) 40%, rgba(10,18,31,0) 70%),
  linear-gradient(0deg, rgba(10,18,31,.5) 0%, rgba(10,18,31,0) 35%),
  linear-gradient(180deg, rgba(10,18,31,.4) 0%, rgba(10,18,31,0) 18%); pointer-events: none; }
.slide img { filter: saturate(1.15) brightness(1.06) contrast(1.03); }
.hero-inner h1, .hero-inner .lead, .hero-inner .kicker { text-shadow: 0 1px 2px rgba(10,18,31,.45), 0 2px 18px rgba(10,18,31,.35); }
.hero-inner { position: relative; z-index: 2; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 140px; padding-bottom: 120px; }
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: italic; color: var(--brass-light); }
.hero .lead { color: rgba(255,255,255,.86); max-width: 34em; margin: 28px 0 0; }
.hero-meta { position: absolute; z-index: 3; left: 0; right: 0; bottom: 36px; }
.hero-meta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hero-controls { display: flex; align-items: center; gap: 10px; }
.hero-controls button { cursor: pointer; border: 0; background: transparent; padding: 0; color: #fff; }
.dot { width: 44px; height: 44px; display: inline-flex; align-items: center; }
.dot span { display: block; width: 100%; height: 2px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.dot[aria-current="true"] span::after { animation: progress 5s linear forwards; }
.hero.paused .dot[aria-current="true"] span::after, .hero.reduced .dot[aria-current="true"] span::after { animation: none; transform: scaleX(1); }
@keyframes progress { to { transform: scaleX(1); } }
.pause { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.4) !important; border-radius: 50%; margin-left: 10px; }
.caption { font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: 12px; }
.caption::before { content: ""; width: 24px; height: 1px; background: var(--brass-light); }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 36px; transform: translateX(-50%); color: rgba(255,255,255,.75); text-decoration: none; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-cue:hover { color: #fff; }
.scroll-cue i { width: 1px; height: 38px; background: linear-gradient(#fff, transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%,100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@media (max-width: 760px) {
  .scroll-cue, .caption { display: none; }
  .hero-inner { padding-top: 120px; padding-bottom: 120px; }
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 18px; margin-top: 20px; }
  .hero-meta { bottom: 24px; }
  .dot { width: 34px; }
}

/* ---------- Testate delle pagine interne ---------- */
.banner { position: relative; color: #fff; background: var(--ink); overflow: hidden; min-height: 440px; display: flex; align-items: flex-end; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,18,31,.88) 0%, rgba(10,18,31,.55) 55%, rgba(10,18,31,.25) 100%), linear-gradient(0deg, rgba(10,18,31,.6), rgba(10,18,31,0) 50%); }
.banner .wrap { position: relative; z-index: 1; width: 100%; padding-top: 140px; padding-bottom: 64px; }
.banner h1 { max-width: 18ch; font-size: clamp(38px, 5vw, 66px); }
.banner .lead { color: rgba(255,255,255,.85); max-width: 36em; margin: 22px 0 0; }
.banner .photo-credit { position: absolute; z-index: 1; right: 28px; bottom: 18px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); }
.crumbs { font-size: 13px; letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; color: rgba(255,255,255,.75); }
.crumbs a { color: inherit; }
.crumbs a:hover { color: #fff; }
.page-head { background: var(--ivory); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .crumbs { color: var(--muted); }
.page-head .crumbs a:hover { color: var(--ink); }

/* ---------- Sezioni ---------- */
.section { padding: 120px 0; }
.section-sm { padding: 80px 0; }
.bg-ivory { background: var(--ivory); }
.bg-ink { background: var(--ink); color: #fff; }
.bg-ink .lead { color: rgba(255,255,255,.82); }
.head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 56px; }
.head-row h2 { max-width: 20ch; }
.link-arrow { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; color: var(--ink); padding: 10px 0; border-bottom: 1px solid var(--brass); }
.link-arrow:hover { color: var(--brass-text); }
.link-arrow svg { transition: transform .3s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.bg-ink .link-arrow, .feature .link-arrow, .banner .link-arrow { color: #fff; }

/* Introduzione */
.intro { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 80px; align-items: start; }
.intro .statement { font-family: var(--serif); font-size: clamp(30px, 3.2vw, 44px); line-height: 1.2; font-weight: 300; letter-spacing: -.01em; margin: 0; }
.intro .statement em { color: var(--brass-text); }
.intro .body p { margin: 0 0 1.1em; color: var(--ink-2); font-size: 18px; }
.places { display: flex; gap: 48px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.places div { display: flex; flex-direction: column; }
.places strong { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.places span { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 900px) { .intro { grid-template-columns: 1fr; gap: 36px; } }

/* Aree di attività: elenco numerato */
.areas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.areas li { border-bottom: 1px solid var(--line); }
.areas a { display: grid; grid-template-columns: 56px 1fr 28px; gap: 8px 16px; align-items: start; padding: 34px 0; text-decoration: none; color: var(--ink); }
.areas .n { font-family: var(--serif); font-size: 20px; color: var(--brass); padding-top: 4px; }
.areas h3 { transition: color .3s var(--ease); }
.areas p { grid-column: 2; margin: 6px 0 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.areas svg { grid-column: 3; grid-row: 1; margin-top: 8px; color: var(--brass); transition: transform .35s var(--ease); }
.areas a:hover h3 { color: var(--brass-text); }
.areas a:hover svg { transform: translateX(6px); }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } .areas a { grid-template-columns: 44px 1fr 24px; padding: 28px 0; } }

/* Banda con immagine e metodo */
.feature { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.feature > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.feature::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,27,45,.55), rgba(15,27,45,.92)); }
.feature .wrap { position: relative; z-index: 1; }
.feature h2 { max-width: 18ch; }
.feature .lead { color: rgba(255,255,255,.82); max-width: 36em; margin: 24px 0 0; }
.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); counter-reset: s; }
.steps li { padding: 30px 28px 0 0; position: relative; }
.steps li::before { counter-increment: s; content: "0" counter(s); font-family: var(--serif); font-size: 46px; font-weight: 300; color: var(--brass-light); display: block; line-height: 1; margin-bottom: 18px; }
.steps li::after { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--brass-light); }
.steps strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; margin-bottom: 8px; }
.steps span { color: rgba(255,255,255,.72); font-size: 15.5px; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Articoli: elenco editoriale */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 48px; }
.post { display: flex; flex-direction: column; gap: 14px; padding: 30px 0 36px; border-top: 1px solid var(--ink); text-decoration: none; color: var(--ink); }
.post .meta { font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-text); display: flex; gap: 10px; flex-wrap: wrap; }
.post .meta time { color: var(--muted); font-weight: 500; }
.post h3 { font-size: 26px; line-height: 1.22; transition: color .3s var(--ease); }
.post p { margin: 0; color: var(--muted); font-size: 16px; }
.post .more { margin-top: auto; font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; padding-top: 6px; }
a.post:hover h3 { color: var(--brass-text); }
.posts-list { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr; } .post h3 { font-size: 24px; } }
.empty-note { color: var(--muted); font-size: 17px; }

/* Filtri per argomento */
.filtri { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 48px; }
.filtri a { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 0 18px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--paper); }
.filtri a:hover { border-color: var(--brass); color: var(--ink); }
.filtri a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Sedi */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.office { padding: 40px 40px 40px 0; display: flex; flex-direction: column; gap: 6px; }
.office + .office { padding-left: 40px; border-left: 1px solid var(--line); }
.office h3 { font-size: 34px; margin-bottom: 10px; }
.office span, .office a { color: var(--ink-2); font-size: 17px; }
.office .lbl { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.bg-ink .office { border-color: var(--line-dark); }
.bg-ink .office span, .bg-ink .office a { color: rgba(255,255,255,.85); }
.bg-ink .office .lbl { color: var(--brass-light); }
@media (max-width: 760px) { .offices { grid-template-columns: 1fr; } .office { padding: 32px 0; } .office + .office { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Valori (pagina Lo Studio) */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 48px 56px; }
.values div { border-top: 1px solid var(--brass); padding-top: 24px; }
.values h3 { margin-bottom: 10px; }
.values p { margin: 0; color: var(--muted); }

/* Prosa */
.split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } }
.prose { font-family: var(--serif); font-size: 21px; line-height: 1.7; color: var(--ink-2); font-weight: 350; }
.prose p { margin: 0 0 1.1em; }
.prose h2 { font-size: 32px; color: var(--ink); margin: 1.6em 0 .55em; }
.prose h3 { font-size: 25px; color: var(--ink); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brass); }
.prose a { color: var(--ink); text-decoration-color: var(--brass); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 26px; border-left: 2px solid var(--brass); font-style: italic; color: var(--ink); }
.article { max-width: 760px; margin: 0 auto; }

/* Schede servizi (pagine interne) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards > div { padding: 36px 32px 40px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.cards h3 { margin: 18px 0 10px; }
.cards p { margin: 0; color: var(--muted); font-size: 16px; }
.cards .ico { color: var(--brass); }

/* Riquadro informativo */
.facts { border-left: 1px solid var(--brass); padding: 4px 0 4px 28px; display: flex; flex-direction: column; gap: 14px; }
.facts p { margin: 0; color: var(--muted); font-size: 16px; }
.facts strong { font-size: 12.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-text); }

/* Domande frequenti */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { font-family: var(--serif); font-size: 23px; cursor: pointer; min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 26px; font-weight: 300; color: var(--brass); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: 4px 0 22px; color: var(--muted); max-width: 46em; }

/* Elenco servizi per esteso */
.service-block { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 72px; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 100px; }
.service-block .n { font-family: var(--serif); font-size: 18px; color: var(--brass); display: block; margin-bottom: 12px; }
@media (max-width: 900px) { .service-block { grid-template-columns: 1fr; gap: 20px; padding: 48px 0; } }

/* Comparsa progressiva */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Piè di pagina */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); font-size: 15px; }
.site-footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2fr)); gap: 48px; padding: 96px 0 64px; }
.footer-top .brand-name { color: #fff; font-size: 34px; }
.footer-top p { margin: 14px 0 0; max-width: 26em; }
.footer-top h4 { margin: 6px 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-light); }
.footer-top ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 26px 0 34px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; font-size: 13.5px; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 22px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-top > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Avvisi (usati anche dall'area redazione) */
.notice { padding: 16px 18px; border-radius: 2px; font-weight: 600; }
.notice.ok { background: #EAF2EE; color: #1E4D3A; }
.notice.err { background: #FBEAEA; color: #8A1F1F; }

/* Moduli (area redazione) */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 2px; font-weight: 600; font-size: 15px; letter-spacing: .04em; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; text-align: center; line-height: 1.3; }
.btn-primary { background: var(--ink); color: #fff !important; }
.btn-primary:hover { background: var(--ink-2); }
.form { display: flex; flex-direction: column; gap: 18px; padding: 36px; background: var(--ivory); border-radius: 2px; }
.form-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.form input, .form select, .form textarea { min-height: 46px; padding: 10px 14px; border: 1px solid #B9B2A5; border-radius: 2px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: var(--ink); }
.form textarea { min-height: 130px; resize: vertical; }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding-left: 20px; padding-right: 20px; }
  .brand-sub { letter-spacing: .12em; font-size: 9.5px; }
  .section { padding: 80px 0; }
  .section-sm { padding: 56px 0; }
  .prose { font-size: 19px; }
  .banner { min-height: 380px; }
  .banner .wrap { padding-top: 120px; padding-bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.active img { animation: none; }
  .slide { transition-duration: .01s; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue i { animation: none; }
}

@media print { .site-header, .site-footer, .hero-meta { display: none; } }

/* Area redazione */
.section-tight { padding: 56px 0; }
.section-head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.section-head-row h1 { font-size: 40px; }

/* Home: equilibrio fra nome dello Studio e frase di apertura */
.hero .hero-title { font-size: clamp(36px, 4.3vw, 60px); line-height: 1.08; max-width: 17ch; }
.hero .hero-title em { font-style: italic; color: var(--brass-light); }
body.has-hero .brand-name { font-size: 34px; }
body.has-hero .brand-sub { font-size: 11.5px; margin-top: 6px; }
body.has-hero .site-header .wrap { height: 96px; }
body.has-hero .site-header.solid .wrap { height: 84px; }
body.has-hero .site-header.solid .brand-name { font-size: 28px; }
@media (max-width: 1020px) {
  body.has-hero .brand-name { font-size: 26px; }
  body.has-hero .site-header .wrap, body.has-hero .site-header.solid .wrap { height: 76px; }
}
@media (max-width: 760px) { .hero .hero-title { font-size: 36px; } body.has-hero .brand-sub { font-size: 9.5px; letter-spacing: .12em; } }

/* Home sul telefono: barra scura in alto, foto in una fascia orizzontale, frase sotto (come studioboidi.it) */
@media (max-width: 760px) {
  body.has-hero .site-header,
  body.has-hero .site-header.solid { position: sticky; background: var(--ink); border-color: var(--ink); color: #fff; backdrop-filter: none; }
  body.has-hero .site-header .wrap,
  body.has-hero .site-header.solid .wrap { height: 72px; }
  body.has-hero .site-header.solid .brand-name { font-size: 26px; }
  .hero { display: block; min-height: 0; }
  .hero .slides { position: relative; inset: auto; height: 70vw; max-height: 480px; }
  .hero::after { inset: 0 0 auto 0; height: 70vw; max-height: 480px; background: linear-gradient(0deg, rgba(10,18,31,.35) 0%, rgba(10,18,31,0) 30%); }
  .hero-inner h1, .hero-inner .lead, .hero-inner .kicker { text-shadow: none; }
  .hero-meta { top: min(70vw, 480px); bottom: auto; transform: translateY(-100%); padding-bottom: 6px; }
  .hero-inner { padding-top: 36px; padding-bottom: 56px; }
  .hero .hero-title { font-size: 34px; }
  .hero .lead { font-size: 17px; }
}

/* Testo degli articoli: Open Sans, corpo piccolo (come studioboidi.it) */
.prose.articolo { font-family: "Open Sans", Arial, sans-serif; font-size: 16px; line-height: 1.85; color: #4F545B; font-weight: 400; }
.prose.articolo h2 { font-size: 26px; }
.prose.articolo h3 { font-size: 21px; }
.prose.articolo strong { color: var(--ink); font-weight: 600; }
.prose.articolo blockquote { font-size: 15.5px; }
@media (max-width: 640px) { .prose.articolo { font-size: 15px; } .prose.articolo h2 { font-size: 23px; } }
.lead.lead-articolo { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; }

/* Home: dimensioni dei caratteri allineate a studioboidi.it */
body.has-hero .hero .hero-title { font-size: clamp(34px, 3.3vw, 47px); line-height: 1.15; max-width: 19ch; }
body.has-hero .hero .lead { font-size: 21px; line-height: 1.45; }
body.has-hero main h2 { font-size: 35px; line-height: 1.25; }
body.has-hero .statement { font-size: 35px; line-height: 1.25; }
body.has-hero .feature .lead { font-size: 18px; line-height: 1.6; }
body.has-hero .intro .body p, body.has-hero .areas p, body.has-hero .steps span, body.has-hero .office span,
body.has-hero .empty-note, body.has-hero .post p { font-size: 14px; line-height: 27px; }
body.has-hero .areas h3, body.has-hero .post h3 { font-size: 24px; }
body.has-hero .steps strong { font-size: 22px; }
body.has-hero .places strong { font-size: 26px; }
body.has-hero .office h3 { font-size: 30px; }
@media (max-width: 760px) {
  body.has-hero .hero .hero-title { font-size: 30px; }
  body.has-hero .hero .lead { font-size: 17px; }
  body.has-hero main h2, body.has-hero .statement { font-size: 27px; }
  body.has-hero .areas h3, body.has-hero .post h3 { font-size: 21px; }
  body.has-hero .office h3 { font-size: 26px; }
}
body.has-hero .office span.lbl { font-size: 12px; }
body.has-hero .office a { font-size: 15px; }

/* Strumenti */
.tool-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px 64px; padding-top: 40px; border-top: 1px solid var(--line); }
.tool-group + .tool-group { margin-top: 56px; }
.tool-group-head h2 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 12px; }
.tool-group-head p { margin: 0; color: var(--muted); font-size: 15px; }
.tool-group .posts-list { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.tool-group .post { padding-top: 0; border-top: 0; }
.post.tool .tag { color: var(--muted); font-weight: 500; }
.post.tool .more svg { transition: transform .3s var(--ease); }
a.post.tool:hover .more svg { transform: translateX(4px); }
.tool-note { margin: 56px 0 0; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; max-width: 60em; }
[hidden] { display: none !important; }
@media (max-width: 900px) { .tool-group { grid-template-columns: 1fr; } }

/* Menu con sette voci: niente a capo sugli schermi medi */
.nav a { white-space: nowrap; }
@media (min-width: 1021px) and (max-width: 1280px) {
  .nav { gap: 18px; font-size: 13.5px; }
  .brand-sub { letter-spacing: .16em; }
}
