/* =====================================================================
   Dott.ssa Chiara Usai — site.css
   Brand: the blue/teal wave logo. Serif (Lora) for headings, Nunito Sans
   for text. Mobile first; 16px gutters; no horizontal scroll.
   ===================================================================== */

:root {
  --navy:      #0B2D5B;
  --blue:      #005077;
  --teal:      #008193;
  --teal-dark: #006886;
  --teal-tint: #E2F1F5;
  --teal-pale: #F2F8FA;
  --sand:      #F6F7F5;
  --ink:       #172433;
  --ink-soft:  #4B5B6B;
  --ink-mute:  #6F7D8C;
  --line:      #DCE5EA;
  --white:     #FFFFFF;
  --amber:     #E09900;
  --ok:        #1B7A43; --ok-bg: #E7F4EC;
  --err:       #A32820; --err-bg: #FCEBEA;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans:  'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
  --gutter: 16px;
  --r: 14px;
  --r-sm: 8px;
  --shadow: 0 10px 30px rgba(11, 45, 91, .10);
  --shadow-sm: 0 2px 10px rgba(11, 45, 91, .08);
  --header-h: 84px;
}
@media (min-width: 700px)  { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}
body.scroll-locked { position: fixed; left: 0; right: var(--sbw, 0); width: auto; overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--blue); }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--blue); margin: 0 0 .6em; letter-spacing: -.005em; }
h1 { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.15rem); }
h3 { font-size: clamp(1.2rem, 1.05rem + .7vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 6px; z-index: 100; }
.skip-link:focus { left: 8px; }

.eyebrow { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--teal); margin: 0 0 .6rem; }
.eyebrow--light { color: rgba(255,255,255,.85); }
.eyebrow a { color: inherit; text-decoration: none; }
.eyebrow a:hover { text-decoration: underline; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .8rem 1.45rem; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(0,129,147,.28); }
.btn--primary:hover { background: var(--teal-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--teal-dark); border-color: var(--teal); }
.btn--ghost:hover { background: var(--teal-tint); color: var(--blue); }
.btn--white { background: #fff; color: var(--teal-dark); box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.btn--white:hover { background: var(--teal-tint); color: var(--blue); }
.btn--ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.6); }
.btn--ghost-light:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn--lg { padding: .95rem 1.8rem; font-size: 1.05rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* ---------------- header ---------------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 4px 22px rgba(11,45,91,.10); }

.topbar { background: var(--teal); color: #fff; font-size: .86rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 34px; }
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar__sep { margin-inline: .5rem; opacity: .7; }
.topbar__social { display: flex; gap: .35rem; }
.topbar__social a { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--teal); }
.topbar__social svg { width: 13px; height: 13px; }
.topbar__social a:hover { background: var(--teal-tint); color: var(--blue); text-decoration: none; }
@media (max-width: 480px) { .topbar__contacts a:first-child { display: none; } .topbar__contacts .topbar__sep { display: none; } }

.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand__img { width: 220px; height: auto; }
@media (min-width: 700px) { .brand__img { width: 320px; } .site-header__inner { min-height: var(--header-h); } }
.brand__name { font-family: var(--serif); font-size: 1.3rem; color: var(--navy); font-weight: 700; }

.nav-toggle { display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; background: var(--teal-tint); border-radius: 12px; cursor: pointer; position: relative; z-index: 60; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span { position: relative; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__link { display: flex; align-items: center; gap: .35rem; text-decoration: none; color: var(--blue); font-weight: 700; }
.nav__link svg { width: 13px; height: 9px; flex: none; transition: transform .2s ease; }
.nav__item--has-sub:hover > .nav__link svg, .nav__item--has-sub:focus-within > .nav__link svg { transform: rotate(180deg); }
.nav__sub { list-style: none; margin: 0; padding: 0; }
.nav__sub a { text-decoration: none; color: var(--ink); }

/* Mobile drawer (default) */
@media (max-width: 1099px) {
  .nav { position: fixed; inset: 0; z-index: 55; background: #fff; display: none; flex-direction: column; overflow: auto; padding: 5.5rem var(--gutter) 2rem; }
  .nav.is-open { display: flex; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: .95rem 0; font-size: 1.1rem; }
  .nav__item--has-sub .nav__link svg { margin-left: auto; }
  .nav__sub { padding: 0 0 .8rem .6rem; }
  .nav__sub a { display: block; padding: .5rem 0; font-size: 1rem; }
  .nav__item.is-active > .nav__link { color: var(--teal); }
}

/* Desktop */
@media (min-width: 1100px) {
  .nav-toggle { display: none; }
  .nav { display: flex; align-items: center; gap: 1.2rem; }
  .nav__list { display: flex; align-items: center; gap: .2rem; }
  .nav__item { position: relative; }
  /* Logo and labels scale continuously with the viewport: no breakpoint step
     where the bar suddenly stops fitting (it did between 1280 and ~1400). */
  .brand__img { width: clamp(240px, 22vw, 320px); }
  .nav__link { padding: .55rem clamp(.4rem, .05rem + .5vw, .75rem); border-radius: 8px; font-size: clamp(.86rem, .5rem + .33vw, .95rem); white-space: nowrap; }
  .site-header__inner { flex-wrap: nowrap; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .nav { flex: 0 0 auto; }
  .nav__link:hover, .nav__item.is-active > .nav__link { background: var(--teal-tint); color: var(--blue); }
  .nav__item.is-active > .nav__link { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 8px 8px 0 0; }
  .nav__sub {
    position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 12px;
    box-shadow: var(--shadow); padding: .5rem; opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
  }
  /* No gap between trigger and panel: the padding above IS the gap. */
  .nav__item--has-sub:hover .nav__sub, .nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
  .nav__sub a { display: block; padding: .55rem .8rem; border-radius: 8px; font-size: .92rem; }
  .nav__sub a:hover, .nav__sub a[aria-current="page"] { background: var(--teal-pale); color: var(--blue); }
}

/* ---------------- hero (home) ---------------- */
.hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--navy) 0%, var(--blue) 45%, var(--teal) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 35%, rgba(0,0,0,.22) 100%); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -10%; bottom: -30%; width: 55vw; max-width: 720px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.14), transparent 65%); pointer-events: none; }
.hero__inner { display: grid; gap: 1.5rem; padding-top: 2.6rem; position: relative; z-index: 1; }
.hero__title, .hero__role, .hero__lead { text-shadow: 0 2px 6px rgba(0,0,0,.35), 0 10px 30px rgba(0,0,0,.25); }
.hero__title { color: #fff; font-size: clamp(2.1rem, 1.4rem + 3.2vw, 3.4rem); margin-bottom: 1rem; text-wrap: balance; }
.hero__role { display: block; font-family: var(--sans); font-weight: 400; font-size: clamp(1.05rem, .9rem + .8vw, 1.4rem); color: rgba(255,255,255,.9); margin-top: .35rem; letter-spacing: .01em; }
.hero__lead { font-size: 1.05rem; color: rgba(255,255,255,.92); max-width: 56ch; margin-bottom: 1.5rem; }
.hero__lead p { margin: 0; }
.hero__text { padding-bottom: 2.4rem; }
.hero__media { align-self: end; justify-self: center; width: min(62%, 290px); margin-bottom: -2px; }
/* Inert on purpose: the portrait is decoration, not a control. Without this a
   drag lifts a ghost of it, a double-click in the headline selects it, and on
   a phone a long press offers "save image" over the hero. */
.hero__img { width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(0,0,0,.35));
  pointer-events: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; }
@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: end; gap: 2rem; padding-top: 4rem; min-height: 560px; }
  .hero__text { padding-bottom: 4rem; }
  .hero__media { width: 100%; max-width: 400px; justify-self: end; }
}

/* ---------------- page hero (inner pages) ---------------- */
.page-hero { position: relative; color: #fff; background: linear-gradient(120deg, var(--navy), var(--teal-dark)); overflow: hidden; }
.page-hero--img { min-height: 320px; display: flex; align-items: flex-end; }
.page-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero--img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(170deg, rgba(11,45,91,.42) 0%, rgba(11,45,91,.62) 45%, rgba(7,30,60,.88) 100%); }
.page-hero h1, .page-hero__sub, .page-hero .eyebrow { text-shadow: 0 2px 6px rgba(0,0,0,.45), 0 8px 28px rgba(0,0,0,.35); }
.page-hero__body { position: relative; z-index: 1; padding-block: 2.4rem 2.2rem; }
.page-hero h1 { color: #fff; margin-bottom: .4rem; text-wrap: balance; }
.page-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,.9); max-width: 62ch; margin: 0; }
.page-hero--plain .page-hero__body { padding-block: 2.6rem 2.2rem; }
@media (min-width: 900px) { .page-hero--img { min-height: 420px; } .page-hero__body { padding-block: 3.2rem 2.8rem; } }

/* ---------------- sections ---------------- */
.section { padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); }
.section--tint { background: var(--sand); }
.section--first { padding-top: clamp(1.8rem, 1.4rem + 2vw, 3rem); }
.section__head { margin-bottom: 1.8rem; max-width: 760px; }
.section__head h2 { margin-bottom: .3rem; }
.section__head--row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: .5rem 2rem; }
.section__aside { margin: 0; color: var(--ink-soft); }

/* ---------------- cards ---------------- */
.card-grid { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .card-grid--3, .card-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .card-grid--3 { grid-template-columns: repeat(3, 1fr); } .card-grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.card--link { text-decoration: none; color: inherit; }
.card--link:hover, .card:has(.card__title a:hover) { transform: translateY(-3px); box-shadow: var(--shadow); }
.card--plain { background: var(--teal-pale); border-color: transparent; }
.card__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--teal-tint); display: block; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card--link:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.25rem; margin-bottom: .45rem; }
.card__title a { color: inherit; text-decoration: none; }
.card__title a:hover { color: var(--teal); }
.card__text { color: var(--ink-soft); font-size: .97rem; margin-bottom: .9rem; }
.card__more { margin-top: auto; font-weight: 700; color: var(--teal); font-size: .95rem; }
.card__more::after { content: " →"; }
.card--plain .card__title { color: var(--blue); }

/* ---------------- topics (Professione / Benessere) ---------------- */
.topic-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .topic-grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.topic { background: linear-gradient(160deg, var(--teal-dark), var(--blue)); color: #fff; border-radius: var(--r); padding: 1.8rem 1.6rem 1.6rem; box-shadow: var(--shadow-sm); }
.topic__title { color: #fff; font-weight: 500; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); margin-bottom: .35rem; }
.topic__sub { color: rgba(255,255,255,.88); font-size: 1.05rem; margin-bottom: 1.1rem; }
.topic__more summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--teal-dark); font-weight: 700; font-size: .92rem; padding: .6rem 1.05rem; border-radius: 999px; transition: background-color .2s ease; }
.topic__more summary::-webkit-details-marker { display: none; }
.topic__more summary:hover { background: var(--teal-tint); }
.topic__more summary svg { transition: transform .2s ease; }
.topic__more[open] summary svg { transform: rotate(180deg); }
.topic__body { margin-top: 1.1rem; font-size: .98rem; }
.topic__link { display: inline-block; margin-top: 1rem; color: #fff; font-size: .92rem; }
.topic__link:hover { color: #fff; text-decoration-thickness: 2px; }
.prose--light { color: rgba(255,255,255,.95); }
.prose--light h2, .prose--light h3 { color: #fff; font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin-top: 1.4rem; }
.prose--light a { color: #fff; }

/* ---------------- gallery + lightbox ---------------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.2rem; } }
.gallery__item { padding: 0; border: 0; background: var(--teal-tint); border-radius: var(--r); overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 4; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }

/* The 2026 studio mosaic: portrait | two landscapes stacked | portrait, held
   together by a hairline seam instead of a gutter, with the rounding moved to
   the outside of the block as a whole. Placement is explicit because auto-flow
   puts the second landscape BESIDE the first, not under it.

   The desktop column ratio is not a round number on purpose. 1 : 1.12 : 1 is
   what makes a 2:3 portrait spanning both rows and a 3:2 landscape spanning
   one meet at their own aspect ratios, so object-fit has well under a percent
   to crop away and the four photos keep the framing the photographer gave
   them. Change the seam and the ratio drifts (by a rounding error, not enough
   to see); change the photos' shapes and the template drops the modifier. */
.gallery--mosaic { gap: 3px; border-radius: var(--r); overflow: hidden; }
.gallery--mosaic .gallery__item { border-radius: 0; }
.gallery--mosaic .gallery__item--v { aspect-ratio: 2 / 3; }
.gallery--mosaic .gallery__item--h { aspect-ratio: 3 / 2; }
.gallery--mosaic .gallery__item:nth-child(1) { grid-area: 1 / 1 / 2 / 2; }
.gallery--mosaic .gallery__item:nth-child(4) { grid-area: 1 / 2 / 2 / 3; }
.gallery--mosaic .gallery__item:nth-child(2) { grid-area: 2 / 1 / 3 / 3; }
.gallery--mosaic .gallery__item:nth-child(3) { grid-area: 3 / 1 / 4 / 3; }
@media (min-width: 700px) {
  .gallery--mosaic { grid-template-columns: 1fr 1.12fr 1fr; gap: 4px; }
  .gallery--mosaic .gallery__item--v { aspect-ratio: auto; }
  .gallery--mosaic .gallery__item:nth-child(1) { grid-area: 1 / 1 / 3 / 2; }
  .gallery--mosaic .gallery__item:nth-child(2) { grid-area: 1 / 2 / 2 / 3; }
  .gallery--mosaic .gallery__item:nth-child(3) { grid-area: 2 / 2 / 3 / 3; }
  .gallery--mosaic .gallery__item:nth-child(4) { grid-area: 1 / 3 / 3 / 4; }
}

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(7, 22, 43, .92); }
.lightbox img { position: absolute; inset: 0; margin: auto; max-width: min(92vw, 1100px); max-height: 86vh; width: auto; height: auto; object-fit: contain; border-radius: 8px; transition: opacity .2s ease; }
.lightbox img.is-loading { opacity: 0; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox__close { top: 14px; right: 14px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 2.4rem; }
.lightbox__nav--prev { left: 10px; } .lightbox__nav--next { right: 10px; }
.lightbox__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: .9rem; margin: 0; }

/* ---------------- prose ---------------- */
.prose { font-size: 1.0625rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin-top: 2rem; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.8rem); }
.prose h3 { margin-top: 1.7rem; font-size: 1.25rem; }
.prose h4 { margin-top: 1.4rem; font-size: 1.08rem; color: var(--teal-dark); }
.prose h2 + h3, .prose h3 + h4 { margin-top: .8rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.1em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--teal); }
.prose blockquote { margin: 1.5rem 0; padding: .8rem 1.2rem; border-left: 4px solid var(--teal); background: var(--teal-pale); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-soft); font-size: .98rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
.prose img { border-radius: var(--r); margin: 1.2rem 0; }
.prose strong { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; font-size: .95rem; margin: 1.2rem 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.prose th { background: var(--teal-pale); color: var(--blue); }
.prose code { background: var(--sand); padding: .1em .35em; border-radius: 4px; font-size: .9em; }
.prose--lead, .prose--lead p { font-size: 1.15rem; color: var(--ink-soft); }
.prose--lead p strong { color: var(--ink); font-weight: 700; }
.prose--compact { font-size: .98rem; }
.prose--compact h2 { font-size: 1.3rem; }
.prose--compact h3 { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; color: var(--teal-dark); }
.prose--legal h2 { font-size: 1.3rem; }
.prose--legal h3 { font-size: 1.1rem; }
.legal-updated { margin-top: 2rem; color: var(--ink-mute); font-size: .9rem; }

/* ---------------- split layout + aside ---------------- */
.split { display: grid; gap: 2.4rem; }
@media (min-width: 980px) { .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 3.5rem; align-items: start; } }
.aside { display: grid; gap: 1.2rem; }
.aside__box { background: var(--sand); border-radius: var(--r); padding: 1.3rem 1.4rem; }
.aside__box--accent { background: var(--teal-pale); border: 1px solid var(--teal-tint); }
.aside__box--cta { background: linear-gradient(160deg, var(--blue), var(--teal)); color: #fff; }
.aside__box--cta .aside__title, .aside__box--cta a:not(.btn) { color: #fff; }
.aside__box--cta .btn { margin-top: .4rem; background: #fff; color: var(--teal-dark); box-shadow: none; }
.aside__box--cta p { color: rgba(255,255,255,.92); font-size: .96rem; }
.aside__title { font-size: 1.1rem; margin-bottom: .6rem; }
.aside__lead { font-size: .93rem; color: var(--ink-soft); margin-bottom: .7rem; }
.aside__list { list-style: none; margin: 0; padding: 0; }
.aside__list li { padding: .45rem 0; border-top: 1px solid rgba(11,45,91,.08); font-size: .97rem; }
.aside__list li:first-child { border-top: 0; }
.aside__list a { text-decoration: none; color: var(--ink); }
.aside__list a:hover { color: var(--teal); }
.aside__list li.is-current span { font-weight: 700; color: var(--teal-dark); }
.aside__box p { margin-bottom: .6rem; }

/* ---------------- about ---------------- */
.about { max-width: 900px; margin-inline: auto; }
.about::after { content: ""; display: block; clear: both; }
.about__portrait { margin: 0 auto 1.6rem; width: min(100%, 280px); display: grid; gap: .9rem; justify-items: center; text-align: center;
  background: var(--teal-pale); border: 1px solid var(--teal-tint); border-radius: var(--r); padding: 1.3rem 1.2rem 1.4rem; }
.about__portrait img { width: 190px; height: 190px; object-fit: cover; border-radius: 50%; border: 8px solid #fff; box-shadow: var(--shadow); }
.about__portrait figcaption { display: grid; gap: .1rem; line-height: 1.3; }
.about__portrait figcaption strong { font-family: var(--serif); color: var(--blue); font-size: 1.1rem; }
.about__portrait figcaption span { color: var(--ink-soft); font-size: .92rem; }
.about__portrait .btn { width: 100%; }
@media (min-width: 760px) { .about__portrait { float: right; width: 300px; margin: .3rem 0 1.2rem 2.4rem; } }

/* ---------------- blog ---------------- */
.post-meta { color: var(--ink-mute); font-size: .88rem; margin-bottom: .6rem; }
.post h1 { margin-bottom: .4rem; }
.post__cover { margin: 1.4rem 0 1.8rem; border-radius: var(--r); overflow: hidden; }
.pager { display: grid; gap: .8rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .pager { grid-template-columns: 1fr 1fr; } }
.pager a { text-decoration: none; padding: .9rem 1rem; border-radius: var(--r-sm); background: var(--sand); color: var(--ink); display: grid; gap: .2rem; }
.pager a:hover { background: var(--teal-pale); }
.pager__next { text-align: right; }
.pager__label { font-size: .8rem; color: var(--teal); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.pager__title { font-family: var(--serif); font-weight: 600; }
.pagination { display: flex; gap: .4rem; justify-content: center; margin-top: 2rem; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding-inline: .6rem; border-radius: 999px; text-decoration: none; font-weight: 700; }
.pagination a { background: var(--sand); color: var(--blue); }
.pagination .is-current { background: var(--teal); color: #fff; }
.empty { text-align: center; color: var(--ink-soft); padding: 2rem; background: var(--sand); border-radius: var(--r); }

/* ---------------- contact CTA (form on every page) ---------------- */
.contact-cta { background: var(--teal-pale); padding-block: clamp(2.6rem, 2rem + 3vw, 4.5rem); border-top: 1px solid var(--teal-tint); }
.contact-cta__grid { display: grid; gap: 1.8rem; }
@media (min-width: 980px) { .contact-cta__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3.5rem; align-items: start; } }
.contact-cta__intro h2 { margin-bottom: 1rem; }
.contact-cta__alt { color: var(--ink-soft); }
.contact-cta__note { color: var(--ink-mute); font-size: .95rem; }
.contact-cta__form { background: #fff; border-radius: var(--r); padding: 1.4rem; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
@media (min-width: 640px) { .contact-cta__form { padding: 1.8rem 2rem; } }
.contact-cta--compact { background: transparent; border: 0; padding: 0; }
.contact-cta--compact .contact-cta__grid { grid-template-columns: 1fr; gap: 1rem; }
.contact-cta--compact .contact-cta__intro h2 { font-size: 1.4rem; margin-bottom: .2rem; }

/* ---------------- forms ---------------- */
.form__row { display: grid; gap: 0 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { margin-bottom: 1rem; }
.field__label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: .35rem; color: var(--ink); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid #C6D3DB; border-radius: var(--r-sm); font: inherit; color: var(--ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,129,147,.18); }
.field textarea { resize: vertical; min-height: 130px; }
.field small { display: block; color: var(--ink-mute); font-size: .82rem; margin-top: .3rem; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .92rem; color: var(--ink-soft); }
.field--check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--teal); }
.field--captcha__row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.field--captcha input { max-width: 120px; flex: none; }
.field--captcha__row small { margin: 0; flex: 1 1 220px; }
.btn--block { width: 100%; }
.req { color: var(--err); }
.alert { padding: .9rem 1.1rem; border-radius: var(--r-sm); margin-bottom: 1rem; font-size: .97rem; }
.alert ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.alert--ok { background: var(--ok-bg); color: var(--ok); border: 1px solid #BFE3CB; font-weight: 600; }
.alert--err { background: var(--err-bg); color: var(--err); border: 1px solid #F3C4C0; }

/* ---------------- contact page ---------------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; } }
.contact-info__title { font-size: 1.4rem; }
.info-list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; }
.info { display: grid; grid-template-columns: 44px 1fr; gap: .9rem; align-items: start; }
.info__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--teal-tint); color: var(--teal-dark); display: grid; place-items: center; }
.info__icon svg { width: 22px; height: 22px; }
.info__label { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-mute); margin: 0 0 .1rem; font-weight: 700; }
.info__value { margin: 0; font-size: 1.05rem; }
.info__action { display: inline-flex; align-items: center; gap: .4rem; margin-top: .3rem; font-weight: 700; text-decoration: none; }
.info__action svg { width: 18px; height: 18px; }
.contact-formcol .contact-cta__form { padding: 1.4rem; }
@media (min-width: 640px) { .contact-formcol .contact-cta__form { padding: 1.8rem 2rem; } }
.contact-info__directions { margin-top: 1.8rem; }

.map { border-radius: var(--r); overflow: hidden; background: var(--teal-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Cpath d='M0 20h40M20 0v40' stroke='%23c9dfe6' stroke-width='1'/%3E%3C/svg%3E"); min-height: 320px; display: grid; place-items: center; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__consent { background: rgba(255,255,255,.96); border-radius: var(--r); padding: 1.3rem 1.4rem; margin: 1rem; max-width: 460px; box-shadow: var(--shadow-sm); font-size: .95rem; }
.map__consent p { margin-bottom: .8rem; }
.map__remember { display: flex; gap: .5rem; align-items: center; font-size: .9rem; color: var(--ink-soft); margin-bottom: .9rem; }
.map__remember input { accent-color: var(--teal); }
.map__revoke { font-size: .85rem; margin: .5rem 0 0; }
.map__revoke a { color: var(--ink-mute); }

/* ---------------- footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.85); padding: 3rem 0 1.6rem; font-size: .95rem; margin-top: 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 700px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer__grid { grid-template-columns: 1.25fr 1.3fr .9fr 1.15fr; gap: 2.5rem; } }
.footer__logo { width: 260px; background: #fff; padding: .6rem .8rem; border-radius: 10px; margin-bottom: .9rem; }
.footer__name { font-family: var(--serif); font-size: 1.3rem; color: #fff; margin: 0 0 .3rem; }
.footer__tag { margin: 0 0 .4rem; color: #fff; font-weight: 700; }
.footer__albo { font-size: .88rem; color: rgba(255,255,255,.75); margin: 0; }
.footer__title { font-family: var(--sans); font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(255,255,255,.65); margin: 0 0 .8rem; font-weight: 700; }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer__sub { padding-left: .9rem; font-size: .9rem; opacity: .9; white-space: nowrap; }
.footer__sub::before { content: "– "; opacity: .6; }
.footer__directions { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.footer__directions svg { width: 18px; height: 18px; }
.footer__social { display: flex; gap: 1rem; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; margin-top: 2.4rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .86rem; color: rgba(255,255,255,.7); }
.footer__bottom p { margin: 0; }
.footer__legal { display: flex; gap: 1.2rem; }
.footer__note { margin: 1rem 0 0; font-size: .8rem; color: rgba(255,255,255,.55); }
.footer__credit { margin: .8rem 0 0; font-size: .82rem; text-align: center; }
.footer__credit a { color: var(--amber); }

/* ---------------- error page ---------------- */
.error-page { text-align: center; max-width: 560px; }
.error-page__code { font-family: var(--serif); font-size: 5rem; color: var(--teal-tint); margin: 0; line-height: 1; }
.error-page p { color: var(--ink-soft); margin-bottom: 1.5rem; }

/* ---------------- print ---------------- */
@media print {
  .site-header, .site-footer, .contact-cta, .aside, .nav-toggle, .btn { display: none !important; }
  body { font-size: 12pt; }
  .page-hero { background: none; color: #000; }
  .page-hero h1 { color: #000; }
}

/* ---------------- privacy dialog (bottom sheet on phone, panel on desktop) ---------------- */
.sheet { padding: 0; border: 0; background: transparent; color: var(--ink); width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(7, 22, 43, .55); }
.sheet__box { display: flex; flex-direction: column; max-height: 88dvh; background: #fff; border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow); }
.sheet[open] .sheet__box { animation: sheet-up .28s ease; }
@keyframes sheet-up { from { transform: translateY(100%); } }
.sheet__head { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.3rem 1rem; border-bottom: 1px solid var(--line); }
.sheet__head::before { content: ""; position: absolute; top: .5rem; left: 50%; translate: -50% 0; width: 2.5rem; height: 4px; border-radius: 4px; background: var(--line); }
.sheet__title { font-size: 1.25rem; margin: 0; }
.sheet__close { display: grid; place-items: center; flex: none; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: var(--sand); border: 1px solid var(--line); color: var(--blue); cursor: pointer; }
.sheet__close svg { width: 1rem; height: 1rem; }
.sheet__body { padding: 1.2rem 1.3rem; overflow-y: auto; overscroll-behavior: contain; font-size: .97rem; }
.sheet__body h3 { font-size: 1.05rem; margin-top: 1.4rem; }
.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.3rem max(.9rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
@media (min-width: 760px) {
  .sheet { width: min(44rem, calc(100% - 3rem)); max-height: 82vh; margin: auto; }
  .sheet__box { max-height: 82vh; border-radius: var(--r); }
  .sheet[open] .sheet__box { animation-name: sheet-in; }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(.75rem) scale(.98); } }
  .sheet__head::before { display: none; }
}
