/* ==========================================================================
   GV Trading Srl — sito statico
   Materia: carta kraft, balle, container. Verde pino + segnale.
   Nessun font esterno, nessun tracker, nessuna richiesta a terzi.
   ========================================================================== */

:root {
  /* Colore — ripreso dal logo: grigi #444445 / #949599, azzurro #00afef */
  --paper:       #f1f3f5;   /* fondo pagina */
  --paper-hi:    #ffffff;   /* fondo sezioni chiare */
  --paper-lo:    #c9cdd2;   /* grigio tenue su fondo scuro */
  --ink:         #2b2c2e;   /* fondo scuro e testo */
  --ink-2:       #3a3b3d;
  --ink-soft:    #6f7174;
  --graphite:    #444445;   /* grigio del logo */
  --pine:        #0077a8;   /* azzurro scuro, leggibile su bianco */
  --signal:      #00afef;   /* azzurro del logo */
  --white:       #fff;

  /* Tipografia fluida */
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: clamp(1rem, 0.97rem + 0.16vw, 1.0938rem);
  --t-lead: clamp(1.125rem, 1.06rem + 0.33vw, 1.3125rem);
  --t-h3:   clamp(1.0625rem, 1.02rem + 0.22vw, 1.1875rem);
  --t-h2:   clamp(1.875rem, 1.5rem + 1.7vw, 3rem);
  --t-h1:   clamp(2.5rem, 1.6rem + 4.2vw, 5.25rem);

  /* Ritmo */
  --gutter: clamp(1.25rem, 1rem + 2.6vw, 4rem);
  --block:  clamp(3.5rem, 2.4rem + 5.2vw, 7rem);
  --measure: 64ch;

  --hair: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  --font: "Helvetica Neue", Helvetica, Arial, "Liberation Sans", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

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

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

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: var(--t-base)/1.62 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

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

a { color: var(--pine); text-underline-offset: .18em; }

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

.skip-link {
  position: absolute;
  top: 0; left: -9999px;
  z-index: 999;
  background: var(--ink);
  color: var(--white);
  padding: .8rem 1.4rem;
  text-decoration: none;
}
.skip-link:focus { left: 0; }

.wrap {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.section { padding-block: var(--block); }
.section--hi   { background: var(--paper-hi); }
.section--dark { background: var(--ink); color: var(--paper-hi); }

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}
.section__head h2 { font-size: var(--t-h2); }
.section__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: color-mix(in srgb, currentColor 22%, transparent);
}

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

.topbar {
  background: var(--ink);
  color: var(--paper-lo);
  font-size: var(--t-xs);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .35rem 1.5rem;
  min-height: 38px;
  padding-block: .3rem;
}
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { color: var(--signal); }

.langs { display: flex; gap: .3rem; margin-left: auto; }
.langs a {
  padding: .22rem .55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .6875rem;
  line-height: 1.4;
  border: 1px solid color-mix(in srgb, var(--paper-lo) 35%, transparent);
}
.langs a[aria-current="true"] {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--ink);
  font-weight: 700;
}

/* Header ------------------------------------------------------------------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--hair);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.brand__mark {
  display: grid;
  place-content: center;
  width: 2.35rem; height: 2.35rem;
  background: var(--pine);
  color: var(--white);
  font-weight: 800;
  font-size: .95rem;
  letter-spacing: -.03em;
  border-radius: .4rem;
}
.brand__name { font-weight: 700; letter-spacing: .01em; font-size: 1.02rem; }
.brand img { height: 2.6rem; width: auto; }

.nav { position: relative; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: .55rem;
  background: none; border: 1px solid var(--ink); border-radius: .4rem;
  color: var(--ink); font: inherit; font-size: var(--t-sm);
  padding: .45rem .8rem; cursor: pointer;
}
.nav__bars { width: 17px; height: 1.5px; background: currentColor; position: relative; }
.nav__bars::before, .nav__bars::after {
  content: ""; position: absolute; left: 0; width: 17px; height: 1.5px; background: currentColor;
}
.nav__bars::before { top: -5.5px; }
.nav__bars::after  { top: 5.5px; }

.nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: clamp(1rem, 2vw, 2.1rem);
}
.nav__list a {
  color: var(--ink);
  text-decoration: none;
  font-size: var(--t-sm);
  padding-block: .35rem;
  border-bottom: 2px solid transparent;
  transition: border-color .18s var(--ease);
}
.nav__list a:hover { border-bottom-color: var(--signal); }

@media (max-width: 899px) {
  .nav__list {
    display: none;
    position: absolute; top: calc(100% + .8rem); right: 0;
    min-width: 13rem;
    flex-direction: column; gap: 0;
    background: var(--paper-hi);
    border: var(--hair);
    border-radius: .5rem;
    box-shadow: 0 18px 40px -24px rgba(20,30,25,.7);
    padding: .3rem 1.1rem .6rem;
  }
  .nav[data-open="true"] .nav__list { display: flex; }
  .nav__list li + li { border-top: var(--hair); }
  .nav__list a { display: block; padding: .85rem 0; font-size: 1.02rem; }
}
@media (min-width: 900px) { .nav__toggle { display: none; } }

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

.hero {
  background: var(--ink);
  color: var(--paper-hi);
  padding-block: clamp(3.5rem, 2rem + 7vw, 7rem);
  position: relative;

}
.hero::before {
  /* reggette delle balle di carta, appena accennate */
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    104deg,
    color-mix(in srgb, var(--signal) 42%, transparent) 0 3px,
    transparent 3px 22px
  );
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 960px) {
  .hero__inner { grid-template-columns: 1.12fr .88fr; }
}

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: 1.4rem;
  font-size: var(--t-xs);
  letter-spacing: .16em;
  color: var(--signal);
}
.hero__eyebrow::before { content: ""; width: 2.2rem; height: 1px; background: var(--signal); }

.hero h1 {
  font-size: var(--t-h1);
  letter-spacing: -.04em;
  color: var(--white);
  max-width: 14ch;
}
.hero__sub {
  margin-top: 1.5rem;
  font-size: var(--t-lead);
  color: color-mix(in srgb, var(--paper-hi) 82%, transparent);
  max-width: 46ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.3rem; }

.hero__figure { position: relative; }
.hero__figure img:first-child {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: .6rem;
  background: var(--ink-2);
}
.hero__figure img + img {
  position: absolute;
  right: -1rem; bottom: -2.25rem;
  width: 50%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 7px solid var(--ink);
  border-radius: .55rem;
  background: var(--ink-2);
}
@media (max-width: 639px) {
  .hero__figure img + img {
    position: static; width: 100%; aspect-ratio: 16 / 9;
    border: 0; margin-top: .7rem;
  }
}

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

.btn {
  display: inline-flex; align-items: center;
  padding: .85rem 1.55rem;
  border: 1.5px solid transparent;
  border-radius: .4rem;
  font-weight: 700; font-size: var(--t-sm);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn--solid { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.btn--solid:hover { background: var(--white); border-color: var(--white); }
.btn--line { border-color: currentColor; color: inherit; }
.btn--line:hover { background: var(--paper-hi); border-color: var(--paper-hi); color: var(--ink); }

/* Azienda ------------------------------------------------------------------ */

.prose { max-width: var(--measure); }
.prose > p:first-child { font-size: var(--t-lead); line-height: 1.5; }
.prose strong { color: var(--pine); }

.activities { margin-top: clamp(2.75rem, 5vw, 4.5rem); }
.activities h3 { font-size: var(--t-h3); color: var(--pine); margin-bottom: 1.35rem; }
.activities ul {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  column-gap: clamp(1.5rem, 4vw, 3.5rem);
  border-top: var(--hair);
}
.activities li {
  border-bottom: var(--hair);
  padding: .85rem 0 .85rem 1.5rem;
  position: relative;
}
.activities li::before {
  content: ""; position: absolute; left: 0; top: 1.45em;
  width: .5rem; height: .5rem;
  background: var(--signal);
  border-radius: 50%;
}

/* Team --------------------------------------------------------------------- */

.team {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.1rem, 2.4vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.team img {
  width: 100%;
  aspect-ratio: 1024 / 824;
  object-fit: cover;
  border-radius: .5rem;
  background: var(--ink-2);
}
.team h3 { font-size: var(--t-h3); margin-top: .85rem; color: var(--white); }
.team p { font-size: var(--t-sm); color: var(--paper-lo); margin: .15rem 0 0; }

/* Servizi ------------------------------------------------------------------ */

.services {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: clamp(1.1rem, 2.4vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}
.service {
  background: var(--white);
  border: var(--hair);
  border-radius: .6rem;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease);
}
.service:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -20px rgba(20, 30, 25, .6);
}
.service img {
  width: 100%;
  aspect-ratio: 1024 / 536;
  object-fit: cover;
  background: var(--paper-lo);
}
.service h3 {
  font-size: var(--t-h3);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.005em;
  padding: 1.05rem 1.2rem 1.4rem;
}

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

.contact {
  display: grid;
  gap: clamp(2rem, 4.5vw, 3.5rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) { .contact { grid-template-columns: 1fr 1fr; } }

.contact__lead { font-size: var(--t-lead); max-width: 40ch; }

.mailcta {
  display: inline-flex; align-items: center;
  margin-top: 1.4rem;
  font-size: clamp(1.05rem, .95rem + .5vw, 1.4rem);
  font-weight: 700;
  color: var(--pine);
  text-decoration: none;
  border-bottom: 2px solid var(--signal);
  padding-bottom: .18rem;
}
.mailcta:hover { color: var(--ink); }

.office { margin-top: 2.25rem; }
.office h3 { font-size: var(--t-h3); color: var(--pine); margin-bottom: .45rem; }
.office address { font-style: normal; line-height: 1.85; }
.office address a { color: var(--ink); }

/* Scheda sede: sostituisce la mappa Google, nessuna richiesta esterna ------- */

.locate {
  border: var(--hair);
  border-radius: .6rem;
  overflow: hidden;
  background: var(--white);
}
.locate + .locate { margin-top: 1.25rem; }
.locate__plan { width: 100%; height: auto; background: var(--paper-hi); }
.locate__body { padding: 1.15rem 1.3rem 1.4rem; }
.locate__body h3 { font-size: var(--t-h3); margin-bottom: .3rem; }
.locate__body p { font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: .95rem; }
.locate__body .btn { border-color: var(--pine); color: var(--pine); }
.locate__body .btn:hover { background: var(--pine); color: var(--white); }

/* Documenti ---------------------------------------------------------------- */

.docs { margin-top: 2.25rem; }
.docs h3 { font-size: var(--t-sm); letter-spacing: .05em; margin-bottom: .7rem; color: var(--ink-soft); }
.docs ul { list-style: none; margin: 0; padding: 0; border-top: var(--hair); }
.docs li { border-bottom: var(--hair); }
.docs a {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .8rem 0;
  color: var(--ink); text-decoration: none;
}
.docs a::after { content: "PDF"; font-size: var(--t-xs); color: var(--ink-soft); }
.docs a:hover { color: var(--pine); }

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

.footer {
  background: var(--ink);
  color: var(--paper-lo);
  padding-block: clamp(2rem, 4vw, 3rem);
}
.footer__inner {
  display: flex; flex-wrap: wrap;
  gap: 1rem 2.5rem;
  justify-content: space-between; align-items: center;
}
.footer p { margin: 0; max-width: 62ch; font-size: var(--t-xs); line-height: 1.7; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.4rem; font-size: var(--t-sm); }
.footer a { color: var(--paper-hi); }

/* Pagine di testo (privacy, impressum, 404) -------------------------------- */

.page { padding-block: var(--block); }
.page__inner { max-width: 68ch; }
.page h1 { font-size: var(--t-h2); margin-bottom: .6rem; }
.page .updated { font-size: var(--t-sm); color: var(--ink-soft); margin-bottom: 2.5rem; }
.page h2 { font-size: var(--t-h3); margin: 2.4rem 0 .7rem; color: var(--pine); }
.page ul { padding-left: 1.2rem; }
.page li { margin-bottom: .4rem; }
.page .note {
  border-left: 3px solid var(--signal);
  background: var(--paper-hi);
  padding: 1rem 1.2rem;
  margin: 2rem 0;
  font-size: var(--t-sm);
}

.notfound { min-height: 55vh; display: grid; place-content: center; text-align: center; gap: 1.2rem; }


/* Logo --------------------------------------------------------------------- */

.brand { display: inline-flex; align-items: center; }
.brand img { height: 1.75rem; width: auto; }
@media (min-width: 600px) { .brand img { height: 2.1rem; } }

.footer__brand { display: block; margin-bottom: .9rem; }
.footer__brand img { height: 1.9rem; width: auto; }

/* Banner flotta ------------------------------------------------------------ */

.banner { background: var(--ink); }
.banner img {
  width: 100%;
  max-height: 22rem;
  object-fit: cover;
  object-position: center;
}

/* Email dei membri del team ------------------------------------------------ */

.team__mail {
  display: inline-block;
  margin-top: .3rem;
  font-size: var(--t-sm);
  color: var(--signal);
  text-decoration: none;
  word-break: break-word;
}
.team__mail:hover { text-decoration: underline; }
