/* ==========================================================================
   GLOBAL CLEAN SERVICE SA, Design System
   Allineato a: brand identity 2026 (Montserrat / blu #008AC9 / verde #7ABD36)
   Linee guida: institutional, sober, niente glassmorphism, hover senza translateY,
   buttons 4px radius (no pill), motion 120/200/320ms, ombre neutre.
   ========================================================================== */

/* --- Reset minimale --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul, ol { list-style: none; }

/* --- Tokens --- */
:root {
  /* Brand */
  --brand-blue:        #008AC9;
  --brand-blue-700:    #006FA1;
  --brand-blue-800:    #005A85;
  --brand-blue-100:    #E5F3FB;
  --brand-blue-050:    #F2F9FD;

  --brand-green:       #7ABD36;
  --brand-green-700:   #5F9929;
  --brand-green-100:   #ECF6DF;

  --brand-dark:        #2B2E34;

  /* Neutri */
  --ink:        #2B2E34;
  --ink-700:    #4A4E55;
  --ink-500:    #7A7F88;
  --line:       #D7DBE0;
  --line-soft:  #E6E9ED;
  --bone:       #F2F4F6;
  --bone-soft:  #F8F9FB;
  --paper:      #FFFFFF;

  /* Aliases legacy (compat) */
  --ink-soft:        var(--ink-700);
  --ink-mute:        var(--ink-500);
  --brand-blue-deep: var(--brand-blue-700);
  --brand-blue-light: var(--brand-blue-100);
  --brand-green-deep: var(--brand-green-700);

  /* Tipografia (una sola famiglia, no italics, peso 400 + 700 principalmente) */
  --display:  'Montserrat', system-ui, -apple-system, sans-serif;
  --sans:     'Montserrat', system-ui, -apple-system, sans-serif;
  --mono:     'Montserrat', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px;  --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Layout */
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 80px);
  --header-h: 80px;

  /* Radius (piccoli, niente pill, niente "soft 24px") */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 10px;
  --r-pill: 999px;

  /* Motion */
  --ease:          cubic-bezier(0.2, 0.0, 0.0, 1);
  --ease-out:      cubic-bezier(0.0, 0.0, 0.2, 1);
  --dur-fast:   120ms;
  --dur-base:   200ms;
  --dur-slow:   320ms;

  /* Shadows (neutre, nessun glow, nessun colore brand) */
  --sh-1: 0 1px 2px rgba(20, 30, 45, 0.06);
  --sh-2: 0 2px 6px rgba(20, 30, 45, 0.07), 0 1px 2px rgba(20, 30, 45, 0.04);
  --sh-3: 0 8px 20px rgba(20, 30, 45, 0.08), 0 2px 4px rgba(20, 30, 45, 0.04);
  --sh-focus: 0 0 0 3px rgba(0, 138, 201, 0.30);
}

/* --- Base typography --- */
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
}

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.h-display {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.h-display em {
  font-style: normal;
  color: var(--brand-blue);
}

.h-section {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.h-section em { font-style: normal; color: var(--brand-blue); }

.h-card {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.lede {
  font-family: var(--sans);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.6;
  color: var(--ink-700);
  font-weight: 400;
  max-width: 60ch;
}

p { font-weight: 400; max-width: 65ch; }

/* --- Layout primitives --- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-block: clamp(64px, 8vw, 128px); }
.section-tight { padding-block: clamp(48px, 6vw, 96px); }
.section--bone { background: var(--bone); }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gutter);
}

.divider {
  height: 1px;
  width: 100%;
  background: var(--line-soft);
  border: 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.kicker::before {
  content: "";
  width: 32px;
  height: 2px;
  background: var(--brand-green);
}

/* --- Header (solid white, niente backdrop-filter) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-base) var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-1); }
.site-header__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: var(--header-h);
  gap: var(--s-5);
}
.brand { display: flex; align-items: center; gap: var(--s-3); justify-self: start; }
.site-header__inner > .nav { justify-self: center; }
.site-header__inner > .btn { justify-self: end; }
.brand__logo {
  display: block;
  height: 52px;
  width: auto;
}
.brand__logo--footer { height: 56px; }
.brand__logo--inverted { filter: brightness(0) invert(1); opacity: 0.92; }

.nav { display: flex; gap: var(--s-7); }
.nav a {
  font-size: 14px;
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.nav a:hover { color: var(--brand-blue); }
.nav a.is-active { color: var(--brand-blue); border-bottom-color: var(--brand-blue); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { stroke: var(--ink); }
.nav-mobile { display: none; }

@media (max-width: 920px) {
  :root { --header-h: 72px; }
  .brand__logo { height: 44px; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .site-header__inner > .nav, .site-header__inner > .btn { display: none; }
  .nav-toggle { display: inline-flex; justify-self: end; }
  .nav-mobile {
    display: block;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--paper);
    padding: var(--s-7) var(--gutter);
    transform: translateX(100%);
    transition: transform var(--dur-slow) var(--ease);
    z-index: 99;
    overflow-y: auto;
  }
  .nav-mobile.is-open { transform: translateX(0); }
  .nav-mobile a {
    display: block;
    font-family: var(--display);
    font-weight: 700;
    font-size: 24px;
    padding: var(--s-4) 0;
    border-bottom: 1px solid var(--line-soft);
    color: var(--ink);
  }
  .nav-mobile a:hover { color: var(--brand-blue); }
}

/* --- Buttons (4px radius, niente translate, hover = darken bg) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: 14px 24px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--r-xs);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
  border: 1px solid transparent;
  white-space: nowrap;
  cursor: pointer;
}
.btn--primary {
  background: var(--brand-blue);
  color: var(--paper);
}
.btn--primary:hover { background: var(--brand-blue-700); }
.btn--primary:active { background: var(--brand-blue-800); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

.btn--light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
}
.btn--light:hover { background: var(--bone); color: var(--brand-blue); }

.btn--accent {
  background: var(--brand-green);
  color: var(--paper);
}
.btn--accent:hover { background: var(--brand-green-700); }

.btn--secondary {
  background: var(--paper);
  color: var(--brand-blue);
  border-color: var(--brand-blue);
}
.btn--secondary:hover { background: var(--brand-blue-050); }

.btn .arrow {
  width: 16px; height: 16px;
  transition: transform var(--dur-fast) var(--ease-out);
}
.btn:hover .arrow { transform: translateX(3px); }

/* --- Hero (flat white, no gradient) --- */
.hero {
  position: relative;
  padding-top: clamp(48px, 6vw, 96px);
  padding-bottom: clamp(48px, 6vw, 96px);
  background: var(--paper);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
}
.hero__title { max-width: 18ch; }
.hero__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  align-items: flex-start;
}
.hero__lede { max-width: 56ch; }
.hero__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }

.hero__bottom {
  margin-top: clamp(40px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  border-top: 1px solid var(--line);
  padding-top: var(--s-7);
}
.stat { padding: var(--s-2) 0; cursor: default; }
.stat__value {
  font-family: var(--display);
  font-size: clamp(32px, 3.6vw, 48px);
  letter-spacing: -0.02em;
  line-height: 1;
  font-weight: 700;
  color: var(--ink);
}
.stat__value sup {
  font-size: 0.5em;
  vertical-align: super;
  margin-left: 2px;
  color: var(--brand-green);
  font-weight: 700;
}
.stat__flag {
  display: inline-block;
  width: 0.62em;
  height: 0.62em;
  vertical-align: 0.06em;
  margin-left: 0.22em;
  border-radius: 4px;
  overflow: hidden;
}
.stat__label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: var(--s-3);
}

@media (max-width: 720px) {
  .hero__bottom { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-6); }
}

/* --- Norm marquee (dark band) --- */
.norm-strip {
  background: var(--brand-dark);
  border-block: 1px solid var(--line);
  padding-block: var(--s-5);
  overflow: hidden;
}
.norm-strip__inner {
  display: flex;
  gap: var(--s-7);
  align-items: center;
  white-space: nowrap;
  animation: marquee 50s linear infinite;
}
.norm-strip:hover .norm-strip__inner { animation-play-state: paused; }
.norm-strip__item {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.82);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.norm-strip__item::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brand-green);
  border-radius: var(--r-pill);
  display: inline-block;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --- Brand pillars (3 colored blocks, no translateY hover) --- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: var(--s-8);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.pillar {
  padding: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 240px;
  color: var(--paper);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.pillar:hover {
  transform: translateY(-3px);
  box-shadow: var(--sh-3);
  z-index: 1;
}
.pillar--green { background: var(--brand-green); }
.pillar--blue  { background: var(--brand-blue); }
.pillar--dark  { background: var(--brand-dark); }
.pillar h3,
.pillar__title {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--paper);
  margin: 0;
}
.pillar__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--s-3);
}
.pillar__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pillar__desc {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 400;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.92);
}
@media (max-width: 920px) {
  .pillars {
    grid-template-columns: 1fr;
    gap: var(--s-3);
    border-radius: 0;
    overflow: visible;
  }
  .pillar {
    min-height: 0;
    border-radius: var(--r-sm);
  }
}

/* --- Service cards (preview grid, hairline border, no translate) --- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.svc-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  min-height: 280px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.svc-item:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--sh-3);
  transform: translateY(-3px);
}
.svc-item:hover .svc-item__title { color: var(--brand-blue); }

.svc-item__icon {
  width: 40px;
  height: 40px;
  color: var(--brand-blue);
  margin-bottom: var(--s-2);
}
.svc-item__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.svc-item__num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-green-700);
}
.svc-item__title {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: auto;
  max-width: 22ch;
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-item__desc {
  color: var(--ink-700);
  font-size: 14px;
  max-width: 46ch;
  line-height: 1.55;
}
.svc-item__more {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--brand-blue);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.svc-item__more::after { content: "→"; transition: transform var(--dur-fast) var(--ease-out); }
.svc-item:hover .svc-item__more::after { transform: translateX(4px); }

@media (max-width: 920px) {
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; }
  .svc-item { min-height: 0; }
}

/* --- Sectors row (dark section) --- */
.dark-section {
  background: var(--brand-dark);
  color: var(--paper);
}
.dark-section .eyebrow { color: var(--brand-green); }
.dark-section h2, .dark-section h3 { color: var(--paper); }
.dark-section .lede { color: rgba(255, 255, 255, 0.78); }
.dark-section .h-section em { color: var(--brand-green); }
.dark-section .kicker::before { background: var(--brand-green); }

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.sector-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 180px;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.sector-card:hover {
  border-color: var(--brand-green);
  background: rgba(122, 189, 54, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}
.sector-card__index {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-green);
}
.sector-card__name {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.sector-card__desc {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: auto;
  max-width: 32ch;
  line-height: 1.55;
}
@media (max-width: 920px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sectors-grid { grid-template-columns: 1fr; } .sector-card { min-height: 0; } }

/* --- Compliance --- */
.compliance { background: var(--bone); border-block: 1px solid var(--line-soft); }
.compliance__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-9);
  align-items: start;
}
.norms-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5) var(--s-6);
  margin-top: var(--s-6);
}
.norm-item {
  border-top: 2px solid var(--brand-blue);
  padding-top: var(--s-3);
  transition: border-top-color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.norm-item:hover {
  border-top-color: var(--brand-green);
  transform: translateY(-2px);
}
.norm-item:hover .norm-item__code { color: var(--brand-blue); }
.norm-item__code {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--ink);
  display: block;
  margin-bottom: var(--s-2);
  text-transform: uppercase;
  transition: color var(--dur-fast) var(--ease-out);
}
.norm-item__desc {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.55;
  font-weight: 400;
}
@media (max-width: 920px) {
  .compliance__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .norms-list { grid-template-columns: 1fr; }
}

/* --- Process --- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
  counter-reset: step;
}
.process-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-5);
  counter-increment: step;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.process-step:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--sh-2);
  transform: translateY(-3px);
}
.process-step:hover .process-step__title { color: var(--brand-blue); }
.process-step__num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-blue);
}
.process-step__num::before { content: "Fase " counter(step, decimal-leading-zero); }
.process-step__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin-top: var(--s-3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  transition: color var(--dur-fast) var(--ease-out);
}
.process-step__desc {
  font-size: 13px;
  color: var(--ink-700);
  margin-top: var(--s-3);
  line-height: 1.55;
}
@media (max-width: 920px) { .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: var(--s-5); } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }

/* --- CTA finale --- */
.cta-block {
  position: relative;
  background: var(--brand-dark);
  color: var(--paper);
  padding: clamp(40px, 6vw, 80px) clamp(28px, 4vw, 56px);
  border-radius: var(--r-md);
  overflow: hidden;
}
.cta-block::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  background: radial-gradient(circle at top right, rgba(0, 138, 201, 0.18), transparent 70%);
  pointer-events: none;
}
.cta-block .h-section { max-width: 18ch; position: relative; color: var(--paper); }
.cta-block .h-section em { color: var(--brand-green); }
.cta-block .lede { color: rgba(255, 255, 255, 0.82); position: relative; max-width: 56ch; }
.cta-block__row {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-top: var(--s-6);
  position: relative;
}

/* --- Footer --- */
.site-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 4fr 2fr 2fr 2fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--s-4);
}
.footer-col a, .footer-col p {
  display: block;
  font-size: 14px;
  color: var(--ink-700);
  padding: 4px 0;
  line-height: 1.6;
  font-weight: 400;
}
.footer-col a {
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-col a:hover { color: var(--brand-blue); }
.footer-brand .brand { margin-bottom: var(--s-4); }
.footer-brand p { max-width: 38ch; font-size: 14px; }
.site-footer__bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

/* ==========================================================================
   PAGINE INTERNE
   ========================================================================== */

/* Hero pagina interna */
.page-hero {
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.page-hero__crumb {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: var(--s-4);
}
.page-hero__crumb a {
  color: var(--ink-500);
  transition: color var(--dur-fast) var(--ease-out);
}
.page-hero__crumb a:hover { color: var(--brand-blue); }
.page-hero__title { max-width: 18ch; margin-bottom: var(--s-5); }
.page-hero__lede { max-width: 60ch; }

/* --- Servizi: lista dettagliata --- */
.svc-detail-list { border-top: 1px solid var(--line-soft); }
.svc-detail-row {
  display: grid;
  grid-template-columns: 80px 4fr 5fr;
  gap: var(--s-6);
  padding-block: var(--s-7);
  border-bottom: 1px solid var(--line-soft);
  align-items: start;
  transition: background var(--dur-fast) var(--ease-out);
}
.svc-detail-row:hover { background: var(--bone-soft); }
.svc-detail-row:hover .svc-detail-row__icon { color: var(--brand-blue-700); }
.svc-detail-row:hover .svc-detail-row__title { color: var(--brand-blue); }

.svc-detail-row__icon {
  width: 56px;
  height: 56px;
  color: var(--brand-blue);
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-detail-row__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc-detail-row__num {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--brand-blue);
  text-transform: uppercase;
  margin-top: var(--s-2);
}
.svc-detail-row__title {
  font-family: var(--display);
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  transition: color var(--dur-fast) var(--ease-out);
}
.svc-detail-row__body {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.65;
}
.svc-detail-row__body p + p { margin-top: var(--s-4); }
.svc-detail-row__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.tag {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--brand-blue-100);
  color: var(--brand-blue-800);
  transition: background var(--dur-fast) var(--ease-out);
}
.tag:hover { background: var(--brand-blue); color: var(--paper); }
.tag--green {
  background: var(--brand-green-100);
  color: var(--brand-green-700);
}
.tag--green:hover { background: var(--brand-green-700); color: var(--paper); }
@media (max-width: 920px) {
  .svc-detail-row { grid-template-columns: 1fr; gap: var(--s-4); padding-block: var(--s-6); }
  .svc-detail-row__icon { width: 48px; height: 48px; }
}

/* --- Chi siamo: storia con foto --- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-9);
  align-items: start;
}
.about-intro__head { display: flex; flex-direction: column; gap: var(--s-5); }
.about-intro__body { display: flex; flex-direction: column; gap: var(--s-4); }
.about-intro__body p { color: var(--ink-700); font-size: 16px; line-height: 1.7; font-weight: 400; max-width: 56ch; }
@media (max-width: 920px) {
  .about-intro { grid-template-columns: 1fr; gap: var(--s-7); }
}

/* --- Photo placeholder utility --- */
.photo-placeholder {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
  background:
    linear-gradient(135deg, rgba(43, 46, 52, 0.42), rgba(0, 138, 201, 0.12)),
    linear-gradient(180deg, #B8C2CC 0%, #8E99A4 100%);
}
.photo-placeholder--portrait { aspect-ratio: 4 / 5; }
.photo-placeholder--landscape { aspect-ratio: 4 / 3; }
.photo-placeholder--square { aspect-ratio: 1 / 1; }
.photo-placeholder--wide { aspect-ratio: 16 / 9; }
.photo-placeholder__label {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  background: rgba(43, 46, 52, 0.85);
  color: var(--paper);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 3px;
  max-width: calc(100% - var(--s-6));
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* --- Values cards (chi-siamo) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.value {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  min-height: 240px;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.value:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--sh-3);
  transform: translateY(-3px);
}
.value:hover .value__title { color: var(--brand-blue); }
.value__num {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-blue);
}
.value__title {
  font-family: var(--display);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
  transition: color var(--dur-fast) var(--ease-out);
}
.value__desc {
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.6;
  margin-top: auto;
}
@media (max-width: 920px) { .values-grid { grid-template-columns: 1fr; } .value { min-height: 0; } }

/* --- Timeline --- */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  margin-top: var(--s-7);
}
.tl-item {
  border-top: 2px solid var(--brand-green);
  padding-top: var(--s-4);
  transition: border-top-color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.tl-item:hover {
  border-top-color: var(--brand-blue);
  transform: translateY(-2px);
}
.tl-item__year {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(28px, 2.6vw, 40px);
  letter-spacing: -0.02em;
  color: var(--brand-blue);
  line-height: 1;
}
.tl-item__title {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  margin-top: var(--s-3);
  line-height: 1.25;
  color: var(--paper);
}
.tl-item__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: var(--s-2);
  line-height: 1.55;
}
@media (max-width: 920px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .timeline { grid-template-columns: 1fr; } }

/* --- Contact form / info --- */
.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--s-9);
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: var(--s-5); }
.contact-info__block {
  border-top: 2px solid var(--brand-blue);
  padding-top: var(--s-3);
  transition: border-top-color var(--dur-fast) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.contact-info__block:hover {
  border-top-color: var(--brand-green);
  transform: translateY(-2px);
}
.contact-info__icon {
  width: 24px;
  height: 24px;
  color: var(--brand-blue);
  margin-bottom: var(--s-3);
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-info__icon svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.contact-info__block:hover .contact-info__icon { color: var(--brand-green-700); }
.contact-info__block h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: var(--s-2);
}
.contact-info__block p, .contact-info__block a {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--ink);
  display: block;
  transition: color var(--dur-fast) var(--ease-out);
}
.contact-info__block a:hover { color: var(--brand-blue); }

.form-card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
  margin-bottom: var(--s-4);
}
.form-row--full { grid-template-columns: 1fr; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}
.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  padding: 11px 13px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--r-xs);
  color: var(--ink);
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: var(--sh-focus);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-top: var(--s-5);
}
.form-note {
  font-size: 12px;
  color: var(--ink-500);
  max-width: 38ch;
  font-weight: 400;
  line-height: 1.5;
}
.form-honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 920px) {
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .form-row { grid-template-columns: 1fr; }
}

/* --- Reveal animation (fade + 6px translate) --- */
.reveal {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}
.reveal.is-visible { opacity: 1; transform: none; }

[data-delay="1"] { transition-delay: 0.06s; }
[data-delay="2"] { transition-delay: 0.12s; }
[data-delay="3"] { transition-delay: 0.18s; }
[data-delay="4"] { transition-delay: 0.24s; }

/* --- Utility --- */
.text-mute { color: var(--ink-500); }
.maxw-prose { max-width: 60ch; }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); }
.mt-7 { margin-top: var(--s-7); }
.mt-8 { margin-top: var(--s-8); }

/* --- Language dropdown --- */
.lang-drop {
  position: relative;
}
.lang-drop__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  padding: 5px 8px;
  border-radius: 4px;
  transition: color 120ms, background 120ms;
}
.lang-drop__btn:hover { color: var(--ink); background: var(--bone); }
.lang-drop__chevron { transition: transform 200ms; flex-shrink: 0; }
.lang-drop.is-open .lang-drop__chevron { transform: rotate(180deg); }
.lang-drop__menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  overflow: hidden;
  min-width: 64px;
  z-index: 200;
}
.lang-drop.is-open .lang-drop__menu { display: block; }
.lang-drop__menu .lang-btn {
  display: block;
  width: 100%;
  text-align: left;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  padding: 9px 14px;
  border-bottom: 1px solid var(--line-soft);
  transition: color 120ms, background 120ms;
}
.lang-drop__menu .lang-btn:last-child { border-bottom: none; }
.lang-drop__menu .lang-btn:hover { color: var(--ink); background: var(--bone); }
.lang-drop__menu .lang-btn.is-active { color: var(--brand-blue); font-weight: 700; }
/* mobile: nel menu aperto */
.lang-switcher--mobile {
  display: flex;
  height: auto;
  border-top: 1px solid var(--line-soft);
  padding: 14px 16px;
  justify-content: center;
  gap: 4px;
}
.lang-switcher--mobile .lang-btn {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  transition: color 120ms, background 120ms;
}
.lang-switcher--mobile .lang-btn:hover { color: var(--ink); background: var(--bone); }
.lang-switcher--mobile .lang-btn.is-active { color: var(--brand-blue); font-weight: 700; }

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