/*
Theme Name: Alessandra Brignola
Description: Tema su misura per alebrignola.com - consulenza e project management nel turismo industriale. Conversione del prototipo HTML in tema WordPress con ACF.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: alebrignola
*/

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #eeeae2;
  --cream-dark: #e4e0d7;
  --ink: #0d2b26;
  --ink-mid: #1a3d37;
  --ink-light: rgba(13,43,38,0.69);
  --ink-faint: rgba(13,43,38,0.12);
  --dark-bg: #111a18;
  --dark-text: #f0ece4;
  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 3.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--ink-faint);
}

.nav-logo {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 400;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover, .nav-links a.active { opacity: 1; }

.nav-cta {
  font-size: 0.98rem;
  color: var(--cream);
  background: var(--ink);
  border: none;
  padding: 0.6rem 1.5rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 400;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.nav-cta:hover { background: var(--ink-mid); }

/* La voce CTA dentro il menu mobile e' nascosta di default; appare sotto il
   breakpoint del menu mobile, dove la .nav-cta di livello nav e' nascosta. */
.nav-cta-mobile { display: none; }

/* In WordPress ogni sezione e' un documento a se': niente display:none */
.page { padding-top: 36px; }

.section-tag {
  font-size: 0.88rem;
  color: var(--ink-light);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
  display: block;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.link-arrow:hover { opacity: 0.6; }

.ph {
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  color: var(--ink-light);
  font-size: 0.82rem;
  text-align: center;
  padding: 2rem;
  line-height: 1.5;
}
.ph-icon { font-size: 1.5rem; opacity: 0.5; }

/* ====== HOME ====== */

.hero {
  padding: 5rem 3.5rem 4rem;
  border-bottom: 1px solid var(--ink-faint);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4rem;
}

.hero-role { font-size: 0.92rem; color: var(--ink-light); }

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.38rem, 5.1vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2rem;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--ink-light);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 4rem;
}

.hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4rem;
}

/* manifesto */
.manifesto {
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--ink-faint);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}

.manifesto-label { font-size: 0.92rem; color: var(--ink-light); padding-top: 0.4rem; }

.manifesto-text {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 400;
  line-height: 1.4;
  color: var(--ink);
}

/* projects */
.projects {
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--ink-faint);
}

.projects-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 1.25rem;
  row-gap: 1.5rem;
}

.projects-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
}

.project-card {
  background: var(--cream);
  border: 1px solid var(--ink-faint);
  cursor: pointer;
  text-decoration: none;
  color: var(--ink);
  display: block;
  transition: background 0.2s, border-color 0.2s;
}
.project-card:hover { background: var(--cream-dark); border-color: rgba(13,43,38,0.22); }

.project-card-img { width: 100%; height: 220px; }

.project-card-info {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid var(--ink-faint);
}

.project-card-client {
  font-size: 0.82rem;
  color: var(--ink-light);
  margin-bottom: 0.4rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.project-card-name {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.35;
}

/* photo quote */
.photo-quote {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink-faint);
  min-height: 480px;
}

.photo-quote-img { width: 100%; height: 100%; min-height: 480px; }

.photo-quote-text {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--cream);
}

.blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.blockquote-sub {
  font-size: 0.98rem;
  color: var(--ink-light);
  line-height: 1.6;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.blockquote-attr { font-size: 0.92rem; color: var(--ink-light); }

/* inge dark */
.inge-dark {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--dark-bg);
  overflow: hidden;
  min-height: 420px;
}

.inge-dark-text {
  padding: 4.5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inge-dark-eyebrow {
  font-size: 0.82rem;
  color: rgba(240,236,228,0.45);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.inge-dark-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 700;
  color: var(--dark-text);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.inge-dark-body {
  font-size: 1rem;
  color: rgba(240,236,228,0.65);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 2rem;
}

.link-arrow-light {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.98rem;
  color: var(--dark-text);
  text-decoration: none;
  border-bottom: 1px solid rgba(240,236,228,0.35);
  padding-bottom: 1px;
  transition: opacity 0.2s;
}
.link-arrow-light:hover { opacity: 0.65; }

.inge-dark-img { width: 100%; height: 100%; min-height: 420px; }

/* services bar */
.services-bar {
  padding: 5rem 3.5rem;
  border-top: 1px solid var(--ink-faint);
}

.services-bar-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.services-bar-sub {
  font-size: 0.92rem;
  color: var(--ink-light);
  margin-bottom: 3rem;
  font-style: italic;
}

.services-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--ink-faint);
}

.services-bar-foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 3rem;
}

.service-col {
  padding: 2rem 1.25rem 2rem 0;
  border-right: 1px solid var(--ink-faint);
  cursor: pointer;
  transition: background 0.2s;
  padding-left: 1.25rem;
}
.service-col:first-child { padding-left: 0; }
.service-col:last-child { border-right: none; }
.service-col:hover { background: var(--cream-dark); }

.service-col-num { font-size: 0.82rem; color: var(--ink-light); margin-bottom: 1rem; }

.service-col-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  line-height: 1.2;
}

.service-col-desc { font-size: 0.88rem; color: var(--ink-light); line-height: 1.6; font-weight: 300; }

/* cta */
.home-cta {
  padding: 4rem 3.5rem;
  border-top: 1px solid var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-cta-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 400;
  color: var(--ink);
  max-width: 520px;
  line-height: 1.25;
}

.btn-dark {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  text-decoration: none;
  font-family: var(--font-body);
  transition: background 0.2s;
  white-space: nowrap;
  display: inline-block;
}
.btn-dark:hover { background: var(--ink-mid); }

/* footer */
footer {
  background: var(--cream);
  padding: 2rem 3.5rem;
  border-top: 1px solid var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo { font-size: 0.92rem; font-weight: 500; color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-copy { font-size: 0.85rem; color: var(--ink-light); }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { font-size: 0.88rem; color: var(--ink-light); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ====== CHI SONO ====== */

.about-hero { padding: 5rem 3.5rem 4rem; border-bottom: 1px solid var(--ink-faint); }

.about-headline {
  font-family: var(--font-display);
  font-size: clamp(2.38rem, 4.675vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 3rem;
}

/* Narrative blocks with alternating photo */
.bio-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--ink-faint);
  min-height: 360px;
}

.bio-block:last-of-type { border-bottom: 1px solid var(--ink-faint); }

.bio-text {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bio-block.is-reversed .bio-text { order: 2; }
.bio-block.is-reversed .bio-img { order: 1; }

.bio-period {
  font-size: 0.82rem;
  color: var(--ink-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.bio-body {
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.85;
  font-weight: 300;
}

.bio-body p + p { margin-top: 1rem; }

.bio-img { width: 100%; height: 100%; min-height: 360px; }

/* quote between bio blocks */
.bio-quote-strip {
  padding: 3.5rem 3.5rem;
  border-top: 1px solid var(--ink-faint);
  background: var(--cream-dark);
}

.bio-quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
  max-width: 780px;
  margin-bottom: 1rem;
}

.bio-quote-attr { font-size: 0.92rem; color: var(--ink-light); }

/* timeline */
.timeline { padding: 5rem 3.5rem; border-top: 1px solid var(--ink-faint); }

.timeline-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 3rem;
}

.tl-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 2rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--ink-faint);
}

.tl-year { font-size: 0.92rem; color: var(--ink-light); padding-top: 0.15rem; }

.tl-content strong { display: block; font-size: 1.05rem; font-weight: 500; color: var(--ink); margin-bottom: 0.3rem; }
.tl-content span { font-size: 0.95rem; color: var(--ink-light); line-height: 1.55; }

/* quotes */
.about-quotes { padding: 5rem 3.5rem; border-top: 1px solid var(--ink-faint); }

.quotes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.quote-card { padding: 2.5rem; border: 1px solid var(--ink-faint); }

.quote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 1.5rem;
}

.quote-attr { font-size: 0.88rem; color: var(--ink-light); line-height: 1.4; }

.quote-missing {
  border: 1px dashed var(--ink-faint);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-light);
  font-size: 0.92rem;
  font-style: italic;
  text-align: center;
  line-height: 1.5;
}

/* network */
.network {
  padding: 4rem 3.5rem;
  border-top: 1px solid var(--ink-faint);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 4rem;
}

.network-left {
  flex-shrink: 0;
}

.network-left-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  max-width: 260px;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--ink-faint);
  padding: 0.55rem 1.25rem;
  transition: all 0.2s;
}
.cv-link:hover { background: var(--ink); color: var(--cream); }

.network-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ntag { border: 1px solid var(--ink-faint); padding: 0.4rem 1rem; font-size: 0.92rem; color: var(--ink-light); }

/* ====== COSA FACCIO ====== */

.sf-hero { padding: 5rem 3.5rem 4rem; border-bottom: 1px solid var(--ink-faint); }

.sf-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.38rem, 4.675vw, 3.825rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 2rem;
}

.sf-hero-sub {
  font-size: 1.1rem;
  color: var(--ink-light);
  line-height: 1.7;
  font-weight: 300;
}

.sf-rows { border-top: 1px solid var(--ink-faint); }

.sf-row {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 3rem;
  padding: 3.5rem 3.5rem;
  border-bottom: 1px solid var(--ink-faint);
  align-items: start;
}

/* Senza immagine il testo occupa anche la terza colonna. */
.sf-row:not(:has(.sf-row-img)) .sf-row-text { grid-column: 2 / -1; }

.sf-row-num { font-size: 0.92rem; color: var(--ink-light); padding-top: 0.3rem; }

.sf-row-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.sf-row-body { font-size: 1rem; color: var(--ink-light); line-height: 1.8; font-weight: 300; margin-bottom: 1rem; }
.sf-row-example { font-size: 0.9rem; color: var(--ink-light); font-style: italic; }

/* Il rapporto e' lo stesso della dimensione ab-card (700x500): l'immagine
   entra intera, il CSS non aggiunge un secondo ritaglio. Il rapporto e' dato
   dal padding e non da aspect-ratio, perche' ab_cover stampa l'immagine con
   height:100% inline: serve un'altezza certa su cui far cadere la percentuale. */
.sf-row-img {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 71.4285%;
}
.sf-row-img > img, .sf-row-img > .ph {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ====== PROGETTI ====== */

.pg-hero { padding: 5rem 3.5rem 4rem; border-bottom: 1px solid var(--ink-faint); }

.pg-hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.38rem, 4.675vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  color: var(--ink);
  margin-top: 1rem;
}

.case-list { border-top: 1px solid var(--ink-faint); }

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink-faint);
  min-height: 380px;
}

.case-info {
  padding: 4rem 3.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--ink-faint);
}

.case.is-reversed .case-info { order: 2; border-right: none; border-left: 1px solid var(--ink-faint); }
.case.is-reversed .case-img-col { order: 1; }

.case-client { font-size: 0.82rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }

.case-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.case-year { font-size: 0.88rem; color: var(--ink-light); margin-bottom: 1.5rem; }
.case-body { font-size: 0.98rem; color: rgba(13,43,38,0.65); line-height: 1.75; font-weight: 300; flex: 1; margin-bottom: 1.5rem; }

.case-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ctag { border: 1px solid var(--ink-faint); padding: 0.25rem 0.75rem; font-size: 0.82rem; color: var(--ink-light); }

.case-img-col { width: 100%; height: 100%; min-height: 380px; }

.case-img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  background-size: cover;
  background-position: center;
}

.other-clients { padding: 4rem 3.5rem; border-bottom: 1px solid var(--ink-faint); }
.other-clients-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin-bottom: 2rem; }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { border: 1px solid var(--ink-faint); padding: 0.4rem 1.1rem; font-size: 0.92rem; color: var(--ink-light); }

/* ====== CONTATTI ====== */

.ct-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - 72px);
}

.ct-left {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--ink-faint);
}

.ct-headline {
  font-family: var(--font-display);
  font-size: clamp(1.87rem, 3.4vw, 3.23rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.ct-sub { font-size: 1.05rem; color: var(--ink-light); line-height: 1.75; font-weight: 300; }

.ct-details { margin-top: auto; padding-top: 3rem; }

.ct-item { padding: 1.25rem 0; border-top: 1px solid var(--ink-faint); }
.ct-item:last-child { border-bottom: 1px solid var(--ink-faint); }
.ct-item label { display: block; font-size: 0.8rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 0.3rem; }
.ct-item a, .ct-item span { font-size: 1.02rem; color: var(--ink); text-decoration: none; }
.ct-item a:hover { text-decoration: underline; }

.ct-right {
  padding: 5rem 4rem;
  background: var(--cream-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ct-right h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); margin-bottom: 0.5rem; }
.ct-right p { font-size: 0.92rem; color: var(--ink-light); margin-bottom: 2.5rem; }

.form-field { margin-bottom: 1.5rem; }
.form-field label { display: block; font-size: 0.82rem; color: var(--ink-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.5rem; }
.form-field input, .form-field textarea {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--ink-faint);
  padding: 0.8rem 1rem;
  font-size: 1rem;
  color: var(--ink);
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--ink); }
.form-field textarea { height: 110px; resize: none; }

.form-checks { margin-bottom: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; }
.form-check { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; color: var(--ink-light); line-height: 1.4; cursor: pointer; }
.form-check input[type="checkbox"] { margin-top: 2px; accent-color: var(--ink); flex-shrink: 0; }

.form-submit {
  background: var(--ink);
  color: var(--cream);
  border: none;
  padding: 0.9rem 2rem;
  font-size: 1rem;
  font-weight: 400;
  cursor: pointer;
  font-family: var(--font-body);
  width: 100%;
  transition: background 0.2s;
}
.form-submit:hover { background: var(--ink-mid); }

/* ==================================================================
   AGGIUNTE WORDPRESS
   ================================================================== */

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.screen-reader-text:focus {
  position: static !important;
  width: auto; height: auto;
  clip-path: none;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--cream);
}

:where(a, button, input, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.admin-bar nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar nav { top: 46px; } }

.wp-caption, .gallery-caption, .alignwide, .alignfull { max-width: 100%; }
img { max-width: 100%; height: auto; }

/* messaggi form contatti */
.form-notice {
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--ink-faint);
  background: var(--cream);
}
.form-notice.is-error { border-color: #a33; color: #7a2222; }
.form-notice.is-success { border-color: var(--ink); }
.form-field .field-error { display: block; margin-top: 0.35rem; font-size: 0.85rem; color: #7a2222; }
.form-field input[aria-invalid="true"], .form-field textarea[aria-invalid="true"] { border-color: #a33; }
.form-honeypot { position: absolute; left: -9999px; }

/* stato vuoto lato editor */
.editor-empty {
  border: 1px dashed var(--ink-faint);
  padding: 2rem;
  font-size: 0.95rem;
  color: var(--ink-light);
  font-style: italic;
}

/* numero di colonne della striscia servizi, passato inline dal template.
   Va dichiarato prima delle media query, altrimenti le sovrascrive. */
.services-row { grid-template-columns: repeat(var(--service-cols, 5), 1fr); }

a.service-col { display: block; color: inherit; text-decoration: none; }
a.service-col:hover .service-col-name { text-decoration: underline; }

/* ==================================================================
   NAV MOBILE
   ================================================================== */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  margin: -0.5rem -0.5rem -0.5rem 0;
  cursor: pointer;
  color: var(--ink);
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.2s;
}
.nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ==================================================================
   RESPONSIVE
   Il prototipo non conteneva media query: questo livello e' nuovo.
   ================================================================== */

@media (max-width: 1080px) {
  nav, .hero, .manifesto, .projects, .services-bar, .home-cta, footer,
  .about-hero, .timeline, .about-quotes, .network, .sf-hero, .pg-hero,
  .other-clients { padding-left: 2rem; padding-right: 2rem; }
  .bio-text, .case-info { padding: 3rem 2rem; }
  .photo-quote-text, .inge-dark-text, .ct-left, .ct-right { padding: 3.5rem 2.5rem; }
  .nav-links { gap: 1.5rem; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .services-row { grid-template-columns: repeat(3, 1fr); }
  .service-col { border-bottom: 1px solid var(--ink-faint); }
}

/* Menu mobile: scatta a 1280px. La .nav-cta a livello nav viene nascosta e
   sostituita da una voce .nav-cta-mobile all'interno dell'ul del menu. */
@media (max-width: 1280px) {
  nav { flex-wrap: wrap; padding-top: 1rem; padding-bottom: 1rem; }
  .nav-toggle { display: block; order: 3; }
  .nav-cta { display: none; }
  .nav-links {
    order: 4;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    display: none;
    margin-top: 1rem;
    border-top: 1px solid var(--ink-faint);
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--ink-faint); }
  .nav-links a { display: block; padding: 0.9rem 0; opacity: 1; }
  .nav-cta-mobile { display: block; }
  .nav-cta-mobile a { font-weight: 500; }
}

@media (max-width: 860px) {
  .page { padding-top: 32px; }

  .hero { padding-top: 3rem; min-height: 0; }
  .hero-top { margin-bottom: 2.5rem; }
  .hero-sub { margin-bottom: 2.5rem; }
  .hero-bottom { flex-direction: column; align-items: flex-start; gap: 2rem; }

  .manifesto, .quotes-grid { grid-template-columns: 1fr; gap: 2rem; }
  .photo-quote, .inge-dark, .bio-block, .case, .ct-page { grid-template-columns: 1fr; }
  .photo-quote-img, .photo-quote { min-height: 0; }
  .photo-quote-img img, .inge-dark-img img, .bio-img img, .case-img-col img { height: 280px; }
  .photo-quote-img, .inge-dark-img, .bio-img, .case-img-col { min-height: 0; height: auto; }
  .bio-block.is-reversed .bio-text, .case.is-reversed .case-info { order: 0; }
  .bio-block.is-reversed .bio-img, .case.is-reversed .case-img-col { order: 0; }
  .case-info, .case.is-reversed .case-info { border-right: none; border-left: none; }
  .ct-left { border-right: none; border-bottom: 1px solid var(--ink-faint); }
  .ct-details { padding-top: 2rem; }

  .services-row { grid-template-columns: 1fr; }
  .service-col { padding-left: 0; border-right: none; }

  .sf-row { grid-template-columns: 1fr; gap: 1rem; padding: 2.5rem 2rem; }
  .tl-item { grid-template-columns: 1fr; gap: 0.5rem; }

  .home-cta, .projects-head, .services-bar-head { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .network { flex-direction: column; gap: 2rem; }

  footer { flex-direction: column; align-items: flex-start; gap: 1rem; }
}

.cookie-banner {
  position: fixed;
  left: 1.5rem;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 200;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: var(--dark-bg);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--dark-text);
  line-height: 1.6;
}

.cookie-banner-text a {
  color: var(--dark-text);
  text-decoration: underline;
}

.cookie-banner-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cookie-banner-btn {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--cream);
  border: none;
  padding: 0.65rem 1.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cookie-banner-btn:hover { background: var(--cream-dark); }

.cookie-banner-btn-ghost {
  background: transparent;
  color: var(--dark-text);
  border: 1px solid rgba(240,236,228,0.35);
}

.cookie-banner-btn-ghost:hover { background: rgba(240,236,228,0.1); }

@media (max-width: 520px) {
  .cookie-banner { left: 0.75rem; right: 0.75rem; bottom: 0.75rem; padding: 1.25rem; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-btn { flex: 1; }
}

@media (max-width: 520px) {
  nav, .hero, .manifesto, .projects, .services-bar, .home-cta, footer,
  .about-hero, .timeline, .about-quotes, .network, .sf-hero, .pg-hero,
  .other-clients { padding-left: 1.25rem; padding-right: 1.25rem; }
  .bio-text, .case-info, .sf-row { padding: 2rem 1.25rem; }
  .photo-quote-text, .inge-dark-text, .ct-left, .ct-right { padding: 2.5rem 1.25rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .quote-card, .quote-missing { padding: 1.5rem; }
  .nav-logo { font-size: 0.95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  nav, .nav-cta, .home-cta, .form-submit { display: none !important; }
  body { background: #fff; }
}