/* Fonts, self-hosted: the same files sos-site.css uses. */
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/assets/fonts/space-grotesk-latin.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/space-mono-400-latin.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/space-mono-700-latin.woff2) format("woff2"); }

/* The homepage's own styles (design 2026). Source of the design: design/home-prototype.html. */
  :root {
    /* Today's brand colours, unchanged: Elementor's global palette. */
    --cream: #FFF7EB;
    --paper: #FFFDF8;
    --ink: #062123;
    --blue: #0467F1;
    --pink: #FFDBDB;
    --sky: #DBF1FF;
    --mint: #DBFFE2;
    --sand: #F6EBD9;
    --muted: #4A5E5F;
    --line: 2px solid var(--ink);
    --shadow: 4px 4px 0 var(--ink);
    --radius: 12px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: "Space Grotesk", system-ui, sans-serif;
    --mono: "Space Mono", ui-monospace, monospace;
  }
  * { box-sizing: border-box; }
  body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font: 400 18px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
  }
  img { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; }

  /* ---------- building blocks ---------- */
  .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  }
  .eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--blue); border-radius: 2px; }
  h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
  h1 { font-size: clamp(40px, 6vw, 68px); }
  h2 { font-size: clamp(30px, 4vw, 44px); }
  h3 { font-size: 22px; line-height: 1.25; }
  p { margin: 0; }

  .btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    background: var(--blue); color: #fff;
    border: var(--line); border-radius: 10px;
    box-shadow: var(--shadow);
    font: 600 17px/1 var(--font); text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
  }
  /* Every button is SOS blue. The one exception is the final call to action, which sits on
     a blue box and stays cream so it can be seen.
     Hover: nothing moves, the colours invert against the section behind the button. On a
     light section it turns dark green with cream text; on a dark one (the bar, the footer)
     cream with dark green text. */
  .btn:hover { background: var(--ink); color: var(--cream); }
  .btn svg { width: 18px; height: 18px; }

  .card {
    background: var(--paper);
    border: var(--line); border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  section { padding: 96px 0; }
  /* Titles take the full width so a short one never wraps; only the text below is narrowed. */
  .section-head { display: grid; gap: 14px; margin-bottom: 44px; }
  .section-head p { color: var(--muted); font-size: 19px; max-width: 60ch; }

  /* ---------- motion: cursor tilt (treg-style) ---------- */
  [data-tilt] {
    position: relative;
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform .6s var(--ease), box-shadow .2s;
  }
  [data-tilt].tilting { transition: transform .08s linear, box-shadow .2s; }
  [data-tilt]::after {
    content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.55), transparent 45%);
    opacity: 0; transition: opacity .3s;
  }
  [data-tilt].tilting::after { opacity: 1; }

  /* ---------- motion: reveal on scroll ---------- */
  /* `translate`, not `transform`, so it never fights the tilt on the same card. */
  [data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .7s var(--ease) calc(var(--d, 0) * 90ms), translate .7s var(--ease) calc(var(--d, 0) * 90ms), transform .6s var(--ease), box-shadow .2s; }
  [data-reveal].in { opacity: 1; translate: none; }
  [data-reveal][data-tilt].tilting { transition: opacity .7s, translate .7s, transform .08s linear, box-shadow .2s; }

  /* ---------- header ---------- */
  /* Dark green bar, cream text, like the brands strip and the footer. */
  .site-header {
    position: sticky; top: 0; z-index: 20;
    background: var(--ink); color: var(--cream);
    border-bottom: 1px solid rgba(255,247,235,.12);
  }
  .site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
  .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; text-decoration: none; letter-spacing: -0.01em; white-space: nowrap; }
  /* SOS mark + AUTOMAZIONI. The letters inside the mark fill 43.5% of its height, and a
     Space Grotesk capital is 0.7em tall, so a 1.64em mark makes SOS exactly as tall as the
     word beside it. logo-sos-tondo.png is the round variant. */
  .brand { font-size: 21px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; gap: 8px; }
  /* The mark gets a ring in the text colour (cream on the green bar). The box grows by the
     ring so SOS stays as tall as AUTOMAZIONI. */
  .brand img { width: calc(1.64em + 4px); height: calc(1.64em + 4px); border: 2px solid currentColor; border-radius: 5px; transition: transform .3s var(--ease); }
  .brand:hover img { transform: rotate(-6deg) scale(1.06); }
  .nav { display: flex; align-items: center; gap: 28px; }
  .nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; background: linear-gradient(#7FD1FF, #7FD1FF) 0 100% / 0 2px no-repeat; transition: background-size .3s var(--ease); }
  .nav a:not(.btn):hover { background-size: 100% 2px; }
  .nav .btn { padding: 10px 16px; font-size: 15px; border-color: var(--cream); box-shadow: 3px 3px 0 var(--cream); }
  .nav .btn:hover { background: var(--cream); color: var(--ink); }
  /* Phones only: three bars that turn into an X and open the menu below the header. */
  .menu-btn { display: none; width: 44px; height: 44px; place-items: center; padding: 0; background: transparent; border: 2px solid var(--cream); border-radius: 10px; cursor: pointer; color: var(--cream); }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease), background .2s; }
  .menu-btn span { position: relative; }
  .menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
  .menu-btn span::before { top: -6px; }
  .menu-btn span::after { top: 6px; }
  .site-header.open .menu-btn span { background: transparent; }
  .site-header.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
  .site-header.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }

  /* ---------- hero ---------- */
  .hero { position: relative; padding: 96px 0 104px; overflow: hidden; isolation: isolate; }
  /* One glyph field behind the whole page; solid cards and dark bands cover it. */
  canvas.field--page { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; }
  .blob { position: absolute; z-index: -2; border-radius: 50%; filter: blur(90px); opacity: .3; pointer-events: none; }
  .blob--1 { width: 640px; height: 640px; background: #8FC2FF; left: calc(50% - 320px); top: -360px; animation: drift1 18s ease-in-out infinite alternate; }
  .blob--2 { width: 420px; height: 420px; background: #A8F0BC; left: -100px; bottom: -200px; animation: drift2 22s ease-in-out infinite alternate; }
  .blob--3 { width: 300px; height: 300px; background: #FFC4C4; left: 18%; top: -120px; opacity: .35; animation: drift1 26s ease-in-out infinite alternate-reverse; }
  @keyframes drift1 { to { transform: translate(-120px, 90px) scale(1.15); } }
  @keyframes drift2 { to { transform: translate(140px, -80px) scale(.9); } }

  /* Centered single column, coreyganim.com-style: faces on top, then the promise. */
  .hero .wrap { display: flex; flex-direction: column; align-items: center; text-align: center; }
  /* One line on desktop: the title is about 12.3 times its font size wide, so the size
     follows the viewport and stops at 84px. Phones go back to two lines (mobile block). */
  .hero h1 { margin-top: 18px; font-size: min(84px, calc((100vw - 48px) / 12.6)); white-space: nowrap; font-weight: 700; letter-spacing: -0.035em; }
  /* Samuele · the agents we use · Alberto: three overlapping circles. */
  .duo { --c: 150px; display: flex; justify-content: center; align-items: center; margin-bottom: 44px; }
  .duo > .face, .agents {
    position: relative; width: var(--c); height: var(--c); border-radius: 50%; flex-shrink: 0;
    border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--blue); background: var(--sand);
    opacity: 0; animation: popIn .7s var(--ease) forwards; transition: transform .35s var(--ease);
  }
  .face > img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
  .duo > * + * { margin-left: -24px; }
  .agents { z-index: 1; animation-delay: .1s; background: var(--ink); }
  .duo > .face:last-child { animation-delay: .2s; }
  .duo:hover > .face:first-child { transform: rotate(-6deg) translateX(-10px); }
  .duo:hover > .face:last-child { transform: rotate(6deg) translateX(10px); }
  @keyframes popIn { from { opacity: 0; scale: .7; } to { opacity: 1; scale: 1; } }

  /* The middle circle cycles through the agents, each one spinning in. */
  .agent {
    position: absolute; inset: 0; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
    opacity: 0; transform: rotate(-120deg) scale(.5); transition: opacity .45s, transform .6s var(--ease);
  }
  .agent.is-on { opacity: 1; transform: none; }
  .agent.is-off { opacity: 0; transform: rotate(120deg) scale(.5); }
  .agent > img { width: 100%; height: 100%; object-fit: cover; }
  .agent > img.mark { width: 52%; height: 52%; object-fit: contain; }
  /* Name label under each circle: Samuele, the current agent, Alberto. */
  .name-pill {
    position: absolute; left: 50%; bottom: -16px; translate: -50% 0; z-index: 2; white-space: nowrap;
    padding: 5px 10px; border: 2px solid var(--ink); border-radius: 999px; background: var(--paper);
    font: 700 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  }
  .hero h1 .w { display: inline-block; opacity: 0; transform: translateY(.5em); animation: wordIn .7s var(--ease) forwards; animation-delay: calc(var(--i) * 55ms + 150ms); }
  @keyframes wordIn { to { opacity: 1; transform: none; } }
  .hero h1 mark { background: none; color: inherit; }
  .hero h1 mark .w { background: linear-gradient(var(--sky), var(--sky)) 0 88% / 100% .3em no-repeat; }
  .hero .lead { font-size: 21px; color: var(--muted); margin: 24px auto 34px; max-width: 44ch; }
  .hero .actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
  .hero .note { font: 400 13px/1.4 var(--mono); color: var(--muted); }

  /* the live "automation running" card */
  .flow { padding: 22px; display: grid; gap: 12px; }
  .flow-top { display: flex; justify-content: space-between; align-items: center; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; padding-bottom: 8px; }
  .live { display: inline-flex; gap: 6px; align-items: center; color: #0B7A2C; }
  .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0CBC00; animation: ping 1.6s ease-out infinite; }
  @keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(12,188,0,.5); } 100% { box-shadow: 0 0 0 9px rgba(12,188,0,0); } }
  .step {
    display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center;
    padding: 14px; border: var(--line); border-radius: 10px; background: var(--paper);
    opacity: .45; transform: scale(.98); transition: opacity .35s, transform .35s var(--ease), background-color .35s, box-shadow .35s;
  }
  .step.active, .step.done { opacity: 1; transform: none; }
  .step.active { box-shadow: 3px 3px 0 var(--blue); }
  /* nth-of-type counts every div in the card, and .flow-top is the first. */
  .step.done:nth-of-type(2) { background: var(--pink); }
  .step.done:nth-of-type(3) { background: var(--sky); }
  .step.done:nth-of-type(4) { background: var(--mint); }
  .step .ico { width: 40px; height: 40px; border-radius: 8px; border: var(--line); background: var(--paper); display: grid; place-items: center; font-size: 20px; }
  .step b { display: block; font-weight: 600; font-size: 16px; line-height: 1.3; }
  .step small { font: 400 12px/1.3 var(--mono); color: var(--muted); }
  .step .ok { width: 26px; height: 26px; border-radius: 50%; border: 2px dashed rgba(6,33,35,.35); display: grid; place-items: center; font: 700 14px/1 var(--font); color: transparent; transition: all .3s var(--ease); }
  .step.active .ok { border-color: var(--blue); border-style: solid; border-top-color: transparent; animation: spin .7s linear infinite; }
  .step.done .ok { background: var(--ink); border: 2px solid var(--ink); color: var(--cream); transform: scale(1); animation: pop .35s var(--ease); }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.2); } 100% { transform: scale(1); } }
  .flow-foot { display: flex; justify-content: space-between; font: 400 12px/1.3 var(--mono); color: var(--muted); padding-top: 6px; }
  .flow-foot b { color: var(--ink); }

  /* ---------- marquee strips ---------- */
  .marquee { display: flex; width: max-content; animation: slide 38s linear infinite; }
  .marquee > div { display: flex; gap: 48px; padding-right: 48px; flex-shrink: 0; }
  @keyframes slide { to { transform: translateX(-50%); } }
  .brands { border-block: var(--line); padding: 22px 0 28px; overflow: hidden; background: var(--ink); }
  .brands-label { text-align: center; font: 700 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 247, 235, .6); margin-bottom: 20px; }
  .brands .marquee { animation-duration: 50s; }
  .brands .marquee > div { gap: 64px; padding-right: 64px; align-items: center; }
  /* Every logo flattened to one light tone on the dark green band. */
  .brands img { height: var(--h, 28px); width: auto; filter: brightness(0) invert(1); opacity: .85; transition: opacity .2s; }
  .brands img:hover { opacity: 1; }

  /* ---------- services ---------- */
  .services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .service { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
  .service:nth-child(1) { background: var(--pink); }
  .service:nth-child(2) { background: var(--sky); }
  .service p { font-size: 17px; }
  /* Price and button share one row in every card. The cards are always the same width,
     so when a card gets too narrow for the longest button they all stack together. */
  .service { container-type: inline-size; }
  .service .price { margin-top: auto; padding-top: 16px; border-top: 2px dashed rgba(6,33,35,.35); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
  .service .price span { font: 400 13px/1.3 var(--mono); white-space: nowrap; }
  .service .btn { padding: 11px 16px; font-size: 15px; white-space: nowrap; }
  @container (max-width: 272px) {
    .service .price { flex-direction: column; align-items: flex-start; }
  }

  /* ---------- about ---------- */
  .about .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
  .about-text { display: grid; gap: 18px; }
  .about-text p { font-size: 19px; }
  .people { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
  .person { padding: 18px; text-align: center; }
  .person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: var(--line); background: var(--sand); margin-bottom: 14px; }
  .person b { display: block; font-size: 18px; }
  .person small { font: 400 12px/1.4 var(--mono); color: var(--muted); }

  /* ---------- client story ---------- */
  /* Nicola Zamorani's review in full, the one about automations: its own dark band.
     The side column sticks while his story scrolls past it. */
  .story { background: var(--ink); color: var(--cream); }
  .story .wrap { display: grid; grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; }
  .story-side { position: sticky; top: 112px; display: grid; gap: 18px; }
  .story .eyebrow::before { background: #7FD1FF; }
  .story-who { margin: 14px 0 0; display: flex; align-items: center; gap: 18px; }
  .story-who img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cream); box-shadow: 4px 4px 0 var(--blue); }
  .story-who b { display: block; font-size: 20px; }
  .story-who small { font: 400 13px/1.3 var(--mono); opacity: .75; }
  .story-body { display: grid; gap: 22px; font-size: 19px; line-height: 1.65; }
  .story-body p { opacity: .92; }
  /* His key sentence as the section's headline, with an opening quote mark like the reviews. */
  .story-quote { font-size: clamp(26px, 2.8vw, 34px); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
  .story-quote::before { content: "“"; display: block; height: 30px; font-size: 76px; line-height: .75; color: #7FD1FF; }
  .story-shot { margin: 6px 0 0; }
  .story-shot img { width: 100%; height: auto; background: #fff; border: 2px solid var(--cream); border-radius: var(--radius); box-shadow: 4px 4px 0 var(--blue); }
  .story-shot figcaption { margin-top: 14px; font: 400 13px/1.5 var(--mono); opacity: .75; }
  .story-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: n; }
  .story-list li { counter-increment: n; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 18px 20px; background: rgba(255,247,235,.06); border: 2px solid rgba(255,247,235,.25); border-radius: var(--radius); font-size: 17px; line-height: 1.55; }
  .story-list li::before { content: counter(n); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; background: var(--blue); border: 2px solid var(--cream); font: 700 16px/1 var(--mono); }

  /* ---------- testimonials ---------- */
  /* A wall of reviews. CSS columns are only the fallback: the script below deals the cards
     into real columns and balances them so all columns end at the same height. */
  .quotes { columns: 3 300px; column-gap: 24px; }
  .quote { padding: 24px; display: grid; gap: 18px; margin: 0 0 24px; break-inside: avoid; }
  .quotes.is-balanced { columns: auto; display: flex; gap: 24px; align-items: flex-start; }
  .quotes-col { flex: 1; min-width: 0; }
  .quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; }
  .quote blockquote::before { content: "“"; display: block; font-size: 56px; line-height: .6; height: 24px; color: var(--blue); }
  .who { display: flex; align-items: center; gap: 12px; }
  .who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: var(--line); }
  .who b { display: block; font-size: 16px; }
  .who small { font: 400 12px/1.3 var(--mono); opacity: .75; }

  /* ---------- final CTA ---------- */
  .final { padding: 40px 0 112px; }
  .final .card { position: relative; overflow: hidden; isolation: isolate; background: var(--blue); color: #fff; padding: 72px 48px; display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center; }
  .final .card > canvas.field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
  .final .eyebrow::before { background: var(--cream); }
  .final h2 { margin: 14px 0 12px; }
  .final p { font-size: 19px; opacity: .92; max-width: 46ch; }
  .final .btn { background: var(--cream); color: var(--ink); box-shadow: var(--shadow); font-size: 18px; padding: 18px 26px; }
  .final .btn:hover { background: var(--ink); color: var(--cream); }
  /* TidyCal booking embed (homepage final box and /richiedi-preventivo/). The iframe is
     pulled up and down by fixed amounts to hide TidyCal's own title block and its
     "Powered by" line: re-measure them if the booking is renamed or TidyCal restyles. */
  .sos-tidycal { min-height: 520px; overflow: hidden; container-type: inline-size; max-width: 990px; margin-inline: auto; }
  .sos-tidycal iframe { display: block; margin-top: -172px; margin-bottom: -64px; }
  @container (max-width: 372px) { .sos-tidycal iframe { margin-top: -193px; } }
  @container (min-width: 768px) { .sos-tidycal iframe { margin-top: -194px; } }
  /* Booking block, the same on /richiedi-preventivo/ and the homepage ("Il primo passo",
     #prenota): text and steps, then the TidyCal calendar, left-aligned in the calendar's own
     990px column on the page background. */
  .call-hero { padding: 64px 0 28px; scroll-margin-top: 72px; }   /* #prenota lands below the sticky header */
  .call-hero .wrap, .call-book .wrap { max-width: 990px; }
  .call-hero .wrap { display: grid; justify-items: start; gap: 14px; }
  .call-hero :is(h1, h2) { font-size: clamp(36px, 5vw, 56px); font-weight: 700; letter-spacing: -0.035em; }
  .call-hero .lead { font-size: 21px; color: var(--muted); }
  .call-hero p { max-width: 66ch; }
  .call-steps { margin: 6px 0 0; padding-left: 1.4em; display: grid; gap: 4px; }
  .call-steps li { padding-left: 4px; }
  .call-steps li::marker { color: var(--blue); font: 700 16px var(--mono); }
  .call-book { padding: 24px 0 24px; }
  .call-book.call-end { padding-bottom: 104px; }   /* last section before the footer */
  /* Homepage "Il primo passo" (#prenota): the booking text, steps and the TidyCal calendar
     all in the blue box, every line in solid cream. The calendar keeps .sos-tidycal's 990px
     cap: wider than that TidyCal moves its title into a left column and the crop cuts it. */
  .final#prenota { padding: 64px 0 104px; scroll-margin-top: 72px; }   /* lands below the sticky header */
  .final .card.final-book { grid-template-columns: 1fr; gap: 32px; color: var(--cream); }
  .final .card.final-book .final-cal { min-width: 0; }
  .final .card.final-book p { max-width: none; color: var(--cream); opacity: 1; }   /* solid cream: easier to read on the blue */
  .final .final-book-head { margin: 28px 0 0; font-size: clamp(22px, 2.4vw, 26px); }
  .final .final-steps { margin: 12px 0 0; padding-left: 1.4em; display: grid; gap: 4px; font-size: 18px; color: var(--cream); }
  .final .final-steps li { padding-left: 4px; }
  .final .final-steps li::marker { color: var(--cream); font: 700 16px var(--mono); }

  /* ---------- newsletter + footer ---------- */
  .site-footer { background: var(--ink); color: var(--cream); padding: 72px 0 32px; }
  .foot-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,247,235,.15); }
  .optin h3 { margin-bottom: 10px; }
  .optin p { opacity: .8; font-size: 16px; margin-bottom: 18px; }
  .optin form { display: flex; gap: 10px; flex-wrap: wrap; }
  .optin input { flex: 1 1 200px; padding: 13px 14px; border-radius: 10px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font: 400 16px var(--font); }
  .optin input::placeholder { color: rgba(255,247,235,.55); }
  .optin .btn { border-color: var(--cream); box-shadow: 4px 4px 0 var(--cream); }
  .optin .btn:hover { background: var(--cream); color: var(--ink); }
  .optin small { display: block; margin-top: 10px; font: 400 12px/1.4 var(--mono); opacity: .6; }
  .foot-col b { display: block; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; opacity: .6; margin-bottom: 16px; }
  .foot-col a { display: block; text-decoration: none; margin-bottom: 10px; font-size: 16px; }
  .foot-col a:hover { text-decoration: underline; }
  .foot-name { display: block; margin-bottom: 10px; font-size: 16px; }
  .foot-bottom { padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font: 400 12px/1.4 var(--mono); opacity: .6; }


  /* ---------- footer form: the site's real newsletter form (960d347) ---------- */
  /* sos-forms.js sends it to n8n; the markup is Elementor's, so these rules lay it out. */
  .optin .elementor-form-fields-wrapper { display: flex; flex-wrap: wrap; gap: 10px; }
  .optin .elementor-field-group-email { flex: 1 1 220px; }
  .optin .e-form__buttons { flex: 0 0 auto; }
  .optin .elementor-field-type-acceptance { order: 3; flex: 1 1 100%; }
  .optin .elementor-screen-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .optin .elementor-field-textual { width: 100%; padding: 13px 14px; border-radius: 10px; border: 2px solid var(--cream); background: transparent; color: var(--cream); font: 400 16px var(--font); }
  .optin .elementor-field-textual::placeholder { color: rgba(255,247,235,.55); }
  .optin .elementor-field-option { display: flex; gap: 10px; align-items: flex-start; font: 400 12px/1.45 var(--mono); opacity: .75; }
  .optin .elementor-field-option input { margin-top: 2px; accent-color: var(--blue); }
  .optin .elementor-field-option a { color: var(--cream); }
  .optin .elementor-button { display: inline-flex; align-items: center; padding: 14px 20px; background: var(--blue); color: #fff; border: 2px solid var(--cream); border-radius: 10px; box-shadow: 4px 4px 0 var(--cream); font: 600 16px/1 var(--font); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
  .optin .elementor-button:hover { background: var(--cream); color: var(--ink); }
  .optin .elementor-message { flex: 1 1 100%; order: 4; margin-top: 4px; font-size: 15px; }
  .optin .elementor-message-danger { color: #FFB4B4; }
  .elementor-form-waiting { opacity: .6; }
  .foot-bottom a { color: inherit; }


  /* ---------- mobile ---------- */
  @media (max-width: 900px) {
    section { padding: 72px 0; }
    .hero { padding: 48px 0 72px; }
    .hero h1 { font-size: clamp(40px, 11vw, 64px); white-space: normal; }
    .duo { --c: 104px; }
    .duo > * + * { margin-left: -18px; }
    .hero .wrap, .about .wrap, .story .wrap, .final .card { grid-template-columns: 1fr; }
    .story .wrap { gap: 40px; }
    .story-side { position: static; }
    .story-who img { width: 88px; height: 88px; }
    .services, .foot-top { grid-template-columns: 1fr; }
    .brand { font-size: 17px; }
    .menu-btn { display: grid; }
    .nav { display: none; position: absolute; top: 100%; left: -16px; right: -16px; flex-direction: column; align-items: stretch; gap: 0; padding: 4px 16px 24px; background: var(--ink); border-bottom: 2px solid rgba(255,247,235,.2); box-shadow: 0 12px 24px rgba(6,33,35,.25); }
    .site-header.open .nav { display: flex; }
    .nav a:not(.btn) { padding: 16px 0; font-size: 20px; border-bottom: 1px solid rgba(255,247,235,.15); background: none; }
    .nav .btn { margin-top: 20px; justify-content: center; padding: 16px; font-size: 17px; }
    .final .card { padding: 44px 24px; }
    .call-hero { padding: 44px 0 20px; }
    .final#prenota { padding: 48px 0 72px; }
    .final .card.final-book { padding: 44px 16px 16px; gap: 24px; }
    .final .card.final-book > [data-field-text] { padding: 0 8px; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    [data-reveal], .hero h1 .w { opacity: 1; transform: none; translate: none; }
  }
