/* ==========================================================================
   GeoTek Plus s.r.l. — Design System
   Un solo CSS condiviso da tutte le pagine. Token in :root.
   ========================================================================== */

:root {
  /* Palette */
  --dark: #171310;
  --dark-2: #16120e;
  --light: #faf8f4;
  --white: #ffffff;
  --ink: #1c1813;
  --muted: #6b6357;
  --ink-on-dark: #f6f2eb;
  --muted-on-dark: #a99f93;
  --accent: #ffa600;
  --accent-on-light: #c77a00;
  --accent-ink: #1c1710;

  /* Superfici / bordi */
  --nav-glass: rgba(24, 20, 15, 0.55);
  --nav-border: rgba(246, 242, 235, 0.14);
  --nav-link: #e9e2d6;
  --hairline: rgba(28, 24, 19, 0.07);

  /* Raggi e ombre */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow-soft: 0 18px 50px -22px rgba(28, 24, 19, 0.25);
  --shadow-nav: 0 12px 40px -12px rgba(0, 0, 0, 0.45);

  /* Tipografia */
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Onest', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;
}

/* ---------- Base ---------- */

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

html { scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--light);
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

::selection { background: rgba(255, 166, 0, 0.3); }

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

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}

p { line-height: 1.65; }

.container { max-width: 1160px; margin: 0 auto; padding-inline: 24px; }

/* ---------- Eyebrow + titoli sezione ---------- */

.eyebrow {
  margin: 0 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.on-dark .eyebrow, .eyebrow.on-dark { color: var(--accent); }

.section-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; }

.section-title em { font-style: normal; color: var(--accent-on-light); }

.section-sub { margin: 14px 0 0; max-width: 58ch; color: var(--muted); font-size: 16px; }

/* ---------- Bottoni ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 14px 26px;
  cursor: pointer;
  transition: transform 0.25s, box-shadow 0.25s, background 0.25s, color 0.25s;
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 14px 34px -14px rgba(255, 166, 0, 0.55);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(255, 166, 0, 0.65); }

.btn-ghost {
  background: transparent;
  color: var(--ink-on-dark);
  border: 1px solid rgba(246, 242, 235, 0.35);
}

.btn-ghost:hover { transform: translateY(-2px); background: rgba(246, 242, 235, 0.08); }

.btn-ghost-light {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(28, 24, 19, 0.25);
}

.btn-ghost-light:hover { transform: translateY(-2px); background: rgba(28, 24, 19, 0.05); }

/* ---------- Nav floating ---------- */

.nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  max-width: calc(100% - 32px);
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--nav-border);
  border-radius: 999px;
  padding: 7px 8px 7px 20px;
  box-shadow: var(--shadow-nav);
}

/* Brand: logo vettoriale originale */

.brand { display: inline-flex; align-items: center; text-decoration: none; }

.brand img { height: 34px; width: auto; display: block; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 999px;
  transition: background 0.25s;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a[aria-current="page"] { background: rgba(246, 242, 235, 0.1); }

.nav-cta {
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.25s, box-shadow 0.25s;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -10px rgba(255, 166, 0, 0.6); }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 10px 14px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--nav-link);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle span + span { margin-top: 5px; }

.nav.open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero scura ---------- */

.hero {
  background: var(--dark);
  color: var(--ink-on-dark);
  padding: 150px 24px 0;
  overflow: clip;
}

.hero-grid {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: center;
  padding-bottom: 24px;
}

.hero h1 {
  font-size: clamp(40px, 4.6vw, 62px);
  line-height: 1.06;
}

.hero h1 .accent { color: var(--accent); }

.hero-sub {
  margin: 22px 0 0;
  max-width: 52ch;
  font-size: 17px;
  color: var(--muted-on-dark);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-globe { display: flex; justify-content: center; }

.hero-globe canvas { width: min(460px, 100%); height: auto; }

/* Hero ridotta (pagine interne) */

.hero-page { padding: 150px 24px 72px; }

.hero-page .hero-inner { max-width: 1160px; margin: 0 auto; }

.hero-page .hero-inner.with-media {
  display: grid;
  grid-template-columns: minmax(300px, 1.15fr) minmax(260px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero-page h1 { font-size: clamp(34px, 4vw, 52px); }

.hero-media { position: relative; }

.hero-media::before {
  content: "";
  position: absolute;
  inset: 16px -16px -16px 16px;
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
}

.hero-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6);
}

/* Trust strip */

.trust-strip {
  max-width: 1160px;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  border-top: 1px solid rgba(246, 242, 235, 0.12);
  padding: 30px 0 44px;
}

.trust-strip .num {
  margin: 0;
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 600;
  color: var(--accent);
}

.trust-strip .label {
  margin: 6px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-on-dark);
}

.trust-note { margin-left: auto; align-self: center; max-width: 30ch; }

.trust-note p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted-on-dark); }

/* ---------- Card servizi (editoriali, immagine a tutta card) ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

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

.cards-grid.three .card { min-height: 280px; }

.cards-grid.three .card h3 { font-size: 21px; }

.card {
  position: relative;
  display: block;
  min-height: 340px;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink-on-dark);
  background: var(--dark);
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s, box-shadow 0.4s;
}

.card:hover { transform: translateY(-6px); box-shadow: 0 30px 70px -26px rgba(28, 24, 19, 0.5); }

.card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.card:hover img { transform: scale(1.06); }

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(185deg, rgba(23, 19, 16, 0.05) 30%, rgba(23, 19, 16, 0.88) 100%);
}

.card-num {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 2;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: 0.12em;
  color: rgba(246, 242, 235, 0.85);
  background: rgba(23, 19, 16, 0.35);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(246, 242, 235, 0.22);
  border-radius: 999px;
  padding: 6px 14px;
}

.card-body {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 26px 28px;
}

.card h3 {
  font-size: 26px;
  color: var(--ink-on-dark);
}

.card p {
  margin: 8px 0 0;
  max-width: 42ch;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(246, 242, 235, 0.78);
}

.card-arrow {
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 235, 0.35);
  color: var(--ink-on-dark);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}

.card-arrow svg { width: 18px; height: 18px; }

.card:hover .card-arrow {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
  transform: rotate(-45deg);
}

/* ---------- Chi Siamo ---------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.about-grid .lead { margin: 18px 0 0; color: var(--muted); font-size: 16px; }

.bullets { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }

.bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }

.bullets li::before {
  content: "";
  flex: none;
  margin-top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--accent);
}

.about-photo { position: relative; }

.about-photo::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  border: 2px solid var(--accent);
  border-radius: var(--r-lg);
  z-index: 0;
}

.about-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  box-shadow: var(--shadow-soft);
}

/* ---------- Marquee "Dal campo" ---------- */

.marquee {
  overflow: clip;
  margin-top: 40px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: gt-marquee 40s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  height: 240px;
  width: auto;
  border-radius: var(--r-md);
  object-fit: cover;
}

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

/* ---------- Competenze specialistiche ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.skill {
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.skill:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(255, 166, 0, 0.55);
}

.skill .n {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-on-light);
}

.skill .t { flex: 1; font-size: 14.5px; font-weight: 600; line-height: 1.35; }

.skill .c {
  flex: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Banda CTA ---------- */

.cta-band {
  background: var(--dark-2);
  color: var(--ink-on-dark);
  border-radius: var(--r-lg);
  padding: 56px clamp(28px, 6vw, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-band h2 { font-size: clamp(26px, 3vw, 36px); }

.cta-band p { margin: 12px 0 0; color: var(--muted-on-dark); max-width: 48ch; }

/* ---------- Contatti ---------- */

.contact-section { background: var(--white); border-top: 1px solid var(--hairline); }

.contact-head { max-width: 1160px; margin: 0 auto; padding: 96px 24px 40px; }

.contact-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: minmax(300px, 1.08fr) minmax(280px, 0.92fr);
  gap: 28px;
  align-items: stretch;
}

/* Card recapiti */

.info-card {
  background: var(--light);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 24px 28px 28px;
}

.info-card h3 {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-on-light);
}

.info-row { margin-top: 16px; display: flex; gap: 12px; align-items: flex-start; }

.info-row .ico {
  flex: none;
  margin-top: 3px;
  display: inline-flex;
  color: var(--accent-on-light);
}

.info-row .ico svg { width: 16px; height: 16px; }

.info-row .lbl {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-row .val {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--ink);
  text-decoration: none;
}

.info-row a.val:hover { color: var(--accent-on-light); }

/* Colonna destra: recapiti + mappa */

.contact-side { display: flex; flex-direction: column; gap: 20px; }

.contact-side .map-frame { flex: 1; }

.map-frame {
  display: block;
  border: 0;
  border-radius: 18px;
  width: 100%;
  min-height: 260px;
  box-shadow: var(--shadow-soft);
  filter: grayscale(1) contrast(1.04);
  transition: filter 0.5s;
}

.map-frame:hover { filter: none; }

/* Form in card chiara con etichette */

.form-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(24px, 3.5vw, 36px);
  box-shadow: var(--shadow-soft);
}

.form { display: grid; gap: 18px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form .field { display: grid; gap: 7px; }

.form .field > span { font-size: 13.5px; font-weight: 600; color: var(--ink); }

.form input:not([type="checkbox"]), .form textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(28, 24, 19, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.form ::placeholder { color: var(--muted); opacity: 0.7; }

.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 166, 0, 0.22);
}

.form textarea { min-height: 150px; resize: vertical; }

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.form-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex: none;
  accent-color: var(--accent);
}

.form-consent a { color: var(--accent-on-light); font-weight: 600; }

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.form-foot .form-status { order: -1; flex: 1 1 240px; margin: 0; }

.form .btn-primary { justify-content: center; padding: 14px 30px; font-size: 15px; }

.form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-status { font-size: 14px; min-height: 1.4em; color: var(--muted); }

.form-status.ok { color: #1a7f37; }

.form-status.error { color: #b3261e; }

.form-status a { color: var(--accent-on-light); }


/* ---------- Footer ---------- */

.footer {
  background: var(--dark-2);
  color: var(--ink-on-dark);
  margin-top: 96px;
  padding: 72px 24px 32px;
}

.footer-inner { max-width: 1160px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, 1fr));
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(246, 242, 235, 0.12);
}

.footer-brand .brand img { height: 44px; }

.footer-brand p {
  margin: 16px 0 0;
  max-width: 34ch;
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted-on-dark);
}

.footer-col h4 {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.footer-col a, .footer-col li {
  color: var(--nav-link);
  text-decoration: none;
  font-size: 14.5px;
  line-height: 1.5;
}

.footer-col a:hover { color: var(--accent); }

.footer-col .muted { color: var(--muted-on-dark); font-size: 13px; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(246, 242, 235, 0.25);
  color: var(--ink-on-dark);
  transition: background 0.25s, transform 0.25s;
}

.footer-social a:hover { background: rgba(246, 242, 235, 0.1); transform: translateY(-2px); }

.footer-social svg { width: 17px; height: 17px; fill: currentColor; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  font-size: 13.5px;
  color: var(--muted-on-dark);
}

.footer-bottom a { color: var(--ink-on-dark); text-decoration: none; font-weight: 600; }

.footer-bottom a:hover { color: var(--accent); }

.footer-bottom a.credit { color: inherit; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(246, 242, 235, 0.3); }

.footer-bottom a.credit:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Sezioni generiche ---------- */

.section { max-width: 1160px; margin: 0 auto; padding: 96px 24px 48px; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

/* Liste servizi (pagine interne) */

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.services-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  font-size: 15px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s;
}

.services-list li:hover { transform: translateY(-2px); }

.services-list li::before {
  content: "";
  flex: none;
  margin-top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--accent);
}

/* Galleria pagine servizio */

.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s;
}

.gallery-grid img:hover { transform: translateY(-4px); }

/* ---------- Torna su ---------- */

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 210;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  cursor: pointer;
  box-shadow: 0 14px 34px -12px rgba(255, 166, 0, 0.6);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s, box-shadow 0.3s;
}

.to-top svg { width: 20px; height: 20px; }

.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

.to-top:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -12px rgba(255, 166, 0, 0.7); }

/* ---------- Reveal allo scroll: disattivato, contenuti sempre visibili ---------- */

.reveal { opacity: 1; }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  display: none;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  background: var(--nav-glass);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border: 1px solid var(--nav-border);
  border-radius: var(--r-md);
  padding: 16px 20px;
  color: var(--ink-on-dark);
  box-shadow: var(--shadow-nav);
}

.cookie-banner.visible { display: flex; }

.cookie-banner p { margin: 0; flex: 1 1 320px; font-size: 13.5px; line-height: 1.55; }

.cookie-banner a { color: var(--accent); font-weight: 600; }

.cookie-banner button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  padding: 9px 18px;
  cursor: pointer;
  border: 1px solid rgba(246, 242, 235, 0.35);
  background: transparent;
  color: var(--ink-on-dark);
  transition: background 0.25s;
}

.cookie-banner button:hover { background: rgba(246, 242, 235, 0.1); }

.cookie-banner button.accept { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.cookie-banner button.accept:hover { background: #ffb52e; }

/* ---------- Privacy (testo lungo) ---------- */

.prose { max-width: 820px; }

.prose h2 { font-size: 26px; margin-top: 48px; }

.prose h3 { font-size: 19px; margin-top: 32px; }

.prose p, .prose li { color: var(--muted); font-size: 15.5px; }

.prose a { color: var(--accent-on-light); }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }

  .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav {
    border-radius: var(--r-lg);
    flex-wrap: wrap;
    width: calc(100% - 32px);
    padding-left: 16px;
  }

  .nav-toggle { display: block; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
    margin: 6px 0 4px;
  }

  .nav.open .nav-links { display: flex; }

  .nav-links li { display: block; }

  .nav-links a {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    line-height: 1.2;
  }

  .nav-cta { display: none; }

  .nav.open .nav-cta { display: inline-flex; margin: 0 auto 10px; }

  .hero { padding-top: 120px; }

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

  .hero-globe { order: 2; }

  .hero-globe canvas { width: min(320px, 80%); }

  .hero-page .hero-inner.with-media { grid-template-columns: 1fr; gap: 44px; }

  .hero-media { max-width: 440px; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }

  .services-list { grid-template-columns: 1fr; }

  .cards-grid.three { grid-template-columns: 1fr; }

  .about-photo { max-width: 480px; }

  .trust-note { margin-left: 0; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .marquee-track img { height: 180px; }
}

@media (max-width: 700px) {
  .cards-grid { grid-template-columns: 1fr; }

  .card { min-height: 300px; }

  .skills-grid { grid-template-columns: 1fr; }

  .skill .c { display: none; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }

  .map-frame { min-height: 300px; }

  .form .btn-primary { width: 100%; }

  .to-top { width: 44px; height: 44px; right: 16px; bottom: 16px; }

  .gallery-grid { grid-template-columns: 1fr; }

  .cta-band { border-radius: var(--r-md); }

  .footer-top { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Motion ---------- */

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

  .marquee-track { animation: none; }

  .reveal { opacity: 1; transform: none; }

  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
