/* T-Flowers one page - design
   Palette dai loghi: verde #3ca935, blu #1e5aa8, navy #0f3c7a.
   Font: Montserrat (titoli in maiuscolo/bold come nella brochure). */

:root {
  --green: #3ca935;
  --green-dark: #2a8a25;
  --green-soft: #e9f6e8;
  --blue: #1e5aa8;
  --navy: #0f3c7a;
  --navy-dark: #082a58;
  --ink: #1b2430;
  --muted: #5c6877;
  --bg-soft: #f3f7fb;
  --white: #ffffff;
  --line: #e1e8f0;
  --radius: 22px;
  --shadow: 0 18px 44px rgba(15, 60, 122, 0.12);
  --shadow-sm: 0 8px 22px rgba(15, 60, 122, 0.1);
  --font: 'Montserrat', Arial, Helvetica, sans-serif;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }

h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; color: var(--navy); font-weight: 800; }
h3 { font-size: 1.1rem; line-height: 1.3; }

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.section { position: relative; padding: clamp(70px, 9vw, 120px) 0; }

/* ---------- Titoli stile brochure: riga navy + titolo verde ---------- */
.kicker {
  display: block;
  font-size: clamp(.95rem, 1.8vw, 1.25rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--navy);
  margin: 0 0 .15em;
}
.kicker-light { color: #cfe0f5; }
.title-green, .title-light {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--green);
}
.title-light { color: var(--white); }
.title-light span { color: #7fe06f; }

.lead { font-size: 1.08rem; color: var(--muted); }
.lead-light { font-size: 1.1rem; color: #d4e3f6; }

.section-head { text-align: center; max-width: 860px; margin: 0 auto 56px; }
.section-head .lead { margin: 14px auto 0; }

/* ---------- Bottoni ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background .25s, color .25s, transform .25s, box-shadow .25s, border-color .25s;
}
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 10px 24px rgba(60, 169, 53, .35); }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(60, 169, 53, .45); }
.btn-ghost { border-color: rgba(255, 255, 255, .8); color: #fff; backdrop-filter: blur(4px); background: rgba(255, 255, 255, .08); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-block { display: flex; width: 100%; margin-top: 12px; }

/* ---------- Header flottante ---------- */
.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: min(1180px, 94%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 14px 8px 22px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(14px);
  border-radius: 999px;
  box-shadow: 0 6px 24px rgba(8, 42, 88, .14);
  transition: box-shadow .3s, background .3s;
}
.site-header.scrolled { box-shadow: 0 10px 34px rgba(8, 42, 88, .22); background: rgba(255, 255, 255, .97); }

.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand-logo { height: 52px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: .9rem;
  padding: 9px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: var(--green-soft); color: var(--green-dark); }
.main-nav a.nav-cta { background: var(--green); color: #fff; margin-left: 6px; }
.main-nav a.nav-cta:hover { background: var(--green-dark); color: #fff; }

/* ---------- Strumenti header: selettore lingua + menu ---------- */
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.lang-btn {
  border: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 7px 11px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang-btn:hover { background: var(--green-soft); color: var(--green-dark); }
.lang-btn[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lang-btn:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Selettore nel footer (sfondo scuro): versione chiara, testo esteso */
.lang-switch--dark {
  margin: 4px auto 22px;
  flex-wrap: wrap;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .2);
}
.lang-switch--dark .lang-btn { color: #d4e3f6; padding: 9px 16px; font-size: .85rem; }
.lang-switch--dark .lang-btn:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.lang-switch--dark .lang-btn[aria-pressed="true"] { background: var(--green); color: #fff; }

.flag-de { background: linear-gradient(#000 0 33%, #dd0000 33% 66%, #ffce00 66%); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--green-soft);
  cursor: pointer;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
  transition: transform .3s, opacity .3s, top .3s;
}
.menu-toggle span:nth-child(1) { top: 16px; }
.menu-toggle span:nth-child(2) { top: 22px; }
.menu-toggle span:nth-child(3) { top: 28px; }
.menu-toggle.open span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  color: #fff;
  background: var(--navy-dark);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
  animation: slow-zoom 24s ease-in-out infinite alternate;
}
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(8, 42, 88, .93) 0%, rgba(8, 42, 88, .7) 45%, rgba(8, 42, 88, .05) 100%),
    linear-gradient(0deg, rgba(8, 42, 88, .55) 0%, transparent 35%);
}
.hero-content { position: relative; z-index: 2; padding: 150px 0 170px; }
.pill {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .35);
  backdrop-filter: blur(6px);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 6.4vw, 5rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.02em;
  max-width: 820px;
  margin-bottom: .35em;
}
.hero h1 span { display: block; color: #7fe06f; }
/* Parole lunghe (es. tedesco "Blumenlieferkette") vanno a capo invece di uscire dallo schermo */
.hero h1 { overflow-wrap: anywhere; hyphens: auto; }
html[lang="de"] .hero h1 { font-size: clamp(2.1rem, 5.4vw, 4.3rem); }
html[lang="nl"] .hero h1 { font-size: clamp(2.3rem, 6vw, 4.6rem); }
.hero-lead { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 700; max-width: 640px; margin-bottom: .4em; }
.hero-sub { color: #d4e3f6; max-width: 600px; margin-bottom: 2.2em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Download brochure (nell'hero) ---------- */
/* Desktop: testo a sinistra, card brochure a destra, visibile subito */
.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .85fr);
  column-gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.hero-content > * { grid-column: 1; }
.hero-content > .pill { justify-self: start; }
.hero-content > .hero-actions { margin-bottom: 0; }
.hero-content > .brochure-box { grid-column: 2; grid-row: 1 / span 5; align-self: center; }

.brochure-box {
  margin-top: 0;
  width: 100%;
  padding: 22px 24px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .96);
  color: var(--navy);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .35);
  border-left: 6px solid var(--green);
}
.brochure-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.brochure-icon {
  width: 50px;
  height: 50px;
  flex: none;
  border-radius: 16px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px rgba(60, 169, 53, .4);
}
.brochure-head h2 { margin: 0; font-size: 1.3rem; text-transform: uppercase; letter-spacing: .01em; }
.brochure-head p { margin: 0; font-size: .88rem; color: var(--muted); font-weight: 600; }
.brochure-langs { display: grid; grid-template-columns: 1fr; gap: 12px; }
.dl-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 2px solid var(--line);
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  transition: background .25s, border-color .25s, color .25s, transform .25s, box-shadow .25s;
}
.dl-btn .flag { width: 28px; height: 28px; }
.dl-name { flex: 1; }
.dl-type {
  font-size: .68rem;
  letter-spacing: .08em;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  transition: background .25s;
}
.dl-btn:hover { background: var(--green); border-color: var(--green); color: #fff; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(60, 169, 53, .35); }
.dl-btn:hover .dl-type { background: rgba(255, 255, 255, .28); }
.flag-en {
  background:
    linear-gradient(#cf142b, #cf142b) center / 100% 22% no-repeat,
    linear-gradient(#cf142b, #cf142b) center / 22% 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 40% no-repeat,
    linear-gradient(#fff, #fff) center / 40% 100% no-repeat,
    #1b3f94;
}

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

/* ---------- Chi c'e' dietro: T group ---------- */
.section-about { padding-top: 0; }
.about-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  align-items: center;
  gap: clamp(24px, 5vw, 60px);
  padding: clamp(28px, 5vw, 52px);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--green-soft) 0%, #f3f7fb 100%);
  border: 1px solid var(--line);
}
.about-logo { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); }
.about-logo img { width: 100%; }
.about-text .title-green { margin-bottom: .3em; }
.about-text p { color: var(--muted); max-width: 560px; }
.about-text .btn { margin-top: 6px; }

/* ---------- Numeri ---------- */
.stats {
  position: relative;
  z-index: 5;
  margin-top: -84px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-card {
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-right: 1px solid var(--line);
}
.stat-card:last-child { border-right: 0; }
.stat-num { font-size: clamp(2rem, 3.6vw, 2.8rem); font-weight: 900; color: var(--green); line-height: 1; }
.stat-num small { font-size: 1.1rem; margin-left: 2px; }
.stat-label { font-size: .85rem; font-weight: 600; color: var(--navy); line-height: 1.4; }

/* ---------- Problema ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.problem-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.problem-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.problem-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.problem-num {
  position: absolute;
  top: 10px;
  right: 18px;
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--bg-soft);
  line-height: 1;
}
.problem-icon {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 0 0 5px rgba(0, 0, 0, .05);
}
.icon-red { background: #f2454a; box-shadow: 0 0 0 5px #ffd5d6; }
.icon-blue { background: #3b9ff0; box-shadow: 0 0 0 5px #cfeaff; }
.icon-yellow { background: #efae1f; box-shadow: 0 0 0 5px #fff1b8; }
.icon-green { background: #1f9a2c; box-shadow: 0 0 0 5px #c8f0cb; }

.answer {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  gap: 30px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(30px, 5vw, 56px);
  position: relative;
  overflow: hidden;
}
.answer::before {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60, 169, 53, .45), transparent 70%);
}
.answer-text, .answer-logo { position: relative; }
.answer-title { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 900; text-transform: uppercase; color: #7fe06f; margin-bottom: .2em; }
.answer p { color: #d4e3f6; font-size: 1.05rem; }
.answer .btn { margin-top: 8px; }
.answer-logo {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  justify-content: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .25);
}
.answer-logo img { width: min(240px, 100%); }

/* ---------- Fascia scorrevole ---------- */
.marquee {
  background: var(--green);
  color: #fff;
  overflow: hidden;
  padding: 18px 0;
  transform: rotate(-1.2deg);
  margin: 10px -2% 30px;
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  animation: marquee 38s linear infinite;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 1.05rem;
  white-space: nowrap;
}
.marquee-track i { width: 10px; height: 10px; border-radius: 50%; background: #fff; opacity: .7; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Layout a due colonne ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.two-col-wide { grid-template-columns: 1.05fr .95fr; }

/* ---------- Servizio ---------- */
.service-media { position: relative; padding: 0 0 30px 30px; }
.arch {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
  background: var(--bg-soft);
}
.arch img { width: 100%; height: 100%; object-fit: cover; }
.service-media::before {
  content: '';
  position: absolute;
  inset: 24px 24px 0 0;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 3px solid var(--green);
  z-index: -1;
  transform: translate(-18px, 18px);
}
.float-badge {
  position: absolute;
  left: 0;
  bottom: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 20px 14px 14px;
  border-radius: 18px;
  box-shadow: var(--shadow);
  font-size: .82rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
  animation: float 5s ease-in-out infinite;
}
.float-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.feature {
  background: var(--bg-soft);
  border-radius: 18px;
  padding: 24px 22px;
  transition: background .3s, transform .3s, box-shadow .3s;
}
.feature:hover { background: #fff; transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature h3 { font-size: .98rem; margin-bottom: .35em; }
.feature p { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.55; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--green);
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}

/* ---------- Rete / tre poli ---------- */
.section-network { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); overflow: hidden; }
.network-map { position: absolute; top: -40px; right: -12%; width: min(980px, 110%); opacity: .55; pointer-events: none; }
.network-inner { position: relative; }

.hub-diagram {
  position: relative;
  width: min(780px, 100%);
  aspect-ratio: 3 / 2;
  margin: 0 auto 90px;
}
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hub-lines line { stroke: var(--green); stroke-width: .9; stroke-dasharray: 2.4 1.6; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -8; } }

.hub-node { position: absolute; margin: 0; width: 20%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.hub-top { left: 50%; top: 20%; }
.hub-left { left: 20%; top: 68%; }
.hub-right { left: 80%; top: 68%; }
.hub-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: clamp(3px, .6vw, 6px) solid var(--c, var(--navy));
  box-shadow: var(--shadow);
  background: #fff;
  transition: transform .35s;
}
.hub-node:hover .hub-photo { transform: scale(1.08); }
.hub-photo img { width: 100%; height: 100%; object-fit: cover; }
.hub-gold { --c: #b98a3a; }
.hub-blue { --c: #2b9ad6; }
.hub-red { --c: #b3283a; }
.hub-node figcaption {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-weight: 800;
  font-size: clamp(.68rem, 1.6vw, .95rem);
  color: var(--navy);
}
.flag { width: 18px; height: 18px; border-radius: 50%; display: inline-block; border: 1px solid #c8d1db; flex: none; }
.flag-nl { background: linear-gradient(#ae1c28 0 33%, #fff 33% 66%, #21468b 66%); }
.flag-it { background: linear-gradient(90deg, #009246 0 33%, #fff 33% 66%, #ce2b37 66%); }

.hub-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.hub-card {
  background: #fff;
  border-radius: 18px;
  padding: 24px 26px;
  border-left: 5px solid var(--green);
  box-shadow: var(--shadow-sm);
}
.hub-card p { margin: 0; color: var(--muted); font-size: .92rem; }

/* ---------- Tempi di consegna ---------- */
.section-times {
  background:
    radial-gradient(circle at 90% 10%, rgba(60, 169, 53, .35), transparent 40%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
}
.times { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 34px 0 0; }
.time-card {
  position: relative;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(6px);
  border-radius: 20px;
  padding: 22px 22px 22px 92px;
  min-height: 112px;
  transition: background .3s, transform .3s;
}
.time-card:hover { background: rgba(255, 255, 255, .15); transform: translateY(-4px); }
.ring {
  position: absolute;
  left: 20px;
  top: 50%;
  width: 54px;
  height: 54px;
  margin-top: -27px;
  border-radius: 50%;
  background: conic-gradient(#7fe06f calc(var(--p) * 1%), rgba(255, 255, 255, .18) 0);
}
.ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: var(--navy); }
.time-card dt { font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .82rem; color: #bcd3f0; }
.time-card dd { margin: 2px 0 0; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 900; color: #fff; line-height: 1.1; }
.time-card dd small { font-size: 1rem; margin-left: 2px; color: #7fe06f; }

.times-media { position: relative; }
.times-media > img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.times-badge {
  position: absolute;
  left: -26px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--green);
  color: #fff;
  padding: 16px 24px;
  border-radius: 18px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .3);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.35;
  animation: float 5s ease-in-out infinite;
}
.times-badge strong { font-size: 2.4rem; font-weight: 900; line-height: 1; }

/* ---------- Galleria ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 16px;
}
.bento-item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--bg-soft); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.bento-item:hover img { transform: scale(1.07); }
.bento-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 42, 88, .7), transparent 45%);
  pointer-events: none;
}
.bento-item figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 14px;
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: .82rem;
}
.b1 { grid-column: span 2; grid-row: span 2; }
.b2 { grid-column: span 2; }
.b3 { grid-column: span 1; }
.b4 { grid-column: span 1; }

/* ---------- Contatti ---------- */
.contact {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: #fff;
  overflow: hidden;
}
.blob { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.blob-1 { width: 460px; height: 460px; left: -160px; bottom: -200px; background: radial-gradient(circle, rgba(60, 169, 53, .4), transparent 70%); }
.blob-2 { width: 380px; height: 380px; right: -120px; top: -140px; background: radial-gradient(circle, rgba(63, 160, 240, .35), transparent 70%); }
.contact .container { position: relative; }
.contact-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: center; gap: 16px; }
.ci {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7fe06f;
  flex: none;
}
.contact-list small { display: block; font-size: .75rem; color: #a9c4e6; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; line-height: 1.2; }
.contact-list a { color: #fff; font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.contact-list a:hover { color: #7fe06f; }
.contact-card {
  background: #fff;
  color: var(--ink);
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(28px, 4vw, 42px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .3);
}
.contact-card h3 { font-size: 1.5rem; }
.contact-card p { color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: #a9c4e6; padding: 48px 0 36px; text-align: center; font-size: .9rem; }
.footer-inner p { margin: 6px 0; }
.footer-logos {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px 28px;
  background: #fff;
  border-radius: var(--radius);
  padding: 18px 34px;
  margin-bottom: 22px;
}
.footer-logos img { height: 72px; width: auto; }
.footer-sep { width: 1px; height: 54px; background: var(--line); }
.site-footer a { color: #fff; }

/* ---------- Animazioni di ingresso ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .two-col, .two-col-wide { grid-template-columns: 1fr; }
  .answer { grid-template-columns: 1fr; }
  .times-badge { left: 14px; }
  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .b1 { grid-column: span 2; grid-row: span 1; }
  .b2 { grid-column: span 2; }
  .b3, .b4 { grid-column: span 1; }
  .service-media { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 1100px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 16px 40px rgba(8, 42, 88, .22);
    display: none;
  }
  .main-nav.open { display: flex; animation: menu-in .25s ease; }
  @keyframes menu-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
  .main-nav a { text-align: center; padding: 13px 16px; }
  .main-nav a.nav-cta { margin: 6px 0 0; }
}

@media (max-width: 1000px) {
  .hero-content { display: block; }
  .hero-content > .brochure-box { margin-top: 36px; max-width: 560px; }
  .brochure-langs { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 800px) {
  .about-card { grid-template-columns: 1fr; text-align: center; }
  .about-logo { max-width: 260px; margin: 0 auto; }
  .about-text p { margin-left: auto; margin-right: auto; }
}

@media (max-width: 600px) {
  .hero-content { padding: 112px 0 120px; }
  .hero-overlay { background: linear-gradient(180deg, rgba(8, 42, 88, .8), rgba(8, 42, 88, .9)); }
  /* Telefono: titolo, poi subito la brochure, poi il resto del testo */
  .hero-content { display: flex; flex-direction: column; }
  .hero-content > .brochure-box { order: 1; margin: 6px 0 26px; padding: 16px 14px 16px; max-width: none; }
  .hero-content > .hero-sub { order: 2; }
  .hero-content > .hero-actions { order: 3; }
  .hero-sub { display: none; }
  .brochure-head { margin-bottom: 12px; }
  .brochure-head h2 { font-size: 1.1rem; }
  .brochure-langs { gap: 8px; }
  .dl-btn { flex-direction: column; text-align: center; gap: 6px; padding: 12px 6px; font-size: .84rem; }
  .dl-btn .flag { width: 30px; height: 30px; }
  .dl-name { flex: none; }
  .stats { margin-top: -64px; }
  .stat-card { padding: 22px 18px; }
  .feature-grid, .times { grid-template-columns: 1fr; }
  .service-media { padding: 0 0 26px 18px; }
  .float-badge { bottom: 44px; }
  .hub-diagram { margin-bottom: 70px; }
  .flag { width: 14px; height: 14px; }
  .bento { grid-auto-rows: 160px; gap: 12px; }
  .times-badge { padding: 12px 18px; }
  .footer-sep { display: none; }
  .footer-logos { padding: 16px 22px; }
  .marquee { transform: rotate(-1.5deg); margin: 10px 0 30px; }
}

/* Nessuno scorrimento orizzontale: la fascia ruotata non deve allargare la pagina */
html, body { overflow-x: clip; }

/* ---------- Ottimizzazione mobile (telefoni) ---------- */
/* Barra azioni fissa in basso: nascosta su desktop */
.mobile-bar { display: none; }

@media (max-width: 600px) {
  body { padding-bottom: 78px; }
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .title-green, .title-light { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .lead, .lead-light { font-size: 1rem; }

  /* Header: più stretto, con tutti i controlli a portata di pollice */
  .site-header { top: 10px; width: calc(100% - 20px); padding: 6px 8px 6px 14px; gap: 8px; }
  .brand-logo { height: 42px; }
  .header-tools { gap: 6px; }
  .lang-switch { padding: 3px; }
  .lang-btn { padding: 9px 9px; min-width: 40px; min-height: 38px; font-size: .75rem; }
  .menu-toggle { width: 44px; height: 44px; }
  .menu-toggle span { left: 12px; right: 12px; }
  .menu-toggle span:nth-child(1) { top: 15px; }
  .menu-toggle span:nth-child(2) { top: 21px; }
  .menu-toggle span:nth-child(3) { top: 27px; }
  .menu-toggle.open span:nth-child(1), .menu-toggle.open span:nth-child(3) { top: 21px; }
  .main-nav { top: calc(100% + 8px); left: -4px; right: -4px; }
  .main-nav a { font-size: 1rem; padding: 14px 16px; min-height: 48px; display: flex; align-items: center; justify-content: center; }
  html { scroll-padding-top: 84px; }

  /* Pulsanti a tutta larghezza, facili da toccare */
  .hero-actions .btn { flex: 1 1 100%; }
  .btn { padding: 15px 24px; }
  .answer .btn { width: 100%; }
  .about-text .btn { width: 100%; }
  .contact-card .btn { width: 100%; }

  /* Diagramma tre poli: in colonna, niente linee sovrapposte alle foto */
  .hub-diagram { width: 100%; aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; gap: 44px; margin: 0 0 56px; }
  .hub-lines { display: none; }
  .hub-node, .hub-top, .hub-left, .hub-right { position: relative; inset: auto; left: auto; top: auto; transform: none; width: min(230px, 62vw); margin: 0 auto; }
  .hub-node:hover .hub-photo { transform: none; }
  .hub-node figcaption { position: static; transform: none; justify-content: center; margin-top: 12px; font-size: .95rem; white-space: normal; text-align: center; }
  .hub-cards { grid-template-columns: 1fr; }

  /* Immagini a tutta larghezza nelle sezioni tempi e servizio */
  .times-media > img { aspect-ratio: 4 / 3.4; }
  .times-badge { left: 12px; bottom: 12px; }
  .times-badge strong { font-size: 1.9rem; }
  .service-media { padding: 0 0 22px 14px; }
  .service-media::before { inset: 16px 16px 0 0; }
  /* Badge contenuto nello schermo: non deve uscire dal bordo destro */
  .float-badge { left: 4px; bottom: 30px; max-width: calc(100% - 24px); font-size: .76rem; padding: 10px 14px 10px 10px; }
  .float-badge > span:last-child { overflow-wrap: anywhere; min-width: 0; }
  .float-badge-icon { width: 38px; height: 38px; }
  .feature { padding: 20px 18px; }

  /* Galleria: due colonne, didascalie leggibili */
  .bento-item figcaption { left: 12px; bottom: 10px; font-size: .74rem; }

  /* Footer */
  .footer-logos img { height: 60px; }
  .lang-switch--dark { width: 100%; }
  .lang-switch--dark .lang-btn { flex: 1 1 auto; padding: 10px 10px; font-size: .8rem; }

  /* Barra azioni fissa in basso */
  .mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 42, 88, .96);
    backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(8, 42, 88, .25);
    transition: transform .3s ease;
  }
  .mobile-bar.bar-hidden { transform: translateY(110%); }
  .mobile-bar a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 50px;
    border-radius: 999px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: .95rem;
    border: 2px solid rgba(255, 255, 255, .3);
  }
  .mobile-bar .mb-quote { background: var(--green); border-color: var(--green); box-shadow: 0 8px 20px rgba(60, 169, 53, .4); }
  .mobile-bar a:focus-visible { outline-color: #fff; }
}

@media (max-width: 380px) {
  /* Telefoni piccoli: logo e selettore lingua restano su una riga */
  .brand-logo { height: 36px; }
  .lang-btn { padding: 8px 7px; min-width: 36px; font-size: .7rem; }
  .site-header { padding-left: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-bar { transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
