@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/fraunces-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/fraunces-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/inter-400-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(fonts/inter-400-latin.woff2) format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;}

/* ==========================================================================
   Giuseppina Guida — Psicologa Psicoterapeuta
   Foglio di stile unico. Mobile-first. Nessuna dipendenza esterna.
   ========================================================================== */

/* --- Token ---------------------------------------------------------------- */
:root {
  /* colori */
  --paper: #faf7f2;
  --paper-2: #f2ece2;
  --surface: #ffffff;
  --ink: #1b1917;
  --ink-2: #453f39;
  --muted: #6d665e;
  --line: #e3dbd0;
  --line-2: #d3c9ba;
  --green: #24463b;
  --green-d: #173028;
  --green-l: #3d6455;
  --accent: #2f5a4b;      /* verde medio: etichette, dettagli */
  --accent-l: #3d6455;
  --focus: #2f5a4b;

  /* tipografia */
  --serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* scala fluida */
  --step--1: clamp(0.83rem, 0.80rem + 0.14vw, 0.91rem);
  --step-0: clamp(1rem, 0.96rem + 0.20vw, 1.12rem);
  --step-1: clamp(1.19rem, 1.12rem + 0.35vw, 1.42rem);
  --step-2: clamp(1.41rem, 1.29rem + 0.60vw, 1.80rem);
  --step-3: clamp(1.68rem, 1.48rem + 1.00vw, 2.29rem);
  --step-4: clamp(2.00rem, 1.68rem + 1.58vw, 2.90rem);
  --step-5: clamp(2.38rem, 1.88rem + 2.48vw, 3.68rem);

  /* spazi */
  --gutter: clamp(1.25rem, 0.9rem + 1.8vw, 2.5rem);
  --section: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --measure: 68ch;
  --radius: 4px;
}

/* --- Reset ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

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

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  color: var(--ink);
}

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1.25rem;
  font-size: var(--step--1);
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

/* --- Impalcatura ---------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 48rem; }

.section { padding-block: var(--section); }
.section--tint { background: var(--paper-2); }
.section--dark,
.cta-band { background: var(--green-d); color: #f2ede4; }
.section--dark h2,
.section--dark h3,
.cta-band h2,
.cta-band h3 { color: #fff; }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}
.section--dark .eyebrow,
.cta-band .eyebrow { color: #a9c7b7; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* --- Bottoni -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.5em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  min-height: 44px;
  white-space: nowrap;
}
.btn svg { flex: none; }

.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-d); }

.btn--ghost {
  border-color: var(--line-2);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--green); background: rgba(36, 70, 59, 0.05); }

.btn--light {
  background: #fff;
  color: var(--green-d);
  border-color: var(--line-2);
}
.btn--light:hover { border-color: var(--green); }
.section--dark .btn--light,
.cta-band .btn--light { border-color: transparent; }

.btn--outline-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

/* link testuale con freccia */
.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--green);
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 0.2em;
  transition: color 0.18s ease, border-color 0.18s ease, gap 0.18s ease;
}
.arrow-link:hover { color: var(--accent); border-color: var(--accent); gap: 0.8em; }

/* --- Header --------------------------------------------------------------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  text-decoration: none;
  color: var(--ink);
}
.brand__mark {
  flex: none;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--green);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  color: var(--green);
}
.brand > span:last-child { min-width: 0; overflow: hidden; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.02rem;
  line-height: 1.1;
  letter-spacing: -0.01em;
  display: block;
  white-space: nowrap;
}
.brand__role {
  display: block;
  white-space: nowrap;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.15rem;
}

.nav { display: none; }
.header__cta { display: none; }

.burger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 0.55rem 0.85rem;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  min-height: 44px;
}
.burger__bars { display: block; width: 18px; height: 10px; position: relative; }
.burger__bars::before,
.burger__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.burger__bars::before { top: 0; }
.burger__bars::after { top: 8px; }
.burger[aria-expanded="true"] .burger__bars::before { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bars::after { transform: translateY(-4px) rotate(-45deg); }

/* pannello menu mobile */
.mobilenav {
  position: fixed;
  inset: 4.25rem 0 0;
  z-index: 55;
  background: var(--paper);
  padding: 1.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.mobilenav[hidden] { display: none; }
.mobilenav ul { list-style: none; margin: 0; padding: 0; }
.mobilenav li + li { border-top: 1px solid var(--line); }
.mobilenav ul a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 0;
  font-family: var(--serif);
  font-size: var(--step-1);
  text-decoration: none;
  color: var(--ink);
}
.mobilenav ul a[aria-current="page"] { color: var(--accent); }
.mobilenav ul a::after {
  content: "";
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--line-2);
  border-right: 1.5px solid var(--line-2);
  transform: rotate(45deg);
  flex: none;
}
.mobilenav__foot {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.mobilenav__foot .btn { margin-top: 1rem; width: 100%; justify-content: center; }

body.is-locked { overflow: hidden; }

@media (max-width: 26em) {
  .brand__mark { width: 2rem; height: 2rem; font-size: 0.75rem; }
  .brand__name { font-size: 0.94rem; }
  .brand__role { font-size: 0.56rem; letter-spacing: 0.08em; }
  .burger { padding: 0.5rem 0.7rem; font-size: 0.66rem; letter-spacing: 0.08em; }
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(27rem, 76vh, 44rem);
  padding-block: clamp(2.5rem, 2rem + 4vw, 5rem);
  overflow: hidden;
  background: var(--paper-2);
}

/* la fotografia sta dietro a tutto */
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 62%;
}
/* velo appena accennato: stacca il pannello dalla foto senza spegnerla */
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(95deg, rgba(20, 26, 22, 0.32) 0%, rgba(20, 26, 22, 0.08) 45%, rgba(20, 26, 22, 0) 70%);
}

/* il riquadro dedicato: carta semi-trasparente, testo scuro come nel resto
   del sito. La leggibilità non dipende da com'è la foto sotto. */
.hero__panel {
  max-width: 37rem;
  padding: clamp(1.5rem, 1.1rem + 1.8vw, 2.6rem);
  background: rgba(250, 247, 242, 0.93);
  backdrop-filter: blur(10px) saturate(1.15);
  -webkit-backdrop-filter: blur(10px) saturate(1.15);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  box-shadow: 0 20px 55px rgba(20, 18, 16, 0.22);
}

.hero h1 {
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.35em;
  max-width: 14ch;
}
.hero h1 .hero__sub {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  font-style: italic;
  letter-spacing: 0.01em;
  color: var(--green);
  margin-top: 0.45em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}
/* sul pannello traslucido il bottone secondario ha bisogno di un fondo pieno */
.hero__actions .btn--ghost { background: #fff; border-color: var(--line-2); }
.hero__actions .btn--ghost:hover { border-color: var(--green); background: #fff; }

.hero__meta {
  margin-top: 1.75rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-2);
  font-size: var(--step--1);
  color: var(--ink-2);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.5rem;
}

@media (max-width: 30em) {
  .hero { min-height: 0; }
  .hero__bg::after {
    background: linear-gradient(180deg, rgba(20, 26, 22, 0.2), rgba(20, 26, 22, 0.05));
  }
}

/* --- Intestazione pagine interne ------------------------------------------ */
.pagehead {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.pagehead h1 {
  font-size: var(--step-4);
  font-weight: 400;
  max-width: 22ch;
  margin: 0;
}
.crumbs {
  font-size: var(--step--1);
  color: var(--muted);
  margin: 0 0 1rem;
}
.crumbs a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); }
.crumbs a:hover { color: var(--accent); }

/* --- Prosa ---------------------------------------------------------------- */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: var(--step-3);
  font-weight: 400;
  margin-top: 2.2em;
  margin-bottom: 0.45em;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 {
  font-size: var(--step-1);
  font-weight: 500;
  margin-top: 1.9em;
  margin-bottom: 0.4em;
  color: var(--green);
}
.prose h3 strong { font-weight: 500; }
.prose h3 + p,
.prose h3 + ul,
.prose h2 + p { margin-top: 0.6em; }
.prose p { color: var(--ink-2); }
.prose a {
  color: var(--green);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}
.prose a:hover { color: var(--accent); text-decoration-color: currentColor; }
.prose u { text-decoration: none; }

.prose ul {
  list-style: none;
  margin: 1.3em 0;
  padding: 0;
  display: grid;
  gap: 0.55em;
}
.prose ul li {
  position: relative;
  padding-left: 1.6em;
  color: var(--ink-2);
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 0.15em;
  top: 0.72em;
  width: 0.5em;
  height: 1px;
  background: var(--accent);
}

/* elenco "a tag" per liste di parole singole (sintomi, ambiti) */
.prose ul.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.prose ul.tags li {
  padding: 0.42em 0.9em;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: var(--step--1);
  color: var(--ink-2);
}
.prose ul.tags li::before { display: none; }

/* lista lunga del curriculum */
.prose ul.cv {
  gap: 0;
  border-top: 1px solid var(--line);
}
.prose ul.cv li {
  padding: 0.85em 0 0.85em 1.6em;
  border-bottom: 1px solid var(--line);
  font-size: var(--step--1);
  line-height: 1.55;
}
.prose ul.cv li::before { top: 1.45em; }

.prose .lead {
  font-family: var(--serif);
  font-size: var(--step-2);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 0.9em;
}
.prose .lead strong { font-weight: 400; }

/* figura con didascalia (Pierre Janet) */
.figure {
  margin: 2.5rem 0;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  gap: 1.25rem;
  align-items: center;
  grid-template-columns: 1fr;
  max-width: var(--measure);
}
.figure img { width: 100%; max-width: 220px; margin-inline: auto; }
.figure figcaption { text-align: center; }
.figure .figure__name {
  font-family: var(--serif);
  font-size: var(--step-1);
  display: block;
  margin-bottom: 0.2em;
}
.figure .figure__role {
  font-size: var(--step--1);
  font-style: italic;
  color: var(--muted);
}

/* --- Griglia percorsi (home) ---------------------------------------------- */
.cards {
  display: grid;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}
.card {
  background: var(--paper);
  padding: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}
.card__title {
  font-family: var(--serif);
  font-size: var(--step-2);
  font-weight: 400;
  letter-spacing: -0.015em;
  margin: 0;
  text-transform: none;
}
.card__desc {
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
}
.card__go {
  margin-top: auto;
  padding-top: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s ease, color 0.2s ease;
}
.card:hover { background: var(--surface); }
.card:hover .card__go { gap: 0.85em; color: var(--accent); }

/* --- Elenco aree di intervento -------------------------------------------- */
.areas { display: grid; gap: 1px; background: var(--line); }
.area {
  background: var(--paper-2);
  padding: 1.4rem 0;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.area::before {
  content: "";
  flex: none;
  width: 1.25rem;
  height: 1px;
  background: var(--accent);
  transform: translateY(-0.35em);
}
.area__label {
  font-family: var(--serif);
  font-size: var(--step-1);
  font-weight: 400;
  margin: 0;
}

/* --- Blocco contatti ------------------------------------------------------ */
.contact-grid {
  display: grid;
  gap: 2.5rem;
}
.contact__name {
  font-family: var(--serif);
  font-size: var(--step-4);
  font-weight: 400;
  line-height: 1.05;
  margin: 0 0 0.3em;
}
.contact__role { color: rgba(242, 237, 228, 0.78); margin-bottom: 2rem; }
.contact__role a { color: #d4e4dc; text-underline-offset: 0.2em; }

.deflist { display: grid; gap: 1.75rem; }
.deflist dt {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #a9c7b7;
  margin-bottom: 0.6rem;
}
.deflist dd { margin: 0; color: rgba(242, 237, 228, 0.9); }
.deflist dd p { margin-bottom: 0.25em; }
/* indirizzo: un unico link che porta alla mappa */
.addr {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0.9rem 1.1rem;
  margin: 0 0 0.75rem -1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.addr:hover { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.05); }
.addr__lines { display: block; line-height: 1.5; }
.addr__go {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #d4e4dc;
}
.addr__transit { font-size: var(--step--1); color: rgba(242, 237, 228, 0.72); margin: 0; }

/* telefono: solo il numero, cliccabile */
.tel-link {
  display: inline-block;
  font-family: var(--serif);
  font-size: var(--step-3);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.08em;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.tel-link:hover { color: #d9e6dd; border-color: #d9e6dd; }

/* sulla pagina Contatti, che è su carta chiara */
.contact-page .tel-link { color: var(--green); border-color: var(--line-2); }
.contact-page .tel-link:hover { color: var(--accent); border-color: var(--accent); }

/* --- Footer --------------------------------------------------------------- */
.footer {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding-block: 3rem 2.5rem;
  font-size: var(--step--1);
  color: var(--muted);
}
.footer__grid { display: grid; gap: 2rem; }
.footer__brand { display: flex; align-items: center; gap: 0.8rem; }
.footer__name { display: block; font-family: var(--serif); font-size: var(--step-1); color: var(--ink); }
.footer__role { display: block; font-size: var(--step--1); color: var(--muted); }
.footer h2 {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
}

/* --- Barra chiamata fissa (solo mobile) ----------------------------------- */
.callbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  gap: 1px;
  background: var(--line-2);
  border-top: 1px solid var(--line-2);
  box-shadow: 0 -8px 24px rgba(27, 25, 23, 0.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 54px;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.callbar a:first-child { background: var(--green); color: #fff; }
.callbar a:last-child { background: var(--surface); color: var(--green-d); }
body { padding-bottom: 54px; }

/* --- Pagina Contatti --- */
.contact-page {
  display: grid;
  gap: 2.5rem;
  max-width: var(--measure);
}
.contact-page h2 {
  font-size: var(--step-1);
  font-weight: 500;
  color: var(--green);
  margin-bottom: 0.75rem;
}
.contact-page .addr {
  color: var(--ink);
  border-color: var(--line-2);
  margin-left: 0;
  background: var(--surface);
}
.contact-page .addr:hover { border-color: var(--green); background: var(--surface); }
.contact-page .addr__go { color: var(--green); }
.contact-page .addr__transit { color: var(--muted); }
@media (min-width: 40em) {
  .contact-page { grid-template-columns: 1.3fr 1fr; gap: 3rem; max-width: none; }
}

/* --- Banner consenso analytics --- */
.consent {
  position: fixed;
  left: 0.75rem;
  right: 0.75rem;
  bottom: calc(54px + 0.75rem);
  z-index: 70;
  max-width: 23rem;
  margin-inline: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(27, 25, 23, 0.16);
  padding: 0.95rem 1.05rem 0.9rem;
  font-size: 0.82rem;
  line-height: 1.45;
}
.consent p { margin: 0 0 0.8rem; color: var(--ink-2); }
.consent a { color: var(--green); text-underline-offset: 0.16em; }
.consent__actions { display: flex; gap: 0.5rem; justify-content: flex-end; }
.consent .btn { min-height: 36px; padding: 0.45em 0.95em; font-size: 0.78rem; }
@media (min-width: 62em) {
  .consent { bottom: 1.25rem; left: auto; right: 1.25rem; margin-inline: 0; }
}

/* --- Post del blog -------------------------------------------------------- */
.post__media { margin-bottom: 2.5rem; }
.post__media img { width: 100%; }

/* --- 404 ------------------------------------------------------------------ */
.notfound { padding-block: clamp(4rem, 14vh, 9rem); text-align: center; }
.notfound h1 { font-size: var(--step-4); font-weight: 400; }
.notfound p { color: var(--muted); max-width: 42ch; margin-inline: auto; }
.notfound .btn { margin-top: 2rem; }

/* ==========================================================================
   Breakpoint
   ========================================================================== */

@media (min-width: 40em) {
  .figure {
    grid-template-columns: 200px 1fr;
    padding: 1.75rem 2rem;
  }
  .figure img { max-width: none; }
  .figure figcaption { text-align: left; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 1px; }
  .card { padding: 2rem 1.75rem; }
  .card:first-child { padding-left: 0; }
  .card:last-child { padding-right: 0; }
  .areas { grid-template-columns: repeat(3, 1fr); }
  .area { padding: 1.5rem; }
  .area:first-child { padding-left: 0; }
  .area:last-child { padding-right: 0; }
  .footer__grid { grid-template-columns: 1fr auto; gap: 2.5rem 4rem; align-items: start; }
  .footer nav ul { grid-template-columns: repeat(2, auto); column-gap: 2.5rem; }
}

@media (min-width: 56em) {
  .contact-grid { grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
  .deflist { gap: 2.25rem; }
}

/* da laptop in su: menu orizzontale, niente barra fissa */
@media (min-width: 72em) {
  .burger { display: none; }
  .mobilenav { display: none !important; }
  .callbar { display: none; }
  body { padding-bottom: 0; }

  /* da qui in su c'è spazio: il marchio non deve più restringersi */
  .brand { flex: 0 0 auto; }
  .brand > span:last-child { overflow: visible; }

  .nav { display: block; }
  .nav ul {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .nav a {
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    text-decoration: none;
    color: var(--ink-2);
    padding-block: 0.4rem;
    border-bottom: 1.5px solid transparent;
    transition: color 0.18s ease, border-color 0.18s ease;
    white-space: nowrap;
  }
  .nav a:hover { color: var(--ink); border-color: var(--line-2); }
  .nav a[aria-current="page"] { color: var(--green); border-color: var(--accent); }

  .header__inner { min-height: 4.75rem; gap: 2rem; }
  .brand__mark { width: 2.5rem; height: 2.5rem; font-size: 0.9rem; }
  .brand__name { font-size: 1.12rem; }

  .hero__actions { gap: 1rem; }
  .prose ul.cv { columns: 1; }
}

@media (min-width: 82em) {
  .nav ul { gap: 1.75rem; }
  .header__cta { display: inline-flex; }
}

@media (min-width: 92em) {
  .nav ul { gap: 2.25rem; }
}

/* --- Stampa --------------------------------------------------------------- */
@media print {
  .header, .callbar, .mobilenav, .hero__actions, .cta-band, .footer__legal { display: none !important; }
  body { background: #fff; color: #000; padding: 0; font-size: 11pt; }
  .section, .pagehead { padding-block: 1rem; }
  a { text-decoration: underline; }
}
