/* ============================================
   Lavo & Filo - Lavanderia e Sartoria, Cosenza
   Design read: local service-business landing page,
   trust-first, craft-forward. Bright, airy, "clean water"
   palette in teal (keeps the shop's original green cue)
   against white. Dark mode is opt-in only (manual toggle),
   never auto-applied, so the bright look is always first.
   Dials: VARIANCE 6 / MOTION 5 / DENSITY 3
   ============================================ */

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/outfit-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jakarta-variable.woff2') format('woff2');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/jakarta-500-italic.woff') format('woff');
}

@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url('../fonts/fredoka-variable.woff2') format('woff2');
}

:root {
  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --color-bg: #FFFFFF;
  --color-bg-soft: #F1FAF8;
  --color-surface: #FFFFFF;
  --color-surface-2: #EEF8F6;
  --color-text: #17262A;
  --color-text-secondary: #5C7075;
  --color-border: #E3EFED;
  --color-accent: #0F766E;
  --color-accent-strong: #0B5D56;
  --color-accent-soft: #E1F5F1;
  --color-ink: #0B3B36;
  --color-on-accent: #FFFFFF;

  --shadow-tint: 175 30% 40%;
  --radius-card: 20px;
  --radius-pill: 999px;
  --radius-sm: 10px;

  --nav-height: 72px;
  --container: 1200px;

  color-scheme: light;
}

/* Dark mode is opt-in only, toggled via the theme button. It is never
   applied automatically from prefers-color-scheme, so the bright,
   minimal look is always what visitors see first. */
:root[data-theme="dark"] {
  --color-bg: #0F1716;
  --color-bg-soft: #14201E;
  --color-surface: #172422;
  --color-surface-2: #1E2E2B;
  --color-text: #EAF3F1;
  --color-text-secondary: #A6BCB8;
  --color-border: #2A3B38;
  --color-accent: #2DD4BF;
  --color-accent-strong: #5EEAD4;
  --color-accent-soft: #17352F;
  --color-ink: #0B1D1A;
  --color-on-accent: #072320;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* ---------- Focus visibile (tastiera) ---------- */

a, button, input, [tabindex] {
  outline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a:focus:not(:focus-visible),
button:focus:not(:focus-visible) {
  outline: none;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: 88px 0;
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }
}

.section-head {
  max-width: 620px;
  margin-bottom: 48px;
}

.section-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

.section-head p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  max-width: 60ch;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-primary:hover {
  background: var(--color-accent-strong);
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-text);
}

.btn-secondary:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}

.btn-block {
  width: 100%;
}

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

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-strong));
  transform: scaleX(0);
  transform-origin: 0 50%;
  z-index: 60;
  animation: grow-progress linear;
  animation-timeline: scroll(root);
}

@keyframes grow-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 12px 30px -20px hsl(var(--shadow-tint) / 0.45);
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-svg {
  width: 168px;
  height: auto;
  overflow: visible;
}

.logo-word {
  font-family: 'Fredoka', var(--font-display), sans-serif;
  font-weight: 700;
  font-size: 44px;
}

.logo-word--lavo { fill: var(--color-ink); }
.logo-word--filo { fill: var(--color-accent); }

.logo-amp {
  font-family: 'Fredoka', var(--font-display), sans-serif;
  font-weight: 500;
  font-size: 26px;
  fill: var(--color-text-secondary);
}

.logo-wave {
  stroke: var(--color-accent);
  stroke-width: 4;
  stroke-linecap: round;
}

.logo-button-face {
  fill: var(--color-accent);
  stroke: var(--color-surface);
  stroke-width: 1.5;
}

.logo-button-hole {
  fill: var(--color-surface);
}

.logo-thread {
  stroke: var(--color-text-secondary);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.logo-needle-eye {
  fill: none;
  stroke: var(--color-text-secondary);
  stroke-width: 1.4;
}

.logo-banner {
  fill: var(--color-ink);
}

.logo-banner-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1px;
  text-anchor: middle;
  fill: #F7FBF8;
}

:root[data-theme="dark"] .logo-word--lavo {
  fill: var(--color-text);
}

.logo-svg--footer {
  width: 190px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  transition: color 0.2s ease;
}

.nav-cta-mobile {
  display: none;
}

.nav-links a:hover {
  color: var(--color-accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.05rem;
  transition: border-color 0.2s ease, transform 0.18s ease;
}

.theme-toggle:hover {
  border-color: var(--color-accent);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: transparent;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  cursor: pointer;
  font-size: 1.2rem;
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: 8px 24px 18px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease;
  }

  .nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav-links a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-cta-desktop {
    display: none;
  }

  .nav-cta-mobile {
    display: block;
    color: var(--color-accent);
    font-weight: 700;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

/* ---------- Hero (foto sfumata sullo sfondo, nitida solo dove passa il cursore) ---------- */

.hero {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-bg);
}

.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform;
}

.hero-img--soft {
  filter: blur(3px) grayscale(0.3) saturate(0.9);
  opacity: 0.46;
  transform: scale(1.08);
}

.hero-img--top {
  inset: 0 0 auto 0;
  margin: 0 auto;
  width: min(100%, 900px);
  height: auto;
  aspect-ratio: 1000 / 1256;
  object-fit: initial;
  opacity: 0.95;
  filter: saturate(0.95);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 14%, rgba(0,0,0,0.5) 22%, transparent 31%);
  mask-image: linear-gradient(180deg, #000 0%, #000 14%, rgba(0,0,0,0.5) 22%, transparent 31%);
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 62%, transparent) 34%, transparent 70%),
    linear-gradient(0deg, var(--color-bg) 0%, transparent 28%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent calc(min(100vw, 900px) * 0.12), #000 calc(min(100vw, 900px) * 0.30), #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent calc(min(100vw, 900px) * 0.12), #000 calc(min(100vw, 900px) * 0.30), #000 100%);
}

:root[data-theme="dark"] .hero-sub {
  color: var(--color-text);
}

:root[data-theme="dark"] .hero-img--soft {
  opacity: 0.3;
  filter: blur(9px) grayscale(0.55) brightness(0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-right: auto;
  margin-left: max(24px, calc((100% - var(--container)) / 2));
  padding-top: calc(min(100vw, 900px) * 0.17);
  padding-bottom: 80px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  flex-shrink: 0;
}

.hero-status[data-open="true"] .status-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-accent-soft); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-status[data-open="true"] .status-dot {
    animation: none;
  }
}

.hero-drum {
  position: absolute;
  top: calc(min(100vw, 900px) * 0.33);
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(100%, 900px);
  height: auto;
  aspect-ratio: 1000 / 1256;
  pointer-events: none;
  filter: drop-shadow(0 0 3px rgba(255,255,255,1)) drop-shadow(0 2px 4px rgba(11,59,54,0.28));
}

.drum-ring {
  stroke: #FFFFFF;
  stroke-linecap: round;
}
.drum-ring--body { stroke-width: 11; stroke-linejoin: round; }
.drum-ring--panel { stroke-width: 5; }
.drum-ring--knob, .drum-ring--display { stroke-width: 6; }
.drum-ring--tick { stroke-width: 6; }
.drum-ring--btn { stroke-width: 5; }
.drum-ring--1 { stroke-width: 11; }
.drum-ring--2 { stroke-width: 8; }
.drum-ring--3 { stroke-width: 6; }
.drum-handle { fill: #FFFFFF; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 82%, transparent) 38%, transparent 78%),
    linear-gradient(0deg, var(--color-bg) 0%, transparent 28%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent calc(min(100vw, 900px) * 0.12), #000 calc(min(100vw, 900px) * 0.30), #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, transparent calc(min(100vw, 900px) * 0.12), #000 calc(min(100vw, 900px) * 0.30), #000 100%);
}

:root[data-theme="dark"] .hero-img--soft {
  opacity: 0.3;
  filter: blur(9px) grayscale(0.55) brightness(0.8);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin-right: auto;
  margin-left: max(24px, calc((100% - var(--container)) / 2));
  padding-top: calc(min(100vw, 900px) * 0.17);
  padding-bottom: 80px;
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 22px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-secondary);
  flex-shrink: 0;
}

.hero-status[data-open="true"] .status-dot {
  background: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 3px var(--color-accent-soft); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-status[data-open="true"] .status-dot {
    animation: none;
  }
}

.hero-img--machine {
  inset: 0 0 auto 0;
  margin: 0 auto;
  width: min(100%, 900px);
  height: auto;
  aspect-ratio: 1000 / 1256;
  object-fit: initial;
  opacity: 0.9;
  filter: grayscale(1) contrast(0.85) brightness(2.5) drop-shadow(0 0 22px rgba(255,255,255,0.95));
  -webkit-mask-image: radial-gradient(ellipse 27% 21% at 74% 71%, #000 0%, #000 55%, rgba(0,0,0,0.5) 80%, transparent 100%);
  mask-image: radial-gradient(ellipse 27% 21% at 74% 71%, #000 0%, #000 55%, rgba(0,0,0,0.5) 80%, transparent 100%);
}

/* Bolle di sapone */
.hero-bubbles {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.soap {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  pointer-events: auto;
  cursor: pointer;
  background:
    radial-gradient(circle at 30% 26%, rgba(255,255,255,0.95) 0 7%, rgba(255,255,255,0) 20%),
    radial-gradient(circle at 72% 78%, rgba(56,189,248,0.32), rgba(56,189,248,0) 46%),
    radial-gradient(circle at 34% 40%, rgba(15,118,110,0.06), rgba(94,234,212,0.22) 62%, rgba(255,255,255,0.5) 100%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 0 12px rgba(255,255,255,0.6), 0 0 14px rgba(15,118,110,0.14);
  opacity: 0;
  will-change: transform, opacity;
  animation: soap-rise var(--dur) linear var(--delay) infinite;
}

@keyframes soap-rise {
  0% { transform: translate(0, 0) scale(0.7); opacity: 0; }
  8% { opacity: 0.95; }
  35% { transform: translate(var(--drift), calc(var(--rise) * -0.35)) scale(1); }
  70% { transform: translate(calc(var(--drift) * -0.6), calc(var(--rise) * -0.7)) scale(1.04); opacity: 0.9; }
  100% { transform: translate(calc(var(--drift) * 0.5), calc(var(--rise) * -1)) scale(1.08); opacity: 0; }
}

.soap.is-popped {
  animation: soap-pop 0.32s ease-out forwards;
}

@keyframes soap-pop {
  0% { transform: scale(1); opacity: 0.95; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bubbles { display: none; }
}

/* ---------- Hero entrance (GSAP-driven, CSS fallback) ---------- */

.hero-fx,
.hero-headline .word {
  opacity: 0;
  transform: translateY(24px);
}

.hero-headline .word {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .hero-fx,
  .hero-headline .word {
    opacity: 1;
    transform: none;
  }
}

.magnetic {
  will-change: transform;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  margin-bottom: 18px;
  color: var(--color-text);
}

.hero h1 em {
  font-style: normal;
  color: var(--color-accent);
  padding-bottom: 0.08em;
  background: repeating-linear-gradient(90deg, var(--color-accent) 0 9px, transparent 9px 15px) 0 100% / 0 3px no-repeat;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: stitch-draw 1.4s cubic-bezier(0.16, 1, 0.3, 1) 1.1s forwards;
}

@keyframes stitch-draw {
  to { background-size: 100% 3px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1 em {
    background-size: 100% 3px;
    animation: none;
  }
}

.hero-sub {
  font-size: 1.12rem;
  font-weight: 500;
  color: #2A3D42;
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 12px;
  max-width: 204px;
  margin-bottom: 32px;
}

.hero-ctas .btn {
  width: 100%;
  padding-left: 14px;
  padding-right: 14px;
}

/* Pulsanti a forma di ferro da stiro e di asse da stiro */
.btn-shape {
  position: relative;
  isolation: isolate;
  height: 72px;
  border: 0;
  background: transparent;
  color: var(--color-on-accent);
  border-radius: 6px;
}

.btn-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transition: filter 0.2s ease, transform 0.2s ease;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.btn-shape:hover {
  background: transparent;
  transform: none;
}

.btn-shape:hover::before {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.btn-iron {
  height: 96px;
  padding-top: 32px;
  padding-bottom: 34px;
}

.btn-iron::before {
  background: var(--color-accent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2072'%20preserveAspectRatio='none'%3E%3Cpath%20fill-rule='evenodd'%20d='M0%2044%20C0%2041%202%2039%206%2037%20L42%2022%20C50%2019%2055%2017%2059%2012%20C67%203%2079%201%2091%201%20H132%20C147%201%20155%209%20157%2022%20L174%2026%20C181%2028%20184%2034%20184%2042%20V50%20C184%2052%20182%2054%20180%2054%20H14%20C4%2054%200%2050%200%2044%20Z%20M76%2014%20C78%209%2086%207%2094%207%20H120%20C126%207%20130%2010%20132%2014%20V18%20H76%20Z%20M10%2046%20H176%20V48.5%20H10%20Z%20M139.6%2017%20a4.4%204.4%200%201%200%208.8%200%20a4.4%204.4%200%201%200%20-8.8%200%20Z%20M9%2043.5%20L10.6%2045.2%20L31%2033.2%20L29.6%2031.4%20Z'/%3E%3Cpath%20d='M184%2038%20C190%2041%20194%2033%20200%2036%20V38.5%20C194%2036%20190%2044%20184%2041%20Z'/%3E%3Ccircle%20cx='144'%20cy='17'%20r='1.9'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2072'%20preserveAspectRatio='none'%3E%3Cpath%20fill-rule='evenodd'%20d='M0%2044%20C0%2041%202%2039%206%2037%20L42%2022%20C50%2019%2055%2017%2059%2012%20C67%203%2079%201%2091%201%20H132%20C147%201%20155%209%20157%2022%20L174%2026%20C181%2028%20184%2034%20184%2042%20V50%20C184%2052%20182%2054%20180%2054%20H14%20C4%2054%200%2050%200%2044%20Z%20M76%2014%20C78%209%2086%207%2094%207%20H120%20C126%207%20130%2010%20132%2014%20V18%20H76%20Z%20M10%2046%20H176%20V48.5%20H10%20Z%20M139.6%2017%20a4.4%204.4%200%201%200%208.8%200%20a4.4%204.4%200%201%200%20-8.8%200%20Z%20M9%2043.5%20L10.6%2045.2%20L31%2033.2%20L29.6%2031.4%20Z'/%3E%3Cpath%20d='M184%2038%20C190%2041%20194%2033%20200%2036%20V38.5%20C194%2036%20190%2044%20184%2041%20Z'/%3E%3Ccircle%20cx='144'%20cy='17'%20r='1.9'/%3E%3C/svg%3E");
}

.btn-iron::after {
  content: "";
  position: absolute;
  left: 4px;
  bottom: -6px;
  width: 140px;
  height: 26px;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20140%2026'%3E%3Cg%20fill='white'%20stroke='%230F766E'%20stroke-width='1.6'%20stroke-linejoin='round'%3E%3Cpath%20transform='translate(2%203)%20rotate(-8%2014%2012)'%20d='M0%2014%20C0%208%205%206%208%208%20C9%203%2017%202%2019%208%20C24%206%2029%2010%2027%2015%20C27%2019%2023%2021%2019%2020%20H7%20C2%2020%200%2018%200%2014%20Z'/%3E%3Cpath%20transform='translate(50%204)'%20d='M0%2014%20C0%208%205%206%208%208%20C9%203%2017%202%2019%208%20C24%206%2029%2010%2027%2015%20C27%2019%2023%2021%2019%2020%20H7%20C2%2020%200%2018%200%2014%20Z'/%3E%3Cpath%20transform='translate(100%203)%20rotate(8%2014%2012)'%20d='M0%2014%20C0%208%205%206%208%208%20C9%203%2017%202%2019%208%20C24%206%2029%2010%2027%2015%20C27%2019%2023%2021%2019%2020%20H7%20C2%2020%200%2018%200%2014%20Z'/%3E%3C/g%3E%3C/svg%3E") no-repeat left bottom / contain;
  pointer-events: none;
  transition: transform 0.25s ease;
}

.btn-iron:hover::after {
  transform: translateY(3px);
}

.btn-phone,
.btn-msg {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 16px 0 6px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.86rem;
  white-space: nowrap;
  border: 2px solid var(--color-accent);
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.2s ease;
}

/* Cucitura: filo tratteggiato lungo il bordo, richiamo alla sartoria */
.btn-phone::after,
.btn-msg::after {
  content: "";
  position: absolute;
  inset: 2.5px;
  border-radius: inherit;
  border: 1.5px dashed currentColor;
  opacity: 0.4;
  pointer-events: none;
}

.btn-phone {
  background: var(--color-accent);
  color: var(--color-on-accent);
  box-shadow: 0 3px 0 var(--color-accent-strong);
}

.btn-msg {
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: 0 3px 0 var(--color-accent);
}

.btn-phone:hover,
.btn-msg:hover {
  transform: translateY(-1px);
}

.btn-phone:hover {
  background: var(--color-accent-strong);
}

.btn-msg:hover {
  background: var(--color-accent-soft);
}

.btn-phone:active,
.btn-msg:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--color-accent-strong);
}

/* Bottone da cucito: cerchio con bordo interno e icona al centro */
.cta-badge {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
}

.cta-badge::before {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  opacity: 0.35;
}

.btn-phone .cta-badge {
  background: #FFFFFF;
  color: var(--color-accent);
}

.btn-msg .cta-badge {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

.cta-label {
  position: relative;
  z-index: 1;
}

.btn-board {
  padding-top: 0;
  padding-bottom: 30px;
}

.btn-board::before {
  background: var(--color-accent-strong);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2072'%20preserveAspectRatio='none'%3E%3Cpath%20fill-rule='evenodd'%20d='M9%200%20H191%20Q200%200%20200%209%20V33%20Q200%2042%20191%2042%20H9%20Q0%2042%200%2033%20V9%20Q0%200%209%200%20Z%20M17%206%20H19%20V36%20H17%20Z'/%3E%3Cpath%20d='M6%2046%20H194%20Q198%2046%20198%2050%20V54%20Q198%2058%20194%2058%20H6%20Q2%2058%202%2054%20V50%20Q2%2046%206%2046%20Z'/%3E%3Cpath%20d='M12%2062%20H188%20Q194%2062%20194%2066%20V68%20Q194%2072%20188%2072%20H12%20Q6%2072%206%2068%20V66%20Q6%2062%2012%2062%20Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20200%2072'%20preserveAspectRatio='none'%3E%3Cpath%20fill-rule='evenodd'%20d='M9%200%20H191%20Q200%200%20200%209%20V33%20Q200%2042%20191%2042%20H9%20Q0%2042%200%2033%20V9%20Q0%200%209%200%20Z%20M17%206%20H19%20V36%20H17%20Z'/%3E%3Cpath%20d='M6%2046%20H194%20Q198%2046%20198%2050%20V54%20Q198%2058%20194%2058%20H6%20Q2%2058%202%2054%20V50%20Q2%2046%206%2046%20Z'/%3E%3Cpath%20d='M12%2062%20H188%20Q194%2062%20194%2066%20V68%20Q194%2072%20188%2072%20H12%20Q6%2072%206%2068%20V66%20Q6%2062%2012%2062%20Z'/%3E%3C/svg%3E");
}

.hero-link {
  grid-column: 1 / -1;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 2px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text);
  border-bottom: 1.5px solid var(--color-accent);
  transition: gap 0.2s ease, color 0.2s ease;
}

.hero-link:hover {
  gap: 14px;
  color: var(--color-accent);
}

/* Dove siamo: azioni in lista, disposizione diversa dalla hero */
.action-list {
  margin-top: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
}

.action-list li + li {
  border-top: 1px solid var(--color-border);
}

.action-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  transition: background-color 0.2s ease;
}

.action-list a:hover {
  background: var(--color-accent-soft);
}

.action-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.action-txt {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.action-txt strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.action-txt small {
  color: var(--color-text-secondary);
  font-size: 0.86rem;
}

.action-arrow {
  color: var(--color-accent);
  transition: transform 0.2s ease;
}

.action-list a:hover .action-arrow {
  transform: translateX(4px);
}

.hero-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

.hero-trust-item i {
  color: var(--color-accent);
  font-size: 1.1rem;
}

@media (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-content {
    margin-left: 0;
    padding-bottom: 56px;
  }

  .hero-scrim {
    background: linear-gradient(0deg, var(--color-bg) 0%, color-mix(in srgb, var(--color-bg) 34%, transparent) 55%, color-mix(in srgb, var(--color-bg) 4%, transparent) 100%);
  }

  .hero-img--soft {
    opacity: 0.58;
  }
}

/* ---------- Info strip ---------- */

.info-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg-soft);
}

.info-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 28px 24px;
  gap: 24px;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 0 20px;
  border-left: 1px solid var(--color-border);
}

.info-item:first-child {
  border-left: none;
  padding-left: 0;
}

.info-item i {
  font-size: 1.3rem;
  color: var(--color-accent);
  margin-top: 2px;
  flex-shrink: 0;
}

.info-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.98rem;
  margin-bottom: 3px;
}

.info-item span {
  display: block;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
}

.info-item a:hover {
  color: var(--color-accent);
}

@media (max-width: 768px) {
  .info-strip .container {
    grid-template-columns: 1fr;
  }

  .info-item {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--color-border);
    padding-top: 20px;
  }

  .info-item:first-child {
    border-top: none;
    padding-top: 0;
  }
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 30px;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 24px 40px -28px hsl(var(--shadow-tint) / 0.4);
}

/* Spotlight border glow that follows the cursor (desktop only, set via JS custom props) */
.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.35s ease;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--color-accent) 16%, transparent), transparent 70%);
}

.spotlight:hover::before {
  opacity: 1;
}

.service-card.is-wide.spotlight::before {
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--color-accent-strong) 30%, transparent), transparent 70%);
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background-color 0.25s ease;
}

.service-card:hover .service-card-icon {
  transform: scale(1.1) rotate(-6deg);
}

.service-card.is-wide:hover .service-card-icon {
  transform: scale(1.1) rotate(6deg);
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.service-card ul {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: var(--color-text-secondary);
  font-size: 0.94rem;
}

.service-card li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.service-card li i {
  color: var(--color-accent);
  font-size: 0.85rem;
  margin-top: 5px;
  flex-shrink: 0;
}

.service-card.is-wide {
  grid-column: span 2;
  grid-row: span 2;
  background: linear-gradient(165deg, var(--color-accent-soft), var(--color-surface) 65%);
  border-color: var(--color-accent);
}

.service-card.is-wide .service-card-icon {
  background: var(--color-accent);
  color: var(--color-on-accent);
}

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

  .service-card.is-wide {
    grid-column: span 2;
    grid-row: span 1;
  }
}

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

  .service-card.is-wide {
    grid-column: span 1;
  }
}

/* ---------- Lavatrice illustrata (oblo che si apre allo scroll) ---------- */

.machine-section {
  background: var(--color-bg-soft);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  overflow: clip;
}

.machine-head {
  max-width: 520px;
  margin: 0 auto 8px;
  text-align: center;
}

.machine-head h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  margin-bottom: 14px;
}

.machine-head p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
}

.machine-stage {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  view-timeline-name: --machine-view;
  view-timeline-axis: block;
}

/* Il cestello gira sempre piano (base garantita); dove il browser supporta
   le scroll-driven animation CSS, la rotazione segue lo scroll invece di
   girare a ciclo continuo: niente JS, niente dipendenza da GSAP qui. */
.drum-spin {
  transform-origin: 240px 328px;
}

@media (prefers-reduced-motion: no-preference) {
  .drum-spin {
    animation: drum-spin 7s linear infinite;
  }

  @supports (animation-timeline: view()) {
    .drum-spin {
      animation-name: drum-spin;
      animation-duration: auto;
      animation-timeline: --machine-view;
      animation-range: cover 0% cover 100%;
      animation-iteration-count: 1;
      animation-fill-mode: both;
    }
  }
}

@keyframes drum-spin {
  to { transform: rotate(360deg); }
}

.machine-svg {
  width: 100%;
  max-width: 340px;
  height: auto;
  overflow: visible;
}

.machine-shadow {
  fill: hsl(var(--shadow-tint) / 0.16);
}

.machine-foot {
  fill: var(--color-border);
}

.machine-body {
  fill: var(--color-surface);
}

.machine-body-edge {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 2;
}

.machine-panel {
  fill: var(--color-bg-soft);
}

.machine-knob {
  fill: var(--color-border);
}

.machine-display {
  fill: var(--color-accent-soft);
}

.machine-display-icon {
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
}

.machine-sparkle path {
  fill: var(--color-accent);
}

.machine-sparkle {
  transform-origin: center;
  animation: sparkle-pulse 2.6s ease-in-out infinite;
  animation-delay: var(--sd);
}

.machine-sparkle--sm { opacity: 0.7; }

@keyframes sparkle-pulse {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .machine-sparkle {
    animation: none;
    opacity: 0.7;
  }
}

/* ---------- L'enzima 3D che mangia il batterio (assets/js/enzyme.js) ---------- */
/* Canvas piccolo e trasparente dentro la pagina: sopra foto e sfondi delle sezioni (non posizionati),
   ma SOTTO i testi, che salgono a z-index 2. Non intercetta i click. */
.enzyme-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 0; /* dimensioni e posizione le imposta enzyme.js: segue i personaggi */
  height: 0;
  will-change: transform;
  z-index: 1;
  pointer-events: none;
}

.hero .hero-content,
.info-strip .container,
.machine-head {
  position: relative;
  z-index: 2;
}

.bug-bubble {
  fill: var(--color-accent-soft);
  stroke: var(--color-accent);
  stroke-width: 3;
}

.bug-bubble-shine {
  fill: color-mix(in srgb, var(--color-surface) 80%, transparent);
}

.bug-sparkle path {
  fill: var(--color-accent);
}

/* La bolla sotto la lavatrice va ancorata al proprio fill-box, altrimenti
   scale/rotate su un <g> SVG orbitano attorno al centro dell'intero viewBox. */
.bug-bubble,
.bug-bubble-shine,
.bug-sparkle {
  transform-box: fill-box;
  transform-origin: center;
}

.bug-bubble,
.bug-bubble-shine,
.bug-sparkle { opacity: 1; scale: 1; }

@keyframes bug-arrive {
  0% { opacity: 0; scale: 0.4; }
  70% { opacity: 1; scale: 1.12; }
  100% { opacity: 1; scale: 1; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .bug-bubble,
    .bug-bubble-shine,
    .bug-sparkle {
      animation: bug-arrive 1ms linear both;
      animation-timeline: --machine-view;
      animation-range: 80% 100%;
    }
  }
}

.door-rim {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 16;
}

.door-accent {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.5;
  opacity: 0.55;
}

.door-rim-outline {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 3;
}

.door-glass {
  fill: var(--color-bg-soft);
}

.water-wash {
  fill: var(--color-accent-soft);
  opacity: 0.85;
}

.water-highlight {
  fill: color-mix(in srgb, var(--color-surface) 55%, transparent);
}

.bubble circle {
  fill: #FFFFFF;
}

.cloth-inner {
  transform-origin: var(--cx) var(--cy);
}

.cloth-a { fill: var(--color-accent); }
.cloth-b { fill: var(--color-accent-strong); }
.cloth-c { fill: var(--color-surface); stroke: var(--color-accent); stroke-width: 3; }

/* Continuous motion once revealed (opacity-gated, independent of the GSAP scroll tween) */
@media (prefers-reduced-motion: no-preference) {
  .cloth-inner {
    animation: tumble 5.5s ease-in-out infinite;
  }

  .cloth-inner--rev {
    animation-direction: reverse;
    animation-duration: 6.5s;
  }

  .bubble {
    animation: float-bubble 3.2s ease-in infinite;
    animation-delay: var(--bd);
  }
}

@keyframes tumble {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(10deg) translateY(-6px); }
}

@keyframes float-bubble {
  0% { transform: translateY(0); opacity: 0; }
  15% { opacity: 0.9; }
  100% { transform: translateY(-70px); opacity: 0; }
}

/* ---------- Split banner (ritiro a domicilio / dove siamo) ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split.reverse .split-media {
  order: 2;
}

.split-media {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split-body h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.split-body p {
  color: var(--color-text-secondary);
  font-size: 1.05rem;
  margin-bottom: 24px;
  max-width: 48ch;
}

.split-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.split-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.split-list i {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.split-list strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 2px;
}

.split-list span {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
}

@media (max-width: 860px) {
  .split, .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-media {
    order: -1;
  }

  .split-media {
    aspect-ratio: 16 / 10;
  }
}

/* ---------- Dove siamo ---------- */

.map-frame {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  filter: grayscale(0.15) contrast(1.02);
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Mappa statica (OpenStreetMap, in locale): al clic apre Google Maps */
.map-link {
  position: relative;
  display: block;
  height: 100%;
  color: var(--color-text);
}

.map-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.map-link:hover img {
  transform: scale(1.04);
}

.map-link-card {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--color-surface) 92%, transparent);
  backdrop-filter: blur(8px);
  box-shadow: 0 12px 28px -14px hsl(var(--shadow-tint) / 0.5);
}

.map-link-card > i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--color-on-accent);
  background: var(--color-accent);
}

.map-link-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.map-link-card small {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
}

.map-link-cta {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-on-accent);
  background: var(--color-accent);
  box-shadow: 0 10px 24px -10px hsl(var(--shadow-tint) / 0.6);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.map-link:hover .map-link-cta {
  background: var(--color-accent-strong);
  transform: translateY(-2px);
}

.map-attrib {
  position: absolute;
  right: 8px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.66rem;
  color: #3E5A5E;
  background: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.hours-table {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--color-border);
  margin-top: 4px;
}

.hours-row {
  display: flex;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.hours-row span:first-child {
  color: var(--color-text-secondary);
}

.hours-row strong {
  font-weight: 700;
}

.hours-row.is-today {
  color: var(--color-accent);
}

.hours-row.is-today span:first-child {
  color: var(--color-accent);
  font-weight: 700;
}

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

.footer {
  background: var(--color-bg-soft);
  color: var(--color-text);
  padding: 64px 0 28px;
  border-top: 1px solid var(--color-border);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--color-border);
}


.footer-tagline {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  margin-top: 14px;
  max-width: 34ch;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col a,
.footer-col span {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(3px);
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), filter 0.32s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

/* ---------- Igienizzazione (sezione in evidenza, fondo verde scuro) ---------- */

.hygiene {
  --hy-text: #EAF3F1;
  --hy-muted: rgba(234, 243, 241, 0.74);
  --hy-accent: #5EEAD4;
  --hy-line: rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: clip;
  color: var(--hy-text);
  background:
    linear-gradient(160deg, #0B3B36 0%, #0D4A43 55%, #0A332F 100%);
}

:root[data-theme="dark"] .hygiene {
  background: linear-gradient(160deg, #0B1D1A 0%, #10302B 55%, #0B1D1A 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.hygiene-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(520px circle at 88% 8%, rgba(45, 212, 191, 0.22), transparent 70%),
    radial-gradient(460px circle at 6% 96%, rgba(45, 212, 191, 0.14), transparent 70%);
}

.hygiene .container {
  position: relative;
}

.hygiene-top {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: start;
}

.hygiene-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hy-accent);
}

.hygiene-eyebrow i {
  font-size: 1.05rem;
}

.hygiene h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  margin-bottom: 20px;
  color: var(--hy-text);
}

.hygiene h2 em {
  font-style: normal;
  color: var(--hy-accent);
}

.hygiene-lead {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--hy-muted);
  max-width: 54ch;
}

.hygiene-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(94, 234, 212, 0.1);
  border: 1px solid rgba(94, 234, 212, 0.25);
  font-size: 0.95rem;
  color: var(--hy-text);
}

.hygiene-note i {
  color: var(--hy-accent);
  margin-top: 3px;
}

.hygiene-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 30px;
}

.btn-hygiene {
  background: var(--hy-accent);
  color: #072320;
}

.btn-hygiene:hover {
  background: #99F6E4;
  transform: translateY(-1px);
}

.hygiene-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--hy-text);
  border-bottom: 1.5px solid rgba(94, 234, 212, 0.5);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hygiene-phone:hover {
  color: var(--hy-accent);
  border-color: var(--hy-accent);
}

/* Passaggi numerati uniti da una linea verticale */
.hygiene-steps {
  position: relative;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 26px;
  margin-top: 8px;
}

.hygiene-steps::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--hy-accent), rgba(94, 234, 212, 0.1));
}

.hygiene-step {
  position: relative;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.hygiene-step-num {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: #072320;
  background: var(--hy-accent);
  box-shadow: 0 0 0 6px rgba(94, 234, 212, 0.14), 0 10px 24px -8px rgba(45, 212, 191, 0.6);
}

.hygiene-step h3 {
  font-size: 1.15rem;
  margin: 10px 0 6px;
  color: var(--hy-text);
}

.hygiene-step p {
  color: var(--hy-muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

/* Cosa igienizziamo */
.hygiene-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 64px;
}

.hygiene-item {
  padding: 24px;
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hy-line);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, background-color 0.25s ease;
}

.hygiene-item:hover {
  transform: translateY(-4px);
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.08);
}

.hygiene-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  color: var(--hy-accent);
  background: rgba(94, 234, 212, 0.14);
  margin-bottom: 16px;
}

.hygiene-item h3 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: var(--hy-text);
}

.hygiene-item p {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--hy-muted);
}

@media (max-width: 960px) {
  .hygiene-top {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hygiene-items {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }
}

@media (max-width: 480px) {
  .hygiene-items {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hygiene-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 16px;
    align-items: center;
    padding: 18px;
  }

  .hygiene-item-icon {
    grid-row: span 2;
    margin-bottom: 0;
  }

  .hygiene-item h3 {
    margin-bottom: 2px;
  }
}

/* ---------- Pagine legali e 404 ---------- */

.legal-logo-text {
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-ink);
}

:root[data-theme="dark"] .legal-logo-text {
  color: var(--color-text);
}

.legal-logo-text em {
  font-style: normal;
  color: var(--color-accent);
}

.legal-back-icon {
  transform: rotate(180deg);
}

.legal {
  padding: 56px 0 88px;
}

.legal-container {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin-bottom: 14px;
}

.legal-updated {
  color: var(--color-text-secondary);
  font-size: 0.92rem;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--color-border);
}

.legal h2 {
  font-size: 1.35rem;
  margin: 40px 0 12px;
  scroll-margin-top: calc(var(--nav-height) + 16px);
}

.legal h3 {
  font-size: 1.05rem;
  margin: 22px 0 8px;
}

.legal p,
.legal li {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.legal p + p {
  margin-top: 10px;
}

.legal ul {
  list-style: disc;
  padding-left: 22px;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal strong {
  color: var(--color-text);
}

.legal a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.not-found {
  min-height: calc(100vh - var(--nav-height) - 80px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 64px 0;
}

.not-found-code {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(4.5rem, 14vw, 8rem);
  line-height: 1;
  color: var(--color-accent);
}

.not-found h1 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 12px 0 10px;
}

.not-found p {
  color: var(--color-text-secondary);
  margin-bottom: 26px;
}
