/* ==========================================================================
   RRUSHI ERMAL — lavorazioni agricole conto terzi
   Foglio di stile unico, scritto mobile first:
   le regole base valgono per il telefono, i @media (min-width) allargano.
   ========================================================================== */

/* --------------------------------------------------------------- caratteri
   I font sono ospitati sul sito: nessuna chiamata a Google Fonts.
   Cosi' non dipendiamo da un CDN esterno (che alcune estensioni privacy
   bloccano o riscrivono) e non usciamo dal sito con l'IP del visitatore.
   Sono file variabili: un solo file copre tutti i pesi dichiarati.
   Sottoinsieme latino: copre l'italiano accentato. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-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: "Fraunces";
  font-style: italic;
  font-weight: 600 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-italic-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 700;
  font-display: swap;
  src: url("../assets/fonts/inter-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;
}

:root {
  /* Verde vigna: la scala scura regge testi bianchi ovunque */
  --vine-950: #0d2418;
  --vine-900: #12301f;
  --vine-800: #16351f;
  --vine-700: #1d4a2e;
  --vine-600: #276b3f;
  --leaf: #8fbf72;

  /* Nocciola: accento caldo. -600 per il testo su fondo chiaro (5.2:1),
     -400 per il testo su fondo scuro (6.8:1). */
  --hazel: #b06f24;
  --hazel-600: #95591a;
  --hazel-400: #e0a95c;
  --wheat: #f0d7a8;

  --ink: #17201a;
  --muted: #57635a;
  --paper: #f7f5ef;
  --paper-deep: #efeade;
  --white: #ffffff;
  --line: #ddd8cb;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 26px;

  --shadow-sm: 0 2px 10px rgba(13, 36, 24, .06);
  --shadow-md: 0 14px 34px rgba(13, 36, 24, .10);
  --shadow-lg: 0 30px 70px rgba(13, 36, 24, .18);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --container: 1180px;
  --header-height: 62px;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 18px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open,
body.lightbox-open {
  overflow: hidden;
}

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

/* Gli attributi width/height in HTML servono a riservare lo spazio,
   ma il rapporto reale lo decide il CSS: senza height:auto resterebbero fissi. */
img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  -webkit-tap-highlight-color: transparent;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.02em;
  text-wrap: balance;
  margin: 0;
}

p {
  margin: 0;
  text-wrap: pretty;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

/* Anello di focus leggibile sia su fondo chiaro sia su fondo scuro */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--hazel-400);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

/* --------------------------------------------------------------- utilita' */

.container {
  width: min(100% - 36px, var(--container));
  margin-inline: auto;
}

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  padding: 10px 16px;
  color: var(--white);
  background: var(--vine-700);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s ease;
}

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

.section {
  padding-block: clamp(56px, 11vw, 112px);
}

.section-light {
  background: var(--paper-deep);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  color: var(--hazel-600);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 26px;
  height: 2px;
  background: currentColor;
}

.eyebrow.on-dark {
  color: var(--hazel-400);
}

.section-intro h2 {
  font-size: clamp(1.9rem, 7vw, 3.1rem);
}

.section-intro > p {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

.section-intro.on-dark > p {
  color: rgba(255, 255, 255, .78);
}

.lead {
  max-width: 58ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.02rem;
}

/* ---------------------------------------------------------------- bottoni */

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button:active {
  transform: translateY(0);
}

.button-primary {
  color: var(--white);
  background: var(--hazel);
  box-shadow: 0 12px 28px rgba(176, 111, 36, .28);
}

.button-primary:hover {
  background: var(--hazel-600);
}

.button-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, .42);
  background: rgba(255, 255, 255, .07);
  backdrop-filter: blur(4px);
}

.button-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, .16);
}

.button-dark {
  color: var(--white);
  background: var(--vine-700);
}

.button-dark:hover {
  background: var(--vine-800);
}

.button-outline {
  color: var(--vine-700);
  border-color: var(--line);
  background: var(--white);
}

.button-outline:hover {
  border-color: var(--vine-700);
}

.button svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* Freccia che scivola in avanti al passaggio del mouse */
.button-arrow {
  display: inline-block;
  width: 16px;
  height: 8px;
  background: currentColor;
  clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%);
  transition: transform .25s var(--ease);
}

.button:hover .button-arrow {
  transform: translateX(5px);
}

/* --------------------------------------------------------------- header */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-height);
  color: var(--white);
  transition: background-color .3s ease, box-shadow .3s ease;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 36, 24, .72), rgba(13, 36, 24, 0));
  transition: opacity .3s ease;
}

.site-header.is-solid,
.site-header.is-scrolled {
  background: rgba(18, 48, 31, .97);
  box-shadow: 0 10px 30px rgba(13, 36, 24, .22);
  backdrop-filter: blur(10px);
}

.site-header.is-solid::before,
.site-header.is-scrolled::before {
  opacity: 0;
}

.nav-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}

.header-progress {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  height: 2px;
  background: var(--hazel-400);
  transform: scaleX(0);
  transform-origin: left center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.brand-mark {
  flex: none;
  width: 34px;
  height: 34px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-name strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 700;
  letter-spacing: -.01em;
}

.brand-name strong span {
  color: var(--hazel-400);
}

.brand-name small {
  margin-top: 3px;
  font-size: .56rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .72;
}

/* Flex e non grid: le righe auto della griglia si allargherebbero a 44px
   e le due barre non si incrocerebbero nella X. */
.menu-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-toggle i {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s ease;
}

.menu-toggle[aria-expanded="true"] i:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] i:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] i:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile: pannello a scomparsa sotto la barra */
.main-nav {
  position: fixed;
  inset: var(--header-height) 0 auto;
  display: grid;
  padding: 10px 18px 24px;
  background: var(--vine-900);
  border-top: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 24px 44px rgba(13, 36, 24, .34);
  transform: translateY(-14px);
  opacity: 0;
  visibility: hidden;
  transition: transform .3s var(--ease), opacity .25s ease, visibility .25s;
}

.main-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.main-nav a:not(.nav-cta) {
  display: flex;
  align-items: center;
  padding: 13px 4px;
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.main-nav a.is-active {
  color: var(--hazel-400);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 50px;
  margin-top: 18px;
  padding: 12px 20px;
  color: var(--white);
  background: var(--hazel);
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta svg {
  width: 17px;
  height: 17px;
}

/* ------------------------------------------------------------------ hero */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding-top: var(--header-height);
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  animation: heroDrift 22s ease-out both;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 36, 24, .6) 0%, rgba(13, 36, 24, .14) 26%, rgba(13, 36, 24, .48) 48%, rgba(13, 36, 24, .8) 76%, rgba(13, 36, 24, .95) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding-block: 34px 30px;
}

.hero .eyebrow {
  color: var(--wheat);
}

.hero h1 {
  font-size: clamp(2.15rem, 10.6vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -.035em;
}

.hero h1 em {
  display: block;
  color: var(--hazel-400);
  font-style: italic;
  font-weight: 600;
}

.hero-lead {
  max-width: 46ch;
  margin-top: 18px;
  color: rgba(255, 255, 255, .86);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 26px;
}

.hero-actions .button {
  flex: 1 1 190px;
}

.hero-facts {
  display: grid;
  gap: 1px;
  margin-top: 32px;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-facts div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 16px;
  background: rgba(13, 36, 24, .62);
  backdrop-filter: blur(6px);
}

.hero-facts dt {
  flex: none;
  color: var(--hazel-400);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 0;
  font-size: .93rem;
  font-weight: 500;
}

.scroll-cue {
  display: none;
}

@keyframes heroDrift {
  from { transform: scale(1.14); }
  to { transform: scale(1); }
}

/* ------------------------------------------------------- fascia scorrevole */

.marquee {
  padding-block: 15px;
  color: var(--white);
  background: var(--vine-800);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee ul {
  display: flex;
  align-items: center;
  gap: 30px;
  padding-right: 30px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.marquee li {
  display: flex;
  align-items: center;
  gap: 30px;
}

.marquee li::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--hazel-400);
  border-radius: 50%;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --------------------------------------------------------------- servizi */

.services-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 22px 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--vine-600), var(--hazel));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--ease);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.service-card:hover::before,
.service-card.is-visible::before {
  transform: scaleX(1);
}

.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  color: var(--vine-700);
  background: var(--paper-deep);
  border-radius: 18px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
}

.service-card h3 {
  font-size: 1.45rem;
}

.service-card > p:not(.service-note) {
  margin-top: 10px;
  color: var(--muted);
  font-size: .96rem;
}

.service-phases {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.service-phases li {
  padding: 7px 12px;
  color: var(--vine-700);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 500;
}

.service-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--hazel-600);
  font-size: .85rem;
  font-weight: 600;
}

/* --------------------------------------------------------------- percorso */

.process {
  color: var(--white);
  background: var(--vine-900);
  background-image:
    radial-gradient(120% 90% at 12% 0%, rgba(143, 191, 114, .16), transparent 58%),
    radial-gradient(80% 70% at 100% 100%, rgba(224, 169, 92, .16), transparent 60%);
}

.process h2 {
  font-size: clamp(1.9rem, 7vw, 3.1rem);
}

.process-steps {
  position: relative;
  display: grid;
  gap: 26px;
  margin-top: 38px;
  padding-left: 42px;
}

/* Binario verticale: la parte colorata cresce quando la lista entra in vista */
.process-steps::before,
.process-steps::after {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 15px;
  width: 2px;
  background: rgba(255, 255, 255, .16);
}

.process-steps::after {
  background: linear-gradient(180deg, var(--hazel-400), var(--leaf));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 1.5s var(--ease);
}

.process-steps.is-visible::after {
  transform: scaleY(1);
}

/* z-index: il binario e' l'ultimo figlio della lista, senza questo
   passerebbe sopra i pallini invece di finirci sotto. */
.process-steps li {
  position: relative;
  z-index: 1;
}

/* Il pallino e' centrato sul binario: la lista ha 42px di padding,
   il binario occupa 15-17px, quindi il cerchio da 14px parte a -33px. */
.process-steps li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -33px;
  width: 14px;
  height: 14px;
  background: var(--vine-900);
  border: 2px solid var(--hazel-400);
  border-radius: 50%;
  transition: background-color .3s ease, transform .3s var(--ease);
}

.process-steps li.is-visible::before {
  background: var(--hazel-400);
  transform: scale(1.15);
}

.process-steps span {
  display: block;
  color: var(--hazel-400);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
}

.process-steps strong {
  display: block;
  margin-top: 5px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -.01em;
}

.process-steps p {
  margin-top: 6px;
  color: rgba(255, 255, 255, .76);
  font-size: .94rem;
}

.process-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

/* --------------------------------------------------------------- azienda */

.about-grid {
  display: grid;
  gap: 30px;
}

.about-figure {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  padding: 11px 16px;
  color: var(--white);
  background: rgba(13, 36, 24, .82);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: var(--radius);
  backdrop-filter: blur(6px);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
}

.values {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.values li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.values i {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--white);
  background: var(--vine-700);
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: .82rem;
  font-style: normal;
  font-weight: 700;
}

.values strong {
  display: block;
  font-size: 1.02rem;
}

.values p {
  color: var(--muted);
  font-size: .93rem;
}

/* ------------------------------------------------------------ anteprima lavori */

.work-head {
  display: grid;
  gap: 20px;
}

.work-mosaic {
  display: grid;
  gap: 12px;
  margin-top: 30px;
}

.work-tile {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.work-tile img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.work-tile:hover img {
  transform: scale(1.06);
}

.work-tile figcaption,
.work-tile > span {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 34px 16px 14px;
  color: var(--white);
  background: linear-gradient(180deg, transparent, rgba(13, 36, 24, .88));
}

.work-tile strong {
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
}

.work-tile small {
  font-size: .76rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .82;
}

/* ------------------------------------------------------------------ zone */

.coverage-grid {
  display: grid;
  gap: 30px;
}

.coverage-map {
  position: relative;
  margin: 0;
  padding: 22px;
  background: var(--vine-900);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.coverage-map svg {
  width: 100%;
  height: auto;
}

.coverage-map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .82);
  font-size: .78rem;
  font-weight: 500;
}

.coverage-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.coverage-map-legend i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-core {
  background: var(--hazel-400);
}

.dot-wide {
  background: var(--leaf);
}

.zones-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.zones-list li {
  padding: 8px 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 500;
  transition: transform .25s var(--ease), border-color .25s ease, color .25s ease;
}

.zones-list li:hover {
  transform: translateY(-2px);
  color: var(--vine-700);
  border-color: var(--vine-600);
}

.coverage-note {
  margin-top: 22px;
  padding: 16px 18px;
  background: var(--paper-deep);
  border-left: 3px solid var(--hazel);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--muted);
  font-size: .93rem;
}

/* ------------------------------------------------------------------- faq */

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .25s ease, box-shadow .25s ease;
}

.faq-item[open] {
  border-color: var(--vine-600);
  box-shadow: var(--shadow-sm);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--hazel);
  border-bottom: 2px solid var(--hazel);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}

.faq-item[open] summary::after {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.faq-answer {
  padding: 0 18px 18px;
  color: var(--muted);
  font-size: .95rem;
  animation: faqIn .3s var(--ease) both;
}

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -------------------------------------------------------------- contatti */

.contact {
  color: var(--white);
  background: var(--vine-950);
  background-image:
    radial-gradient(100% 80% at 0% 0%, rgba(39, 107, 63, .38), transparent 62%),
    radial-gradient(90% 80% at 100% 100%, rgba(176, 111, 36, .3), transparent 60%);
}

.contact h2 {
  font-size: clamp(1.9rem, 7vw, 3.1rem);
}

.contact-lead {
  max-width: 50ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, .8);
}

.contact-card {
  display: grid;
  gap: 10px;
  margin-top: 32px;
}

.contact-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  transition: transform .3s var(--ease), background-color .3s ease, border-color .3s ease;
}

a.contact-row:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .34);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--vine-950);
  background: var(--hazel-400);
  border-radius: 14px;
}

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

.contact-row small {
  display: block;
  color: var(--hazel-400);
  font-size: .69rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.contact-row strong {
  display: block;
  margin-top: 3px;
  font-size: 1.03rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-go {
  width: 15px;
  height: 8px;
  background: var(--hazel-400);
  clip-path: polygon(0 40%, 62% 40%, 62% 0, 100% 50%, 62% 100%, 62% 60%, 0 60%);
  transition: transform .3s var(--ease);
}

a.contact-row:hover .contact-go {
  transform: translateX(5px);
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding-block: 46px 96px;
  color: rgba(255, 255, 255, .74);
  background: var(--vine-900);
  font-size: .92rem;
}

.footer-top {
  display: grid;
  gap: 30px;
}

.footer-about p {
  max-width: 42ch;
  margin-top: 16px;
}

.footer-title {
  margin-bottom: 14px;
  color: var(--white);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.footer-nav {
  display: grid;
  gap: 9px;
}

.footer-nav a,
.footer-contacts a {
  display: inline-block;
  transition: color .2s ease, transform .2s ease;
}

.footer-nav a:hover,
.footer-contacts a:hover {
  color: var(--hazel-400);
  transform: translateX(3px);
}

.footer-contacts {
  display: grid;
  gap: 9px;
}

.footer-contacts strong {
  color: var(--white);
}

.footer-bottom {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  font-size: .84rem;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.footer-credit a {
  color: var(--hazel-400);
  font-weight: 600;
}

.footer-credit a:hover {
  text-decoration: underline;
}

/* Barra di contatto fissa: solo su telefono */
.mobile-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(255, 255, 255, .16);
  border-top: 1px solid rgba(255, 255, 255, .12);
  transform: translateY(110%);
  transition: transform .35s var(--ease);
}

.mobile-bar.is-visible {
  transform: translateY(0);
}

.mobile-bar a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 56px;
  padding: 10px;
  color: var(--white);
  font-size: .93rem;
  font-weight: 600;
}

.mobile-bar a:first-child {
  background: var(--hazel);
}

.mobile-bar a:last-child {
  background: var(--vine-800);
}

.mobile-bar svg {
  width: 19px;
  height: 19px;
}

/* --------------------------------------------------------- pagina lavori */

.page-hero {
  padding-top: calc(var(--header-height) + 46px);
  padding-bottom: 46px;
  color: var(--white);
  background: var(--vine-900);
  background-image:
    radial-gradient(110% 90% at 90% 0%, rgba(143, 191, 114, .2), transparent 60%),
    radial-gradient(90% 80% at 0% 100%, rgba(224, 169, 92, .16), transparent 62%);
}

.page-hero h1 {
  font-size: clamp(2.1rem, 10vw, 3.6rem);
}

.page-hero h1 em {
  display: block;
  color: var(--hazel-400);
  font-style: italic;
}

.page-hero p {
  max-width: 56ch;
  margin-top: 16px;
  color: rgba(255, 255, 255, .8);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, .62);
  font-size: .8rem;
}

.breadcrumb a:hover {
  color: var(--hazel-400);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 8px;
  opacity: .6;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

.filter-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-top: 4px;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filter-bar::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: none;
  padding: 9px 16px;
  color: var(--vine-700);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}

.filter-button:hover {
  transform: translateY(-2px);
  border-color: var(--vine-600);
}

.filter-button.is-active {
  color: var(--white);
  background: var(--vine-700);
  border-color: var(--vine-700);
}

.filter-count {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 500;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  display: block;
  padding: 0;
  background: var(--vine-900);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

/* display:block batterebbe l'attributo hidden usato dai filtri */
.gallery-item[hidden] {
  display: none;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.07);
}

.gallery-item > span {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 2px;
  padding: 36px 14px 12px;
  color: var(--white);
  text-align: left;
  background: linear-gradient(180deg, transparent, rgba(13, 36, 24, .9));
}

.gallery-item strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.gallery-item small {
  font-size: .72rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
}

.gallery-empty {
  padding: 40px 20px;
  text-align: center;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.gallery-empty strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.gallery-empty p {
  margin-top: 6px;
  color: var(--muted);
  font-size: .93rem;
}

.gallery-cta {
  padding-block: clamp(46px, 10vw, 82px);
  color: var(--white);
  background: var(--vine-800);
  text-align: center;
}

.gallery-cta h2 {
  font-size: clamp(1.6rem, 6vw, 2.5rem);
}

.gallery-cta p {
  max-width: 46ch;
  margin: 14px auto 0;
  color: rgba(255, 255, 255, .78);
}

.gallery-cta .button {
  margin-top: 26px;
}

/* -------------------------------------------------------------- lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14px;
  background: rgba(9, 24, 16, .985);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, .82);
  font-size: .82rem;
}

.lightbox-close,
.lightbox-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  color: var(--white);
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background-color .25s ease, transform .25s var(--ease);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: rgba(255, 255, 255, .24);
  transform: scale(1.06);
}

.lightbox figure {
  display: grid;
  place-content: center;
  gap: 14px;
  margin: 0;
  min-height: 0;
}

.lightbox img {
  max-width: 100%;
  max-height: 62svh;
  margin-inline: auto;
  border-radius: var(--radius);
  opacity: 0;
  transform: scale(.97);
  transition: opacity .35s ease, transform .35s var(--ease);
}

.lightbox img.is-loaded {
  opacity: 1;
  transform: scale(1);
}

.lightbox figcaption {
  color: var(--white);
  text-align: center;
}

.lightbox figcaption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.lightbox figcaption small {
  color: var(--hazel-400);
  font-size: .76rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 10px;
}

/* ------------------------------------------------------------ animazioni */

/* Le entrate allo scroll partono solo se il JavaScript e' attivo:
   senza JS la classe .js non viene aggiunta e il contenuto resta visibile. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* L'hero non aspetta l'osservatore: entra subito, senza attese sul primo paint */
.hero-anim {
  animation: heroUp .8s var(--ease) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes heroUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ============================ TABLET — da 640px ========================= */

@media (min-width: 640px) {
  .container {
    width: min(100% - 56px, var(--container));
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
  }

  .work-mosaic,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work-mosaic .work-tile:first-child {
    grid-column: span 2;
  }

  .work-mosaic .work-tile:first-child img {
    aspect-ratio: 16 / 9;
  }

  .contact-card {
    grid-template-columns: 1fr 1fr;
  }

  .contact-card .contact-row:first-child {
    grid-column: span 2;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-credit {
    text-align: right;
  }

  .filter-row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .gallery-item.is-wide {
    grid-column: span 2;
  }
}

/* =========================== DESKTOP — da 960px ========================= */

@media (min-width: 960px) {
  :root {
    --header-height: 78px;
  }

  .menu-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    gap: clamp(14px, 1.8vw, 28px);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .main-nav a:not(.nav-cta) {
    position: relative;
    padding: 6px 0;
    font-size: .88rem;
    font-weight: 500;
    border: 0;
  }

  .main-nav a:not(.nav-cta)::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: var(--hazel-400);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .3s var(--ease);
  }

  .main-nav a:not(.nav-cta):hover::after,
  .main-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .nav-cta {
    min-height: 44px;
    margin-top: 0;
    padding: 10px 18px;
    font-size: .88rem;
  }

  .hero {
    min-height: min(880px, 100svh);
  }

  .hero-inner {
    padding-block: 60px 64px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(3.4rem, 5.6vw, 5.2rem);
  }

  .hero-lead {
    font-size: 1.14rem;
  }

  .hero-actions .button {
    flex: 0 0 auto;
  }

  .hero-facts {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
    margin-top: 44px;
  }

  .hero-facts div {
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 16px 20px;
  }

  .scroll-cue {
    position: absolute;
    right: 0;
    bottom: 64px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, .74);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
  }

  .scroll-cue::after {
    content: "";
    width: 1px;
    height: 56px;
    background: linear-gradient(180deg, var(--hazel-400), transparent);
    animation: cue 2.2s ease-in-out infinite;
  }

  @keyframes cue {
    0%, 100% { transform: scaleY(.4); transform-origin: top; opacity: .5; }
    50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
  }

  .service-card {
    padding: 32px 28px 34px;
  }

  .process-grid {
    display: grid;
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: 60px;
    align-items: start;
  }

  .process-sticky {
    position: sticky;
    top: calc(var(--header-height) + 40px);
  }

  .process-steps {
    margin-top: 0;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 60px;
    align-items: center;
  }

  .about-figure img {
    aspect-ratio: 5 / 6;
  }

  .work-head {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }

  .work-mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .work-mosaic .work-tile:first-child {
    grid-column: span 1;
  }

  .work-mosaic .work-tile:first-child img {
    aspect-ratio: 4 / 3;
  }

  .coverage-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
    gap: 56px;
    align-items: center;
  }

  .faq-list {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact-grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 56px;
    align-items: center;
  }

  .contact-card {
    margin-top: 0;
    grid-template-columns: 1fr;
  }

  .contact-card .contact-row:first-child {
    grid-column: auto;
  }

  .site-footer {
    padding-block: 62px 30px;
  }

  .footer-top {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 44px;
  }

  .mobile-bar {
    display: none;
  }

  .page-hero {
    padding-top: calc(var(--header-height) + 74px);
    padding-bottom: 72px;
  }

  .lightbox {
    padding: 22px 28px;
  }

  .lightbox img {
    max-height: 70svh;
  }
}

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

/* --------------------------------------------- preferenze di movimento */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }

  .js .reveal,
  .hero-anim {
    opacity: 1;
    transform: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* ------------------------------------------------------------- stampa */

@media print {
  .site-header,
  .mobile-bar,
  .marquee,
  .scroll-cue,
  .lightbox {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .js .reveal,
  .hero-anim {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
