/* ==========================================================================
   SOCEA — foglio di stile
   ========================================================================== */

/* Montserrat ospitato in locale (variabile, pesi 100–900, licenza SIL OFL) */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-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 {
  --teal: #63a49f;
  --teal-dark: #4f8b86;
  --petrol: #2f4d61;
  --light: #f1f4f3;
  --light-alt: #f5f8f9;
  --dark: #282929;
  --text: #27292a;
  --muted: #5d6366;
  --white: #fff;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --radius: 999px;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--light { background: var(--light); }

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

.eyebrow {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title { font-size: clamp(22px, 2.6vw, 30px); }

/* Pulsanti ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 11px 30px;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.btn:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }
.btn--small { padding: 8px 22px; font-size: 13px; }
.btn--outline { background: transparent; color: var(--petrol); box-shadow: inset 0 0 0 2px var(--teal); }
.btn--outline:hover { background: var(--light); }
button.btn { border: 0; font-family: inherit; cursor: pointer; }

.link-button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.link-button:hover { color: var(--white); text-decoration: underline; }

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--white);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: var(--petrol);
  box-shadow: 0 2px 18px rgba(0, 0, 0, .18);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
}
.site-header__logo img { width: 124px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav__list {
  display: flex; gap: 28px;
  margin: 0; padding: 0; list-style: none;
}
.site-nav__list a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.site-nav__list a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform .25s;
}
.site-nav__list a:hover::after,
.site-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__actions { display: flex; align-items: center; gap: 20px; }

.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 600; }
.lang-switch a {
  padding: 2px 6px;
  text-decoration: none;
  opacity: .6;
}
.lang-switch a:hover,
.lang-switch a[aria-current="true"] { opacity: 1; }
.lang-switch a + a { border-left: 1px solid rgba(255, 255, 255, .4); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute; left: 11px;
  width: 22px; height: 2px;
  background: currentColor;
  transition: transform .25s, opacity .25s;
}
.nav-toggle__bar { top: 21px; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; left: 0; }
.nav-toggle__bar::before { top: -7px; }
.nav-toggle__bar::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: translateY(-7px) rotate(-45deg); }

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

.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 58vh, 560px);
  padding: calc(var(--header-h) + 40px) var(--gutter) 60px;
  color: var(--white);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero--full { min-height: 100vh; min-height: 100svh; }

.hero__media {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: rgba(47, 77, 97, .6);
}
.hero--full::before {
  background: linear-gradient(180deg, rgba(47, 77, 97, .55) 0%, rgba(47, 77, 97, .45) 60%, rgba(40, 41, 41, .55) 100%);
}

.hero__title { font-size: clamp(32px, 5.5vw, 56px); }
.hero__subtitle {
  margin: 14px auto 0;
  max-width: 640px;
  font-size: clamp(16px, 2vw, 21px);
  font-weight: 500;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
}
.hero__scroll::after {
  content: "";
  position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: var(--white);
  animation: scroll-hint 1.8s infinite;
}
@keyframes scroll-hint {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(12px); }
}

/* Home: chi siamo ---------------------------------------------------------- */

.about { text-align: center; }
.about__lead {
  max-width: 900px;
  margin: 0 auto 24px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 700;
  line-height: 1.45;
}
.about__text { max-width: 640px; margin: 0 auto 32px; color: var(--muted); }

/* Home: cifre -------------------------------------------------------------- */

.stats { background: var(--light-alt); padding-block: clamp(48px, 7vw, 80px); }
.stats__inner {
  display: grid;
  grid-template-columns: 1.1fr 3fr;
  align-items: center;
  gap: 40px;
}
.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 0; padding: 0; list-style: none;
  text-align: center;
}
.stats__value {
  display: block;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--petrol);
}
.stats__label { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }

/* Home: la nostra forza ---------------------------------------------------- */

.strength { background: var(--petrol); color: var(--white); }
.strength__inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 8vw, 110px);
  align-items: center;
}
.strength .section-title { margin-bottom: 28px; }
.strength__item { padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .25); }
.strength__item h3 { margin-bottom: 8px; font-size: 17px; font-weight: 600; color: #a8d3cf; }
.strength__item p { font-size: 14px; color: rgba(255, 255, 255, .85); }
.strength__quote {
  margin-bottom: 28px;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 600;
  line-height: 1.4;
}

/* Home: settori ------------------------------------------------------------ */

.sectors__head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.sectors__head p { margin-top: 12px; color: var(--muted); }

.sectors__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 20px;
  margin: 0; padding: 0; list-style: none;
}
.sector-card figure { margin: 0; }
.sector-card__img { overflow: hidden; aspect-ratio: 4 / 5; background: var(--light); }
.sector-card__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.sector-card:hover .sector-card__img img { transform: scale(1.05); }
.sector-card figcaption {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
}
.sectors__more { margin-top: 48px; text-align: center; }

/* Blocchi a due colonne (titolo + testo) ----------------------------------- */

.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
}
.split__title { font-size: clamp(18px, 2vw, 22px); }
.split__body { color: var(--muted); }
.split + .split { margin-top: clamp(56px, 8vw, 96px); }

.columns-2 { columns: 2; column-gap: 40px; }
.columns-2 p { break-inside: avoid; }

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

.company-intro__lead {
  margin-bottom: 40px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 700;
}
.company-intro__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  color: var(--muted);
}
.company-intro__highlight {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}

.certs__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 7vw, 90px);
  align-items: center;
}
.certs__logo { max-width: 300px; margin-inline: auto; }
.certs__lead { margin-bottom: 18px; font-weight: 700; font-size: 17px; }
.certs__lead ul { margin: 6px 0 0; padding-left: 1.1em; }
.certs__group { margin-top: 32px; padding-top: 28px; border-top: 1px solid #d5dcdb; }
.certs__group img { width: 260px; margin-bottom: 14px; }
.certs p { color: var(--muted); }

.history__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  margin-top: 40px;
}
.timeline { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--light); }
.timeline__item { position: relative; padding: 0 0 26px 28px; }
.timeline__item::before {
  content: "";
  position: absolute; left: -7px; top: 6px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
}
.timeline__year { display: block; font-size: 18px; font-weight: 700; color: var(--petrol); }
.timeline__item p { font-size: 14px; color: var(--muted); }

.history__photos { display: grid; gap: 16px; align-content: start; }
.history__photos img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Produzione --------------------------------------------------------------- */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px 24px;
  margin: clamp(48px, 7vw, 80px) 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
}
.icon-grid li { display: flex; flex-direction: column; align-items: center; }
.icon-grid img { height: 64px; width: auto; transition: transform .3s; }
.icon-grid li:hover img { transform: translateY(-4px); }
.icon-grid span {
  margin-top: 16px;
  max-width: 180px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  line-height: 1.5;
  text-transform: uppercase;
  color: var(--muted);
}

.media-split {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.media-split__title { margin-bottom: 20px; font-size: clamp(18px, 2vw, 22px); }
.media-split__text { color: var(--muted); }
.media-split--reverse .media-split__images { order: -1; }

.image-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.image-pair img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; }

/* Qualità ------------------------------------------------------------------ */

.standards__intro { margin-bottom: 28px; color: var(--muted); }
.standard + .standard { margin-top: 26px; }
.standard h3 { font-size: 17px; }
.standard p { margin-top: 4px; font-size: 13px; color: var(--muted); }

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

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: stretch;
}
.contact-card h2 { margin-bottom: 24px; font-size: 24px; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-block: 14px;
  border-bottom: 1px solid #dfe5e4;
}
.contact-list dt, .contact-list .label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}
.contact-list a { text-decoration: none; font-weight: 600; color: var(--petrol); }
.contact-list a:hover { text-decoration: underline; }
.contact-card .btn { margin-top: 32px; }

.map { position: relative; min-height: 380px; background: var(--light); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.map__placeholder {
  position: absolute; inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.map__placeholder p { max-width: 380px; font-size: 14px; }
.map.is-loaded .map__placeholder { display: none; }

/* Pagine legali ------------------------------------------------------------ */

.hero--plain { min-height: 280px; background: var(--petrol); }
.hero--plain::before { display: none; }

.legal { max-width: 820px; }
.legal h2 { margin: 48px 0 14px; font-size: 20px; }
.legal h3 { margin: 28px 0 10px; font-size: 16px; }
.legal p, .legal li { color: var(--muted); }
.legal ul { padding-left: 1.2em; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--petrol); font-weight: 600; }
.legal__updated { font-size: 13px; }
.legal table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal th, .legal td { padding: 10px 12px; border-bottom: 1px solid #dfe5e4; text-align: left; vertical-align: top; }
.legal th { color: var(--text); background: var(--light); }
.legal .table-wrap { overflow-x: auto; }

/* Banner cookie ------------------------------------------------------------ */

.cookie-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  max-width: 560px;
  padding: 24px 24px 20px;
  border-radius: 6px;
  background: var(--white);
  color: var(--text);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
  border-top: 4px solid var(--teal);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__title { margin: 0 32px 8px 0; font-weight: 700; font-size: 16px; }
.cookie-banner__text { font-size: 13px; line-height: 1.6; color: var(--muted); }
.cookie-banner__text a { color: var(--petrol); font-weight: 600; }
.cookie-banner__actions { display: flex; gap: 12px; margin-top: 18px; }
.cookie-banner__actions .btn { flex: 1; text-align: center; }
.cookie-banner__close {
  position: absolute; top: 10px; right: 12px;
  width: 32px; height: 32px;
  border: 0;
  background: none;
  font-size: 24px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.cookie-banner__close:hover { color: var(--text); }

/* Fascia CTA --------------------------------------------------------------- */

.cta-band { background: var(--light); padding-block: clamp(36px, 5vw, 52px); }
.cta-band__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band__text { margin: 0; font-size: clamp(18px, 2.2vw, 24px); font-weight: 600; }

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

.site-footer { background: var(--dark); color: rgba(255, 255, 255, .85); font-size: 14px; }
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-block: clamp(56px, 7vw, 80px);
}
.site-footer__claim p { font-weight: 600; color: var(--white); }
.site-footer__title { margin-bottom: 14px; font-size: 15px; }
.site-footer__title a { text-decoration: none; color: var(--white); }
.site-footer__title a:hover { color: var(--teal); }
.site-footer__subtitle { margin-bottom: 10px; }
.site-footer__list,
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__list li { padding-left: 14px; position: relative; }
.site-footer__list li::before {
  content: ""; position: absolute; left: 0; top: .75em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--teal);
}
.site-footer__links li + li { margin-top: 8px; }
.site-footer__links a { text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { color: var(--teal); }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-block: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: 12px;
  color: rgba(255, 255, 255, .6);
}
.site-footer__bottom p { margin: 0; }
.site-footer__bottom a { text-decoration: none; }
.site-footer__bottom a:hover { color: var(--white); }

/* Animazioni all'ingresso -------------------------------------------------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll::after { animation: none; }
}

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

@media (max-width: 980px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 28px;
    background: var(--petrol);
    box-shadow: 0 14px 24px rgba(0, 0, 0, .2);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s, transform .25s, visibility .25s;
  }
  .site-header.is-open .site-nav { visibility: visible; opacity: 1; transform: none; }

  .site-nav__list { flex-direction: column; gap: 0; }
  .site-nav__list a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
  }
  .site-nav__list a::after { display: none; }
  .site-nav__list a[aria-current="page"] { color: #a8d3cf; }
  .site-nav__actions { justify-content: space-between; margin-top: 22px; }

  .stats__inner { grid-template-columns: 1fr; text-align: center; }
  .strength__inner,
  .certs__inner,
  .history__inner,
  .media-split,
  .contact__inner { grid-template-columns: 1fr; }
  .media-split--reverse .media-split__images { order: 0; }
  .company-intro__cols { grid-template-columns: 1fr 1fr; }
  .company-intro__highlight { grid-column: 1 / -1; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__claim { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .stats__list { grid-template-columns: repeat(2, 1fr); gap: 32px 16px; }
  .sectors__grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .split { grid-template-columns: 1fr; gap: 16px; }
  .columns-2 { columns: 1; }
  .icon-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 16px; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .history__photos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 520px) {
  .sectors__grid { grid-template-columns: 1fr; }
  .sector-card__img { aspect-ratio: 4 / 3; }
  .company-intro__cols { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .image-pair img { aspect-ratio: 3 / 4; }
}
