/* =====================================================================
   il Sambuco – stile "caldo e di paese", toni chiari
   Colori del logo: blu inchiostro #322B80, giallo #E8E351
   Caratteri inclusi nel tema: Fraunces (titoli), Nunito Sans (testi)
   ===================================================================== */
@font-face { font-family: "Fraunces"; font-weight: 500; font-display: swap; src: url(../fonts/fraunces-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Fraunces"; font-weight: 700; font-display: swap; src: url(../fonts/fraunces-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 400; font-display: swap; src: url(../fonts/nunito-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 600; font-display: swap; src: url(../fonts/nunito-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 700; font-display: swap; src: url(../fonts/nunito-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Nunito Sans"; font-weight: 800; font-display: swap; src: url(../fonts/nunito-sans-latin-800-normal.woff2) format("woff2"); }

:root {
  --bg: #F9F9FC; --card: #FFFFFF; --ink: #1F1B4D; --text: #46436B; --muted: #5D5A80;
  --line: #E7E6F2; --line-2: #D4D2E8; --ph: #F2F1F9; --ph-line: #CDCBE4;
  --accent: #322B80; --accent-dark: #221C62; --blush: #EFEEF9; --blush-line: #DDDBF1;
  --yellow: #E8E351; --yellow-soft: #FAF8D2;
  --green: #4A4596; --green-dark: #221C62; --green-bg: #FAF8D2;
  --footer: #EFEEF8;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--ink); margin: 0 0 .5em; }
h1 { font-size: clamp(36px, 5vw, 58px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 3.4vw, 40px); }
h3 { font-size: 22px; }
.sb-section > h2, .sb-head h2, .sb-split__a > h2, .sb-band h2, .sb-join > h2, .sb-page > h1 { position: relative; display: inline-block; z-index: 0; }
.sb-section > h2::after, .sb-head h2::after, .sb-split__a > h2::after, .sb-band h2::after, .sb-join > h2::after, .sb-page > h1::after { content: ""; position: absolute; left: -4px; right: -6px; bottom: .06em; height: .34em; background: var(--yellow); border-radius: 999px 40% 999px 60%; z-index: -1; opacity: .85; transform-origin: left center; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sb-skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 10px 16px; z-index: 100; border-radius: 8px; }
.sb-skip:focus { left: 8px; }
.sb-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.sb-section { padding-top: 72px; }
.sb-lead { font-size: 19px; color: var(--text); max-width: 680px; }
.sb-intro { color: var(--text); margin: 0 0 22px; }
.sb-muted { color: var(--muted); font-size: 14px; }
.sb-kicker { display: inline-block; margin: 0 0 14px; background: var(--green-bg); color: var(--green-dark); font-weight: 800; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; }
.sb-kicker--plain { background: none; padding: 0; color: var(--accent); }
.sb-label { font-family: var(--sans); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
h2.sb-label { margin-top: 36px; }
.sb-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 20px; margin-bottom: 18px; }
.sb-head h2 { margin: 0; }
.sb-head--top { align-items: center; margin-bottom: 26px; }
.sb-more { font-weight: 800; text-decoration: none; }
.sb-more:hover { text-decoration: underline; }

/* Pulsanti */
.sb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 999px; font: 800 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; border: 2px solid transparent; transition: background .15s, color .15s; }
.sb-btn--accent { background: var(--accent); color: #FFFFFF; }
.sb-btn--accent:hover { background: var(--accent-dark); color: #FFFFFF; }
.sb-btn--line { background: var(--card); color: var(--ink); border-color: var(--ink); }
.sb-btn--line:hover { background: var(--ink); color: #FFFFFF; }
.sb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 8px; }

/* Testata */
.sb-header { background: var(--card); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.sb-header__in { display: flex; align-items: center; justify-content: space-between; gap: 12px 28px; padding-top: 12px; padding-bottom: 12px; }
.sb-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.sb-brand__logo { max-height: 64px; width: auto; display: block; }
.sb-brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.sb-brand__name { font: 700 26px/1.1 var(--serif); }
.sb-brand__sub { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.sb-nav { display: flex; align-items: center; gap: 8px 24px; }
.sb-nav__list { display: flex; flex-wrap: wrap; gap: 4px 22px; list-style: none; margin: 0; padding: 0; }
.sb-nav__list a { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 16px; border-bottom: 3px solid transparent; }
.sb-nav__list a:hover, .sb-nav__list a[aria-current="page"], .sb-nav__list .current-menu-item > a { color: var(--accent); border-bottom-color: var(--accent); }
.sb-nav__cta { min-height: 44px; padding: 10px 18px; }
.sb-menu-btn { display: none; align-items: center; gap: 6px; background: none; border: 2px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font: 800 15px var(--sans); color: var(--ink); cursor: pointer; min-height: 44px; }
@media (max-width: 960px) {
  .sb-menu-btn { display: inline-flex; }
  .sb-header__in { flex-wrap: wrap; }
  .sb-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding: 8px 0 14px; }
  .sb-nav.is-open { display: flex; }
  .sb-nav__list { flex-direction: column; }
  .sb-nav__list a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .sb-nav__cta { margin-top: 10px; }
}

/* Apertura */
.sb-hero-wrap { position: relative; overflow: hidden; }
.sb-hero { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 64px; padding-bottom: 12px; }
.sb-hero h1 { position: relative; }
.sb-hero__pics { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.sb-hero__pics .sb-img { width: 100%; object-fit: cover; border-radius: var(--r); display: block; box-shadow: 0 18px 40px rgba(50, 43, 128, .14); }
.sb-hero__pics > :first-child { grid-column: span 2; height: 300px; }
.sb-hero__pics > .sb-img:not(:first-child), .sb-hero__pics > .sb-ph:not(:first-child) { height: 170px; }
@media (max-width: 560px) { .sb-hero__pics > :first-child { height: 220px; } .sb-hero__pics > .sb-img:not(:first-child) { height: 130px; } }
.sb-hero__badge { position: absolute; left: -46px; top: 210px; width: 132px; height: auto; filter: drop-shadow(0 10px 18px rgba(50, 43, 128, .25)); }
.sb-hero__mark { text-align: center; }
.sb-hero__mark img { width: min(420px, 90%); height: auto; filter: drop-shadow(0 16px 30px rgba(50, 43, 128, .18)); }
@media (max-width: 860px) {
  .sb-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 40px; }
  .sb-hero__badge { left: auto; right: -8px; top: -38px; width: 96px; }
  .sb-hero__mark img { width: 240px; }
}

/* Schizzi d'inchiostro dietro l'apertura */
.sb-splat { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.sb-splat--1 { width: 280px; height: 280px; background: radial-gradient(circle, rgba(232, 227, 81, .45), rgba(232, 227, 81, 0) 70%); top: -80px; left: -80px; }
.sb-splat--2 { width: 22px; height: 22px; background: var(--accent); opacity: .85; top: 70px; left: 46%; }
.sb-splat--3 { width: 12px; height: 12px; background: var(--accent); opacity: .7; top: 120px; left: 49%; }
.sb-splat--4 { width: 360px; height: 360px; background: radial-gradient(circle, rgba(50, 43, 128, .10), rgba(50, 43, 128, 0) 70%); bottom: -140px; right: -100px; }
@media (max-width: 860px) { .sb-splat--2, .sb-splat--3 { display: none; } }

/* Numeri */
.sb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 48px; }
.sb-stat { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.sb-stat::after { content: ""; position: absolute; right: -18px; top: -18px; width: 64px; height: 64px; border-radius: 50%; background: var(--yellow); opacity: .55; }
.sb-stat__n { font: 700 46px/1 var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
.sb-stat__what { font-weight: 800; margin-top: 6px; }
.sb-stat__sub { font-size: 14px; color: var(--muted); }

/* Segnaposto per le foto (solo per chi è collegato) */
.sb-ph { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: 170px; height: 100%; padding: 16px; border: 2px dashed var(--ph-line); border-radius: var(--r); background: var(--ph); color: var(--muted); font-weight: 700; font-size: 15px; }
.sb-ph small { font-weight: 400; font-size: 12px; }

/* Fascia dell'evento */
.sb-band { background: var(--blush); border-top: 1px solid var(--blush-line); border-bottom: 1px solid var(--blush-line); margin-top: 64px; }
.sb-band__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 60px; padding-bottom: 60px; }
.sb-band h2 { margin-bottom: 12px; }
@media (max-width: 860px) { .sb-band__in { grid-template-columns: minmax(0, 1fr); } }
.sb-band__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .sb-band__cards { grid-template-columns: minmax(0, 1fr); } }
.sb-mini { background: var(--card); border: 1px solid var(--blush-line); border-radius: 18px; padding: 20px; }
.sb-mini h3 { margin: 10px 0 4px; font-size: 20px; }
.sb-mini p { margin: 0; font-size: 15px; color: var(--text); }
.sb-facts { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sb-facts li { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--blush-line); padding: 10px 16px; border-radius: 12px; font-weight: 700; }
.sb-facts .sb-ico { color: var(--accent); }
.sb-facts--light li { border-color: var(--line); }

/* Chi siamo */
.sb-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; }
@media (max-width: 860px) { .sb-split { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.sb-split__a p { color: var(--text); }
.sb-people { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.sb-people li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; }
.sb-people__role { font-size: 13px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .08em; }
.sb-people__name { font-weight: 700; }

/* Progetto in evidenza */
.sb-feature { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--card); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; }
.sb-feature__pic { min-height: 300px; }
.sb-feature__pic .sb-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sb-feature__pic .sb-ph { border-radius: 0; border-width: 0 2px 0 0; }
.sb-feature__text { padding: 32px 34px; }
.sb-feature__text h3 { font-size: 30px; }
@media (max-width: 760px) { .sb-feature { grid-template-columns: minmax(0, 1fr); } .sb-feature__pic { min-height: 220px; } }

/* Galleria e video */
.sb-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.sb-gallery a, .sb-gallery .sb-ph { display: block; height: 220px; }
.sb-gallery .sb-img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.sb-video { margin-top: 18px; border-radius: 18px; overflow: hidden; max-width: 900px; }
.sb-video iframe, .sb-video video { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; }

/* Convenzioni in home */
.sb-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 18px; }
.sb-deal { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.sb-deal:hover { border-color: var(--accent); color: var(--ink); }
.sb-deal__name { font-weight: 800; }
.sb-deal__off { font: 700 22px/1.2 var(--serif); color: var(--accent); }

/* Sponsor */
.sb-logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 170px)); justify-content: center; gap: 14px; }
.sb-logo { aspect-ratio: 1 / 1; border-radius: 16px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 10px; overflow: hidden; text-decoration: none; color: var(--muted); font-weight: 800; text-align: center; }
.sb-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.sb-logos--major { grid-template-columns: repeat(auto-fit, minmax(220px, 300px)); justify-content: center; gap: 24px; margin-bottom: 28px; }
.sb-logo--major { border: 2px solid var(--accent); padding: 14px; box-shadow: 0 10px 30px rgba(50, 43, 128, .10); color: var(--ink); font-family: 'Fraunces', Georgia, serif; font-size: 1.7rem; font-weight: 700; transition: transform .15s ease, box-shadow .15s ease; }
a.sb-logo--major:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(50, 43, 128, .16); }
.sb-logos__label { text-align: center; color: var(--muted); font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
@media (max-width: 560px) { .sb-logos { grid-template-columns: repeat(2, 1fr); } .sb-logos--major { grid-template-columns: repeat(2, 1fr); gap: 14px; } .sb-logo--major { padding: 10px; } }

/* Partecipa */
.sb-join { background: var(--green-bg); border-radius: 28px; padding: 44px 36px; }
.sb-join .sb-lead { color: var(--green-dark); }
.sb-join__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 24px; }
.sb-join__card { background: var(--card); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.sb-join__card p { color: var(--text); flex-grow: 1; }
@media (max-width: 560px) { .sb-join { padding: 30px 20px; } }

/* Pagine interne */
.sb-page { padding-top: 52px; padding-bottom: 72px; max-width: 860px; }
.sb-page--wide { max-width: 1200px; }
.sb-cover { margin: 0 0 28px; }
.sb-cover .sb-img { border-radius: var(--r); width: 100%; }
.sb-prose { font-size: 18px; }
.sb-prose h2 { margin-top: 1.4em; font-size: 30px; }
.sb-prose h3 { margin-top: 1.2em; }
.sb-prose img { border-radius: 14px; }
.sb-prose ul, .sb-prose ol { padding-left: 1.3em; }
.sb-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin-top: 14px; }
.sb-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.sb-card > a > .sb-img, .sb-card > a > .sb-ph { width: 100%; height: 200px; object-fit: cover; display: block; border-radius: 0; border-width: 0 0 2px; }
.sb-card__body { padding: 20px; }
.sb-card__body h2 { font-size: 24px; }
.sb-card__body h2 a { color: var(--ink); text-decoration: none; }
.sb-card__body h2 a:hover { color: var(--accent); }
.sb-card__body p:last-child { margin: 0; color: var(--text); }
.sb-cta-box { margin-top: 36px; background: var(--green-bg); border-radius: var(--r); padding: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sb-cta-box p { margin: 0; }

/* Convenzioni: pagina completa */
.sb-pill-link { flex: none; display: inline-flex; align-items: center; gap: 10px; background: var(--green-bg); color: var(--green-dark); text-decoration: none; font-weight: 800; padding: 14px 20px; border-radius: 18px; }
.sb-pill-link:hover { color: var(--green-dark); background: #F3EFA6; }
.sb-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px; }
.sb-chip { font: 800 15px var(--sans); min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer; background: var(--card); color: var(--ink); border: 2px solid var(--line-2); }
.sb-chip span { opacity: .7; }
.sb-chip.is-on { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.sb-search { flex: 1 1 240px; min-width: 200px; display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; color: var(--muted); }
.sb-search input { flex: 1; border: 0; outline: none; font: inherit; padding: 11px 0; background: transparent; min-width: 0; }
.sb-search:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.sb-empty { text-align: center; color: var(--muted); padding: 30px 0; }
.sb-shops { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
@media (max-width: 400px) { .sb-shops { grid-template-columns: minmax(0, 1fr); } }
.sb-shop { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 20px; }
.sb-shop:target { border-color: var(--accent); box-shadow: 0 0 0 3px var(--blush-line); }
.sb-shop__top { display: flex; gap: 14px; align-items: center; }
.sb-shop__top h2 { font-size: 21px; margin: 0; line-height: 1.2; }
.sb-shop__cat { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.sb-shop__init, .sb-shop__logo { flex: none; width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sb-shop__logo { background: #FFFFFF; border: 1px solid var(--line); }
.sb-shop__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sb-shop__init { font: 700 22px var(--serif); }
.tone-plum { background: var(--blush); color: var(--accent-dark); }
.tone-green { background: var(--green-bg); color: var(--green-dark); }
.tone-amber { background: #F8EBD8; color: #7A4A12; }
.tone-blue { background: #E7EDF3; color: #2F4F6B; }
.sb-shop__deal { background: var(--blush); color: var(--accent-dark); border-radius: 14px; padding: 12px 14px; }
.sb-shop__deal p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--ink); }
.sb-shop__deal .sb-shop__off { margin: 0; font: 700 26px/1.1 var(--serif); color: var(--accent-dark); }
.sb-shop__info { list-style: none; margin: auto 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 15px; color: var(--text); }
.sb-shop__info li { display: flex; gap: 8px; align-items: flex-start; }
.sb-shop__info .sb-ico { flex: none; margin-top: 3px; }
.sb-note { margin-top: 30px; font-size: 15px; color: var(--muted); }

/* Moduli */
.sb-contact { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 30px; }
@media (max-width: 900px) { .sb-contact { grid-template-columns: minmax(0, 1fr); } }
.sb-contact__side { display: flex; flex-direction: column; gap: 16px; }
.sb-panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 28px; scroll-margin-top: 20px; }
.sb-panel h2 { font-size: 26px; }
.sb-panel--green { background: var(--green-bg); border: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 800; color: var(--green-dark); padding: 20px 24px; }
.sb-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.sb-form > label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 15px; }
.sb-form input[type=text], .sb-form input[type=email], .sb-form input[type=tel], .sb-form input[type=date], .sb-form select, .sb-form textarea { font: inherit; font-weight: 400; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: #FFFFFF; color: var(--ink); width: 100%; }
.sb-form textarea { resize: vertical; }
.sb-form input:focus, .sb-form select:focus, .sb-form textarea:focus { outline: 3px solid var(--blush-line); border-color: var(--accent); }
.sb-full { grid-column: 1 / -1; }
@media (max-width: 600px) { .sb-form { grid-template-columns: minmax(0, 1fr); } .sb-panel { padding: 20px; } }
.sb-upper { text-transform: uppercase; letter-spacing: .05em; }
.sb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; font-weight: 400; }
.sb-check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.sb-form__send { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sb-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sb-alert { background: #FBEAEA; color: #8A1F1F; border-radius: 14px; padding: 14px 18px; margin-bottom: 18px; }
.sb-alert ul { margin: 6px 0 0; padding-left: 1.2em; }
.sb-done { text-align: center; padding: 30px 10px; }
.sb-list-ico { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sb-list-ico li { display: flex; gap: 10px; align-items: flex-start; }
.sb-list-ico .sb-ico { flex: none; margin-top: 3px; }
.sb-socio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 32px; align-items: start; }
@media (max-width: 900px) { .sb-socio { grid-template-columns: minmax(0, 1fr); } }
.sb-steps { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.sb-steps li { display: flex; gap: 14px; align-items: flex-start; }
.sb-steps span { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--green-bg); color: var(--green-dark); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.sb-docs { display: flex; flex-direction: column; gap: 10px; padding: 20px; }
.sb-docs a { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }

/* Social */
.sb-social { display: flex; gap: 10px; }
.sb-social a { width: 44px; height: 44px; border-radius: 50%; background: var(--card); color: var(--ink); display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); }
.sb-social a:hover { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }

/* Piè di pagina */
.sb-footer { background: var(--footer); color: var(--text); margin-top: 80px; font-size: 15px; }
.sb-footer a { color: var(--accent); }
.sb-footer__in { display: flex; flex-wrap: wrap; gap: 32px 56px; padding-top: 48px; padding-bottom: 28px; }
.sb-footer__col { flex: 1 1 220px; min-width: 0; }
.sb-footer__about { flex-basis: 300px; }
.sb-footer__logo { width: 76px; height: auto; display: block; margin-bottom: 10px; }
.sb-footer__name { font: 700 24px var(--serif); color: var(--ink); margin-bottom: 6px; }
.sb-footer__title { font-weight: 800; color: var(--ink); margin-bottom: 8px; }
.sb-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 18px; padding-top: 16px; padding-bottom: 28px; border-top: 1px solid var(--line-2); font-size: 14px; }
.sb-footer__legal, .sb-footer__menu { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; }
.sb-footer__bottom a { color: var(--text); }

@media print { .sb-header, .sb-footer, .sb-filters { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
.sb-feature--nopic { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 960px) {
  .sb-brand { flex: 1 1 auto; min-width: 0; }
  .sb-menu-btn { flex: none; }
}
@media (max-width: 520px) {
  .sb-brand__sub { display: none; }
  .sb-brand__name { font-size: 24px; }
}

.sb-firma { text-transform: lowercase; }

/* Galleria nel testo dei progetti */
.sb-prose .gallery { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 1em 0 !important; }
.sb-prose .gallery-item { width: auto !important; margin: 0 !important; float: none !important; }
.sb-prose .gallery-item img { width: 100%; height: 200px; object-fit: cover; border: 0 !important; border-radius: 14px; display: block; }
.sb-prose .gallery br { display: none; }

/* Progetti: griglia dei loghi */
.sb-label--center { display: block; text-align: center; margin-top: 56px; }
.sb-logos--projects { list-style: none; margin: 0; padding: 0; }
.sb-header .sb-brand__logo--def { height: 58px; width: auto; max-height: none; }
@media (max-width: 520px) { .sb-header .sb-brand__logo--def { height: 46px; } }

/* =====================================================================
   Animazioni (leggere). Chi ha chiesto "riduci movimento" non le vede.
   ===================================================================== */
@keyframes sb-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes sb-pop { 0% { opacity: 0; transform: scale(.35) rotate(-18deg); } 60% { opacity: 1; transform: scale(1.08) rotate(4deg); } 100% { opacity: 1; transform: scale(1) rotate(0); } }
@keyframes sb-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-8px) rotate(-3deg); } }
@keyframes sb-drop { 0% { opacity: 0; transform: scale(0); } 70% { transform: scale(1.3); } 100% { opacity: var(--o, .8); transform: scale(1); } }
@keyframes sb-brush { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes sb-blob { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(20px, 14px) scale(1.08); } }

@media (prefers-reduced-motion: no-preference) {
  .sb-in { animation: sb-up .7s cubic-bezier(.2, .7, .2, 1) both; }
  .sb-in--1 { animation-delay: .05s; } .sb-in--2 { animation-delay: .15s; } .sb-in--3 { animation-delay: .28s; } .sb-in--4 { animation-delay: .4s; }
  .sb-hero__pics > .sb-img { animation: sb-up .8s .25s cubic-bezier(.2, .7, .2, 1) both; }
  .sb-hero__pics > .sb-img:nth-child(2) { animation-delay: .4s; } .sb-hero__pics > .sb-img:nth-child(3) { animation-delay: .52s; }
  .sb-hero__badge, .sb-hero__mark img { animation: sb-pop .9s .55s cubic-bezier(.3, 1.4, .5, 1) both, sb-float 6s 1.6s ease-in-out infinite; }
  .sb-splat--2, .sb-splat--3 { animation: sb-drop .5s .9s both; } .sb-splat--3 { animation-delay: 1.05s; --o: .7; }
  .sb-splat--1, .sb-splat--4 { animation: sb-blob 14s ease-in-out infinite; } .sb-splat--4 { animation-duration: 18s; animation-direction: reverse; }
  .sb-brand__logo { transition: transform .25s ease; } .sb-brand:hover .sb-brand__logo { transform: rotate(-2deg) scale(1.03); }

  /* Comparsa allo scorrimento (solo con JavaScript attivo) */
  .js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .sb-section > h2::after, .js .sb-head h2::after, .js .sb-split__a > h2::after, .js .sb-band h2::after, .js .sb-join > h2::after { transform: scaleX(0); transition: transform .7s .2s cubic-bezier(.2, .7, .2, 1); }
  .js .is-in h2::after, .js h2.is-in::after, .js .sb-head.is-in h2::after { transform: scaleX(1); }
  .sb-page > h1::after { animation: sb-brush .8s .3s cubic-bezier(.2, .7, .2, 1) both; }

  /* Movimento al passaggio */
  .sb-card, .sb-deal, .sb-shop, .sb-mini, .sb-stat, .sb-people li, .sb-join__card { transition: transform .2s ease, box-shadow .2s ease, border-color .15s, opacity .6s ease; }
  .sb-card:hover, .sb-deal:hover, .sb-mini:hover, .sb-stat:hover, .sb-join__card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(50, 43, 128, .12); }
  .sb-logo { transition: transform .2s ease, box-shadow .2s ease, opacity .6s ease; }
  .sb-logo:hover { transform: translateY(-3px) rotate(-1.5deg); box-shadow: 0 12px 26px rgba(50, 43, 128, .14); }
  .sb-gallery a { overflow: hidden; border-radius: 18px; }
  .sb-gallery .sb-img { transition: transform .5s ease; }
  .sb-gallery a:hover .sb-img { transform: scale(1.06); }
  .sb-btn { transition: background .15s, color .15s, transform .15s ease, box-shadow .15s ease; }
  .sb-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(50, 43, 128, .18); }
  .sb-btn:active { transform: translateY(0); }
  .sb-stat:hover::after { transform: scale(1.25); }
  .sb-stat::after { transition: transform .3s ease; }
}
@media print { [data-reveal] { opacity: 1 !important; transform: none !important; } }
