/* ==========================================================================
   Fabiana Rugieri · Fotografa — css/style.css
   Stile: elegante minimal bianco & nero, editoriale
   Convenzioni riusabili nelle fasi successive:
   tokens :root · .container · .section · .eyelabel · .btn / .btn--ghost
   [data-reveal] → .is-visible · header .is-scrolled
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --ink: #101010;
  --ink-soft: #2b2b2b;
  --paper: #faf9f7;
  --white: #ffffff;
  --gray: #6f6a64;
  --line: #e7e4df;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --header-h: 76px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset leggero + base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.12;
  color: inherit;
}

/* Titoli di sezione pronti per le fasi 2–3 */
h2 { font-size: clamp(30px, 4.2vw, 52px); letter-spacing: -0.01em; }
h3 { font-size: clamp(21px, 2.6vw, 29px); }

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

img, svg { display: block; max-width: 100%; }

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background-color: var(--ink);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

[tabindex="-1"]:focus { outline: none; }

/* Le sezioni future con anchor partono sotto l'header fisso */
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* --------------------------------------------------------------------------
   3. Utilities riutilizzabili
   -------------------------------------------------------------------------- */
.container {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 48px);
}

.section { padding-block: clamp(72px, 10vw, 140px); }

.eyelabel {
  display: block;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 100;
  padding: 13px 20px;
  background-color: var(--ink);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus-visible { transform: translateY(0); }

/* --------------------------------------------------------------------------
   4. Bottoni
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  padding: 17px 28px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  color: var(--white);
  background-color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.15s var(--ease);
}

.btn:hover {
  background-color: var(--white);
  color: var(--ink);
}

.btn:active { transform: translateY(1px); }

.btn--ghost {
  background-color: transparent;
  color: var(--ink);
}

.btn--ghost:hover {
  background-color: var(--ink);
  color: var(--white);
}

/* --------------------------------------------------------------------------
   5. Header + navigazione
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background-color 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.site-header.is-scrolled {
  background-color: rgb(255 255 255 / 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}

.brand {
  font-family: var(--font-serif);
  font-size: clamp(19px, 2.2vw, 22px);
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}

/* --- Nav mobile (default): pannello full-width sotto l'header --- */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 40;
  padding: 4px 0 18px;
  background-color: var(--white);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease),
    visibility 0s linear 0.3s;
}

.site-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.site-nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__list li + li { border-top: 1px solid var(--line); }

.site-nav__link {
  display: block;
  padding: 15px clamp(20px, 5vw, 48px);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.site-nav__link:hover { color: var(--ink); }

/* --- Hamburger (solo mobile) --- */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}

.nav-toggle__box {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}

.nav-toggle__box::before,
.nav-toggle__box::after,
.nav-toggle__line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background-color: currentColor;
  transition:
    top 0.3s var(--ease),
    bottom 0.3s var(--ease),
    transform 0.3s var(--ease),
    opacity 0.2s var(--ease);
}

.nav-toggle__box::before { content: ""; top: 0; }
.nav-toggle__line { top: 50%; transform: translateY(-50%); }
.nav-toggle__box::after { content: ""; bottom: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__line { opacity: 0; }

.nav-toggle[aria-expanded="true"] .nav-toggle__box::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__box::after {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: calc(var(--header-h) + clamp(24px, 6vh, 64px));
  padding-bottom: clamp(88px, 11vh, 120px);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(44px, 8vw, 80px);
  align-items: center;
  width: 100%;
}

.hero__title {
  margin: clamp(18px, 2.4vw, 26px) 0 clamp(20px, 2.8vw, 28px);
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.015em;
}

.hero__title em {
  font-style: italic;
  font-weight: 400;
}

.hero__lead {
  max-width: 54ch;
  margin-bottom: clamp(32px, 4.5vw, 46px);
  font-size: clamp(16px, 0.55vw + 13px, 19px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__art {
  display: flex;
  justify-content: center;
}

.hero__figure {
  width: min(100%, 420px);
  height: auto;
  pointer-events: none;
}

/* Indicatore di scroll discreto */
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0.75;
}

.hero__scroll-line {
  display: block;
  width: 1px;
  height: 56px;
  background-color: var(--ink);
  animation: scroll-hint 2.4s var(--ease) infinite;
}

@keyframes scroll-hint {
  0%   { transform: scaleY(0); transform-origin: top; }
  45%  { transform: scaleY(1); transform-origin: top; }
  55%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@media (max-height: 600px) {
  .hero__scroll { display: none; }
}

/* --------------------------------------------------------------------------
   7. Animazioni reveal ([data-reveal] → .is-visible via IntersectionObserver)
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   8. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line);
}

/* --------------------------------------------------------------------------
   9. Desktop (≥ 880px): nav inline + hero a due colonne
   -------------------------------------------------------------------------- */
@media (min-width: 880px) {

  .nav-toggle { display: none; }

  .site-nav {
    position: static;
    z-index: auto;
    padding: 0;
    background-color: transparent;
    border: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }

  .site-nav__list {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3vw, 38px);
  }

  .site-nav__list li + li { border-top: 0; }

  .site-nav__link {
    position: relative;
    padding: 8px 2px;
    font-size: 12px;
    color: var(--ink);
  }

  /* sottolineatura che cresce all'hover */
  .site-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s var(--ease);
  }

  .site-nav__link:hover::after,
  .site-nav__link:focus-visible::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .hero__art { justify-content: flex-end; }

  .hero__figure { width: min(100%, 500px); }
}

/* --------------------------------------------------------------------------
   10. Movimento ridotto: nessuna animazione
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .skip-link { transition: none; }
}

/* ==========================================================================
   ===== PORTFOLIO ===== (Fase 2)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Intestazione di sezione (riutilizzabile nelle fasi successive)
   -------------------------------------------------------------------------- */
.section-head {
  max-width: 760px;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.section-head .eyelabel { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }

.section-lead {
  margin: 0;
  font-size: clamp(16px, 0.55vw + 13px, 18px);
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Griglia galleria: 1 col → 2 col ≥640px → 3 col ≥980px (dense)
   -------------------------------------------------------------------------- */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-flow: dense;
  gap: clamp(14px, 2vw, 24px);
}

.gallery__item {
  position: relative;
  margin: 0;
}

.gallery__trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
  overflow: hidden;
}

.gallery__trigger img {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease);
}

/* overlay con "+" al passaggio del mouse / focus */
.gallery__trigger::after {
  content: "+";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 42px;
  font-weight: 300;
  line-height: 1;
  color: var(--white);
  background-color: rgb(16 16 16 / 0.32);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
}

@media (hover: hover) {
  .gallery__trigger:hover img,
  .gallery__trigger:focus-visible img { transform: scale(1.035); }

  .gallery__trigger:hover::after,
  .gallery__trigger:focus-visible::after { opacity: 1; }
}

.gallery__trigger:focus-visible { outline-offset: 4px; }

.gallery__caption,
.gallery__item figcaption {
  padding-top: 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

@media (min-width: 640px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .gallery { grid-template-columns: repeat(3, 1fr); }

  /* ritmo editoriale: due item larghi su desktop */
  .gallery__item--wide { grid-column: span 2; }
}

.gallery-note {
  margin: clamp(22px, 3vw, 32px) 0 0;
  font-size: 13px;
  color: var(--gray);
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
body.has-lightbox { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  background-color: rgb(10 10 10 / 0.94);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s var(--ease),
    visibility 0s linear 0.3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 78vh;
  background-color: var(--paper);
  border: 1px solid rgb(255 255 255 / 0.16);
  transition: opacity 0.3s var(--ease);
}

.lightbox__caption {
  padding-top: 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-align: center;
  color: rgb(255 255 255 / 0.8);
}

/* bottoni: area tocco ≥44px, inversione coerente col design system */
.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background-color: transparent;
  color: var(--white);
  border: 1px solid rgb(255 255 255 / 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  transition:
    background-color 0.25s var(--ease),
    color 0.25s var(--ease),
    border-color 0.25s var(--ease);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:focus-visible,
.lightbox__prev:focus-visible,
.lightbox__next:focus-visible {
  background-color: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

.lightbox__close { top: 18px; right: 18px; }

.lightbox__prev {
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 700px) {
  .lightbox { padding: 16px 16px 96px; }

  .lightbox__img {
    max-width: 100%;
    max-height: 62vh;
  }

  /* frecce affiancate in basso, centraterminazione */
  .lightbox__prev {
    top: auto;
    bottom: 24px;
    left: calc(50% - 56px);
    transform: none;
  }

  .lightbox__next {
    top: auto;
    bottom: 24px;
    right: calc(50% - 56px);
    transform: none;
  }
}

/* ==========================================================================
   ===== ABOUT / SERVICES / ZONE / CONTACT ===== (Fase 3)
   ========================================================================== */

/* --------------------------------------------------------------------------
   Chi sono: layout asimmetrico (bio + colonna laterale)
   -------------------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(40px, 6vw, 72px);
}

.about__bio p {
  margin: 0 0 1.2em;
  font-size: clamp(16px, 0.55vw + 13px, 18px);
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
}

.about__bio p:last-of-type { margin-bottom: 0; }

.about__quote {
  margin: 0 0 clamp(28px, 4vw, 40px);
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.about__quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
}

.about__cv { margin-top: clamp(30px, 4vw, 44px); }

.about__cv-note {
  margin: 12px 0 0;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--gray);
}

.skills-box {
  padding: clamp(22px, 3vw, 30px);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.skills-box__title {
  margin-bottom: 8px;
  font-size: 20px;
}

.skills-box__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.skills-box__list li {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
}

.skills-box__list li:first-child { padding-top: 6px; }

.skills-box__list li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

@media (min-width: 880px) {
  .about__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
    align-items: start;
  }

  .about__aside {
    position: sticky;
    top: calc(var(--header-h) + 32px);
  }
}

/* --------------------------------------------------------------------------
   Servizi: griglia 1 → 2 → 3 colonne, card con lift all'hover
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 24px);
}

@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .services__grid { grid-template-columns: repeat(3, 1fr); }
}

.service-card {
  padding: clamp(24px, 3vw, 32px);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition:
    transform 0.35s var(--ease),
    box-shadow 0.35s var(--ease),
    border-color 0.35s var(--ease);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #d8d4cc;
  box-shadow: 0 16px 34px rgb(16 16 16 / 0.07);
}

.service-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
}

.service-card__icon svg { width: 22px; height: 22px; }

.service-card h3 {
  margin-bottom: 8px;
  font-size: clamp(20px, 1.6vw + 8px, 24px);
}

.service-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--gray);
}

.services__cta {
  margin-top: clamp(40px, 6vw, 64px);
  text-align: center;
}

.services__cta-line {
  margin-bottom: 20px;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
}

/* --------------------------------------------------------------------------
   Zona: pannello con tipografia serif decorativa
   -------------------------------------------------------------------------- */
.zone__panel {
  position: relative;
  overflow: hidden;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 5vw, 64px);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.zone__word {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(110px, 22vw, 260px);
  line-height: 1;
  color: var(--ink);
  opacity: 0.05;
  pointer-events: none;
  user-select: none;
}

.zone__content { position: relative; }

.zone__content .eyelabel { margin-bottom: 16px; }
.zone__content h2 { margin-bottom: 18px; }

.zone__ornament {
  display: block;
  margin: 0 auto 22px;
}

.zone__text {
  max-width: 58ch;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.8;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Contatti: card cliccabili con hover invert
   -------------------------------------------------------------------------- */
.contact__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vw, 24px);
}

@media (min-width: 880px) {
  .contact__list { grid-template-columns: repeat(3, 1fr); }
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: clamp(26px, 3.4vw, 36px) clamp(18px, 2.6vw, 28px);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.contact-card:hover {
  background-color: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  transform: translateY(-3px);
}

.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease);
}

.contact-card__icon svg { width: 22px; height: 22px; }

.contact-card:hover .contact-card__icon { border-color: rgb(255 255 255 / 0.4); }

.contact-card__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
  transition: color 0.3s var(--ease);
}

.contact-card:hover .contact-card__label { color: rgb(255 255 255 / 0.65); }

.contact-card__value {
  font-size: 16px;
  font-weight: 500;
}

.contact__main {
  margin-top: clamp(36px, 5vw, 56px);
  text-align: center;
}

/* --------------------------------------------------------------------------
   Footer ampliato
   -------------------------------------------------------------------------- */
.site-footer { padding: clamp(44px, 6vw, 64px) 0 30px; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
}

@media (min-width: 880px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 3fr) minmax(0, 4fr);
  }
}

.site-footer__name {
  margin: 0 0 6px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
}

.site-footer__tag {
  margin: 0;
  font-size: 13px;
  color: var(--gray);
}

.site-footer__title {
  margin: 0 0 14px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray);
}

.site-footer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__list li + li { margin-top: 9px; }

.site-footer__list a {
  font-size: 14px;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease);
}

.site-footer__list a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 22px;
  margin-top: clamp(36px, 5vw, 52px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.site-footer__base p {
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--gray);
}

.site-footer__base a {
  color: var(--gray);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.site-footer__base a:hover { color: var(--ink); }

/* ==========================================================================
   ===== INSTAGRAM WIDGET =====
   ========================================================================== */

.instagram {
  background-color: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.instagram__head {
  max-width: 760px;
}

.instagram__head .section-lead a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgb(16 16 16 / 0.25);
  transition: text-decoration-color 0.25s var(--ease), color 0.25s var(--ease);
}

.instagram__head .section-lead a:hover,
.instagram__head .section-lead a:focus-visible {
  text-decoration-color: currentColor;
}

/* Profilo IG: riga con handle + bottone */
.instagram__profile {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-bottom: clamp(28px, 4vw, 40px);
  padding: clamp(16px, 2.8vw, 22px) clamp(18px, 3vw, 26px);
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.instagram__profile-id {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}

.instagram__profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 50%;
  background-color: var(--paper);
}

.instagram__profile-icon svg {
  width: 24px;
  height: 24px;
}

.instagram__handle {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.instagram__profile-btn {
  min-height: 44px;
  padding-block: 14px;
}

/* Griglia feed */
.instagram__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}

@media (min-width: 880px) {
  .instagram__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Tile quadrato */
.instagram__tile {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 44px;
  min-width: 44px;
}

.instagram__tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease), filter 0.35s var(--ease);
}

.instagram__tile:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

/* Overlay */
.instagram__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  background-color: rgb(16 16 16 / 0.44);
  color: var(--white);
  opacity: 0;
  transition: opacity 0.32s var(--ease);
  text-align: center;
}

.instagram__overlay svg {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  filter: drop-shadow(0 1px 6px rgb(0 0 0 / 0.35));
}

.instagram__overlay-text {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.3;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.35);
}

@media (hover: hover) {
  .instagram__tile:hover img,
  .instagram__tile:focus-visible img {
    transform: scale(1.04);
  }

  .instagram__tile:hover .instagram__overlay,
  .instagram__tile:focus-visible .instagram__overlay,
  .instagram__tile:focus-within .instagram__overlay {
    opacity: 1;
  }
}

/* Touch fallback: overlay leggermente visibile al focus via tastiera, altrimenti solo hover */
.instagram__tile:active .instagram__overlay {
  opacity: 1;
}

/* Nota discreta */
.instagram__note {
  margin: clamp(18px, 3vw, 26px) 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--gray);
  text-align: center;
  max-width: 62ch;
  margin-inline: auto;
}

@media (prefers-reduced-motion: reduce) {
  .instagram__tile img,
  .instagram__overlay {
    transition: none;
  }

  .instagram__tile:hover img,
  .instagram__tile:focus-visible img {
    transform: none;
  }
}
