/* ==========================================================================
   Restyling grafico 22/11/2026 — livello sopra style.css
   Stessi testi, titoli, link e dati strutturati: cambia solo l'aspetto.
   Idea: officina gialla. Griglia da tavolo di progetto, segni di registro,
   illustrazioni disegnate a mano in nero e giallo, movimento breve e misurato.
   Per tornare indietro basta togliere l'enqueue di questo file e di motion.js.
   ========================================================================== */

:root {
  --paper: #F5F3EC;
  --line: rgba(19,19,19,0.12);
  --line-dark: rgba(255,255,255,0.12);
  --ease: cubic-bezier(.2,.7,.2,1);
  --grid: linear-gradient(rgba(19,19,19,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(19,19,19,0.07) 1px, transparent 1px);
}
::selection { background: var(--yellow); color: var(--black); }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; }

/* accento delle icone (forma piena dietro al tratto): spento se il contenitore non lo chiede */
svg .ia { fill: var(--sf-ia, none); stroke: none; }

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.sf-header { transition: transform 0.3s ease, box-shadow 0.25s ease; }
.sf-header.is-scrolled { box-shadow: 0 1px 0 0 rgba(19,19,19,0.16), 0 14px 30px -22px rgba(0,0,0,0.45); }
.sf-logo-badge { transition: transform 0.4s var(--ease), background 0.3s ease; }
.sf-logo:hover .sf-logo-badge { transform: rotate(-8deg) scale(1.04); }
@media (min-width: 1024px) {
  .sf-nav-link { position: relative; padding: 6px 0; }
  .sf-nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--black); transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease); }
  .sf-nav-link:hover { color: var(--black); }
  .sf-nav-link:hover::after { transform: scaleX(1); transform-origin: left; }
}

/* menu mobile: voci grandi che entrano una dopo l'altra */
.sf-mobile-menu { transition: transform 0.5s var(--ease); }
.sf-mobile-nav-link { font-size: clamp(22px, 6.4vw, 30px); font-weight: 800; letter-spacing: -0.01em; padding: 14px 2px; }
.sf-mobile-nav-plus { font-size: 26px; }
.sf-mobile-nav-item { opacity: 0; transform: translateY(16px); transition: opacity 0.4s ease, transform 0.55s var(--ease); }
.sf-mobile-menu.is-open .sf-mobile-nav-item { opacity: 1; transform: none; }
.sf-mobile-menu.is-open .sf-mobile-nav-item:nth-child(1) { transition-delay: .12s; }
.sf-mobile-menu.is-open .sf-mobile-nav-item:nth-child(2) { transition-delay: .17s; }
.sf-mobile-menu.is-open .sf-mobile-nav-item:nth-child(3) { transition-delay: .22s; }
.sf-mobile-menu.is-open .sf-mobile-nav-item:nth-child(4) { transition-delay: .27s; }
.sf-mobile-menu.is-open .sf-mobile-nav-item:nth-child(5) { transition-delay: .32s; }
.sf-mobile-menu.is-open .sf-mobile-nav-item:nth-child(6) { transition-delay: .37s; }
.sf-mobile-menu.is-open .sf-mobile-nav-item:nth-child(7) { transition-delay: .42s; }

/* --------------------------------------------------------------------------
   Pulsanti: freccia che avanza, ombra piena "da stampa" sui fondi gialli
   -------------------------------------------------------------------------- */
.sf-btn { transition: transform 0.25s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.25s var(--ease); }
.sf-btn svg { transition: transform 0.3s var(--ease); }
.sf-btn:hover svg { transform: translateX(4px); }
.sf-hero .sf-btn, .sf-cta .sf-btn, .sf-phero .sf-btn, .sf-phero-yellow .sf-btn, .sf-blog-hero .sf-btn { box-shadow: 0 0 0 0 #fff; }
.sf-hero .sf-btn:hover, .sf-cta .sf-btn:hover, .sf-phero .sf-btn:hover, .sf-phero-yellow .sf-btn:hover, .sf-blog-hero .sf-btn:hover { transform: translate(-3px, -3px); box-shadow: 5px 5px 0 0 #fff; }
.sf-btn:active { transform: translate(0, 0) scale(0.98); box-shadow: 0 0 0 0 #fff; }
.sf-btn-yellow:hover { box-shadow: 5px 5px 0 0 rgba(255,255,255,0.9); transform: translate(-3px, -3px); }

/* --------------------------------------------------------------------------
   Etichette di sezione e titoli
   -------------------------------------------------------------------------- */
.sf-eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.sf-eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; flex-shrink: 0; }
/* in home le sezioni sono numerate (numero solo grafico, non e' testo della pagina) */
body.home main { counter-reset: sfsec; }
body.home main .sf-eyebrow { counter-increment: sfsec; }
body.home main .sf-eyebrow::before { content: counter(sfsec, decimal-leading-zero); width: auto; height: auto; background: none; padding: 3px 6px 2px; border: 1.5px solid currentColor; border-radius: 4px; font-size: 10px; letter-spacing: 0.04em; line-height: 1; }

.sf-section-head h2, .sf-h2 { font-size: clamp(30px, 4vw, 54px); font-weight: 800; line-height: 1.02; letter-spacing: -0.025em; text-transform: uppercase; }
.sf-h2 { max-width: 20ch; }
.sf-h2--sm { font-size: clamp(22px, 2.1vw, 28px); line-height: 1.1; letter-spacing: -0.015em; margin-bottom: 20px; max-width: none; }

/* --------------------------------------------------------------------------
   Griglia da progetto sui fondi gialli (hero, processo, CTA, testate interne)
   -------------------------------------------------------------------------- */
.sf-hero, .sf-processo, .sf-cta, .sf-phero, .sf-phero-yellow, .sf-blog-hero { position: relative; isolation: isolate; }
.sf-hero::before, .sf-processo::before, .sf-cta::before, .sf-phero::before, .sf-phero-yellow::before, .sf-blog-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grid); background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 70% 30%, #000 10%, transparent 75%);
}
.sf-processo::before { -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); mask-image: linear-gradient(180deg, #000, transparent 80%); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.sf-hero h1 { position: relative; z-index: 0; font-size: clamp(34px, 9.4vw, 40px); line-height: 1; letter-spacing: -0.03em; }
.sf-hero h1 .sf-hero-tag { letter-spacing: 0.14em; line-height: 1.4; }
/* evidenziatore bianco sotto "crescere": si stende all'apertura, il testo resta subito visibile.
   Niente z-index su .sf-mark: la barra va sotto TUTTO il testo del titolo (anche "business" della riga dopo) */
.sf-mark { position: relative; white-space: nowrap; }
.sf-mark::before {
  content: ''; position: absolute; z-index: -1; left: -0.06em; right: -0.08em; bottom: 0.04em; height: 0.4em;
  background: #fff; transform: scaleX(0) skewX(-12deg); transform-origin: left center;
  animation: sf-mark-in 0.9s 0.35s var(--ease) forwards;
}
@keyframes sf-mark-in { to { transform: scaleX(1) skewX(-12deg); } }

.sf-hero-check { font-weight: 700; }
.sf-check-icon { border: 0; background: var(--black); color: var(--yellow); border-radius: 6px; }

.sf-hero-col-visual { position: relative; }
.sf-hero-badge { position: absolute; z-index: 2; right: 2%; top: -26px; width: 88px; height: 88px; pointer-events: none; }
.sf-hero-badge-ring { width: 100%; height: 100%; animation: sf-spin 22s linear infinite; }
.sf-hero-badge-ring text { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 11px; letter-spacing: 0.06em; fill: var(--black); }
.sf-hero-badge-core { position: absolute; inset: 27%; border-radius: 50%; background: var(--black); color: var(--yellow); display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
@keyframes sf-spin { to { transform: rotate(360deg); } }
.sf-hero-mockup { animation: sf-float 7s ease-in-out 1s infinite; }
@keyframes sf-float { 50% { transform: translateY(-8px); } }

@media (min-width: 1024px) {
  .sf-hero { padding-bottom: 24px; }
  .sf-hero h1 { font-size: clamp(52px, 4.9vw, 80px); }
  .sf-hero-badge { width: 124px; height: 124px; top: auto; right: auto; left: -2%; bottom: 8%; }
  .sf-hero-badge-core { font-size: 20px; }
}

/* --------------------------------------------------------------------------
   Nastro dei servizi
   -------------------------------------------------------------------------- */
.sf-marquee { background: var(--black); color: var(--yellow); overflow: hidden; padding: 14px 0; position: relative; z-index: 1; }
.sf-marquee-track { display: flex; width: max-content; animation: sf-marquee 40s linear infinite; }
.sf-marquee-group { display: flex; flex-shrink: 0; }
.sf-marquee-group span { display: inline-flex; align-items: center; gap: 0.9em; padding-right: 0.9em; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: clamp(18px, 2.4vw, 32px); line-height: 1.1; text-transform: uppercase; letter-spacing: -0.01em; white-space: nowrap; }
.sf-marquee-group span:nth-child(even) { color: transparent; -webkit-text-stroke: 1.3px var(--yellow); }
.sf-marquee-group span::after { content: ''; width: 0.38em; height: 0.38em; background: var(--yellow); transform: rotate(45deg); flex-shrink: 0; }
@keyframes sf-marquee { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Numeri
   -------------------------------------------------------------------------- */
.sf-stat-icon { --sf-ia: rgba(255,209,0,0.22); }
.sf-stat-box strong { font-size: clamp(26px, 2.8vw, 40px); letter-spacing: -0.02em; }
.sf-stat-box > div > span { font-size: 10px; letter-spacing: 0.1em; margin-top: 6px; line-height: 1.35; }
@media (min-width: 1024px) {
  .sf-stats-grid { padding: 34px 0; }
  .sf-stat-box + .sf-stat-box { border-left: 1px solid var(--line-dark); padding-left: 28px; }
}

/* --------------------------------------------------------------------------
   Cosa facciamo: schede a griglia con illustrazioni disegnate
   -------------------------------------------------------------------------- */
.sf-cosa-grid { gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); counter-reset: sfcosa; }
.sf-cosa-card { position: relative; border-radius: 0; background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 20px 24px; counter-increment: sfcosa; transition: background 0.35s ease; }
.sf-cosa-card::before { content: counter(sfcosa, decimal-leading-zero); position: absolute; top: 14px; right: 16px; z-index: 1; font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 11px; letter-spacing: 0.06em; color: var(--gray-500); }
.sf-cosa-card::after { content: ''; position: absolute; left: -1px; right: -1px; top: -1px; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--ease); }
.sf-cosa-card:hover { background: var(--paper); }
.sf-cosa-card:hover::after { transform: scaleX(1); }
.sf-cosa-card li { position: relative; padding-left: 16px; }
.sf-cosa-card li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: var(--yellow-dark); }
.sf-cosa-card a { transition: gap 0.3s var(--ease); }
.sf-cosa-card a:hover { gap: 10px; }

.sf-illu { display: block; width: 100%; aspect-ratio: 3 / 2; margin-bottom: 18px; background: var(--paper); border-radius: 10px; overflow: hidden; transition: background 0.35s ease; }
.sf-cosa-card:hover .sf-illu { background: #fff; }
.sf-illu-svg { width: 100%; height: 100%; display: block; }

/* micro-movimenti delle illustrazioni */
.sf-illu-svg .i-cur, .sf-illu-svg .i-pop, .sf-illu-svg .i-rise, .sf-illu-svg .i-pulse { transition: transform 0.7s var(--ease); transform-box: fill-box; transform-origin: center; }
.sf-cosa-card:hover .i-cur, .sf-servizio-block:hover .i-cur { transform: translate(-22px, -14px); }
.sf-cosa-card:hover .i-pop, .sf-servizio-block:hover .i-pop { transform: translateY(-8px) rotate(-4deg); }
.sf-cosa-card:hover .i-rise, .sf-servizio-block:hover .i-rise { transform: translateY(-8px); }
.sf-cosa-card:hover .i-pulse, .sf-servizio-block:hover .i-pulse { transform: scale(1.35); }
.sf-illu-svg .i-flow { stroke-dasharray: 5 7; animation: sf-flow 1.4s linear infinite; }
@keyframes sf-flow { to { stroke-dashoffset: -24; } }

@media (max-width: 767px) {
  .sf-cosa-card { padding: 14px 12px 18px; }
  .sf-cosa-card::before { top: 10px; right: 10px; font-size: 10px; }
  .sf-illu { margin-bottom: 12px; border-radius: 8px; }
}
@media (min-width: 1024px) {
  .sf-cosa-layout { gap: 56px; }
  .sf-cosa-intro { flex: 0 0 31%; max-width: 31%; margin-top: 0; position: sticky; top: 110px; }
  .sf-cosa-intro h2 { font-size: clamp(32px, 3.1vw, 48px); }
  .sf-cosa-card { padding: 26px 24px 28px; }
}

/* servizi: le stesse illustrazioni in grande */
.sf-servizio-block-visual.has-illu { background: var(--paper); border-color: var(--line); padding: 4% 6%; box-shadow: none; }
.sf-servizio-block-visual.has-illu .sf-illu-svg { width: 100%; height: 100%; }

/* --------------------------------------------------------------------------
   Risultati
   -------------------------------------------------------------------------- */
.sf-risultati .sf-section-head h2 { font-size: clamp(30px, 3vw, 46px); }
.sf-case-card { border: 1px solid var(--line-dark); }
.sf-case-photo { overflow: hidden; }
.sf-case-photo img { transition: transform 1s var(--ease); }
.sf-case-card:hover .sf-case-photo img { transform: scale(1.045); }
.sf-case-body { position: relative; }
.sf-case-body::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s ease; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(255,209,0,0.12), transparent 65%); }
.sf-case-card:hover .sf-case-body::before { opacity: 1; }
.sf-case-stats strong { font-size: clamp(28px, 2.8vw, 42px); letter-spacing: -0.025em; line-height: 1; margin-bottom: 4px; }
.sf-case-link { transition: gap 0.3s var(--ease); }
.sf-case-link:hover { gap: 10px; }
@media (min-width: 1024px) {
  .sf-risultati { padding: 90px 0; }
  .sf-risultati-intro { flex: 0 0 29%; max-width: 29%; }
  .sf-case-photo { height: 400px; }
}

/* --------------------------------------------------------------------------
   Processo: linea che si traccia, passi numerati, icone che si disegnano
   -------------------------------------------------------------------------- */
.sf-step-icon { --sf-ia: rgba(255,255,255,0.75); width: 76px; height: 76px; }
.sf-step-icon svg { width: 100%; height: 100%; }
.sf-step-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--black); color: var(--yellow); font-size: 14px; letter-spacing: 0; box-shadow: 0 0 0 6px var(--yellow); }
.sf-step-arrow { display: none !important; }
.sf-processo-steps { position: relative; align-items: stretch; text-align: left; }
.sf-processo-steps::before { content: ''; position: absolute; left: 21px; top: 22px; bottom: 40px; width: 2px; background: var(--black); transform-origin: top; }
.sf-step { position: relative; align-items: flex-start; padding: 0 0 30px 68px; }
.sf-step-top { margin-bottom: 10px; }
.sf-step .sf-step-num { position: absolute; left: 0; top: 0; }
.sf-processo-note { display: inline-block; margin-top: 10px; padding: 12px 18px; background: var(--black); color: var(--yellow); border-radius: 8px; font-size: 15px; }
.sf-processo .sf-container { text-align: left; }
@media (max-width: 1023px) { .sf-processo .sf-processo-note { display: table; margin-left: auto; margin-right: auto; } }
@media (min-width: 1024px) {
  .sf-processo-steps { gap: 32px; }
  .sf-processo-steps::before { left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; transform-origin: left; }
  .sf-step { padding: 0; }
  .sf-step .sf-step-num { position: static; }
  .sf-step-top { flex-direction: column; align-items: flex-start; gap: 22px; margin-bottom: 18px; }
  .sf-step h3 { font-size: 17px; }
  .sf-step p { font-size: 14px; }
  .sf-processo-note { font-size: 17px; margin-top: 44px; }
}

/* --------------------------------------------------------------------------
   La differenza
   -------------------------------------------------------------------------- */
.sf-differenza { background: var(--paper); }
.sf-differenza-grid { gap: 0; border-top: 1px solid var(--line); }
.sf-diff-item { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; align-content: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.sf-diff-item > * { grid-column: 2; min-width: 0; }
.sf-diff-item > p:empty { display: none; }
.sf-diff-icon { --sf-ia: rgba(255,209,0,0.28); grid-column: 1 !important; grid-row: 1 / span 3; width: 56px; height: 56px; margin: 0; border-radius: 12px; background: var(--black); color: var(--yellow); transition: transform 0.4s var(--ease), background 0.3s ease, color 0.3s ease; }
.sf-diff-icon svg { width: 26px; height: 26px; }
.sf-diff-item:hover .sf-diff-icon { --sf-ia: rgba(255,255,255,0.6); background: var(--yellow); color: var(--black); transform: rotate(-6deg); }
.sf-diff-item h3 { font-size: 15px; line-height: 1.25; }
.sf-diff-item p { font-size: 14px; }
@media (min-width: 1024px) {
  .sf-differenza-grid { grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .sf-diff-item { padding: 34px 0; }
}

/* --------------------------------------------------------------------------
   Fatto bene, anche sotto: anelli tipo Lighthouse
   -------------------------------------------------------------------------- */
.sf-tech { padding: 48px 0; }
.sf-scores { gap: 22px 28px; }
.sf-score-box { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sf-score-box .sf-ring { position: relative; display: block; width: 76px; height: 76px; margin: 0; }
.sf-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sf-ring circle { fill: none; stroke-width: 5; }
.sf-ring .t { stroke: rgba(255,255,255,0.1); }
.sf-ring .v { stroke: var(--yellow); stroke-linecap: round; stroke-dasharray: var(--v) 100; }
.sf-score-box .sf-ring strong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.sf-score-box .sf-ring strong.is-word { font-size: 16px; color: var(--white); }
.sf-score-box > span:last-child { margin-top: 10px; }
.sf-tech-logos svg { transition: opacity 0.3s ease, transform 0.3s var(--ease); }
.sf-tech-logos:hover svg { opacity: 0.45; }
.sf-tech-logos svg:hover { opacity: 1; transform: translateY(-3px); }
@media (min-width: 1024px) { .sf-tech { padding: 44px 0; } }

/* --------------------------------------------------------------------------
   Recensioni e FAQ
   -------------------------------------------------------------------------- */
.sf-testimonial-card { position: relative; border-radius: 14px; background: #fff; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s ease; }
.sf-testimonial-card::before { content: '\201C'; position: absolute; top: 4px; right: 14px; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 56px; line-height: 1; color: var(--yellow); }
.sf-testimonial-card:hover { transform: translate(-3px, -3px); border-color: var(--black); box-shadow: 6px 6px 0 0 var(--yellow); }
.sf-testimonial-card blockquote { font-style: normal; color: var(--gray-700); }
.sf-stars { color: var(--black); }
.sf-avatar { background: var(--yellow); }
.sf-reviews-link { text-decoration-thickness: 2px; text-underline-offset: 4px; }

.sf-faq-q { padding: 15px 2px; font-size: 14px; gap: 16px; }
.sf-faq-q > span:first-child { transition: color 0.2s ease; }
.sf-faq-q:hover > span:first-child { text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.sf-faq-plus { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--black); color: var(--black); display: inline-flex; align-items: center; justify-content: center; font-size: 17px; line-height: 1; transition: transform 0.35s var(--ease), background 0.25s ease, border-color 0.25s ease; }
.sf-faq-item.is-open .sf-faq-plus { background: var(--yellow); border-color: var(--yellow); }
.sf-faq-a { transition: max-height 0.4s var(--ease); }
@media (min-width: 1024px) { .sf-recensioni-faq { padding-top: 90px; padding-bottom: 90px; } .sf-recensioni-faq-grid { margin-top: 0; } }

/* --------------------------------------------------------------------------
   CTA finale e footer
   -------------------------------------------------------------------------- */
.sf-cta h2 { font-size: clamp(28px, 3.4vw, 52px); line-height: 1.02; letter-spacing: -0.025em; }
.sf-cta-check svg { color: var(--black); }

.sf-footer-word { overflow: hidden; margin-top: 36px; text-align: center; white-space: nowrap; font-family: 'Poppins', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: 0.78; font-size: clamp(40px, 10.4vw, 190px); color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.2); transition: color 0.6s ease, -webkit-text-stroke-color 0.6s ease; user-select: none; }
@media (hover: hover) and (pointer: fine) { .sf-footer-word:hover { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); } }
.sf-contact-item svg { --sf-ia: rgba(255,209,0,0.25); }
.sf-social-btn { transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.3s var(--ease); }
.sf-social-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--black); transform: translateY(-2px); }
.sf-footer-col a { transition: color 0.2s ease, padding 0.3s var(--ease); }
.sf-footer-col a:hover { padding-left: 4px; }

/* --------------------------------------------------------------------------
   Pagine interne: schede con immagine che si avvicina
   -------------------------------------------------------------------------- */
.sf-blog-card-img img, .sf-progetto-card-img img, .sf-hfeat-img img, .sf-blog-featured-img img { transition: transform 0.9s var(--ease); }
.sf-blog-card:hover .sf-blog-card-img img, .sf-progetto-card:hover .sf-progetto-card-img img, .sf-hfeat:hover .sf-hfeat-img img, .sf-blog-featured:hover .sf-blog-featured-img img { transform: scale(1.05); }
.sf-blog-card, .sf-progetto-card { transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease), border-color 0.3s ease; }
.sf-blog-card:hover, .sf-progetto-card:hover { border-color: var(--black); box-shadow: 6px 6px 0 0 var(--yellow); transform: translate(-3px, -3px); }
.sf-ostuni-servizio-icon, .sf-contatti-item-icon { --sf-ia: rgba(255,209,0,0.45); }
.sf-chi-sono-badge-icon, .sf-htile-icon { --sf-ia: rgba(255,209,0,0.22); }

/* --------------------------------------------------------------------------
   Comparsa allo scorrimento (solo elementi sotto la piega, assegnata da motion.js)
   -------------------------------------------------------------------------- */
.sf-anim .sf-rv { opacity: 0; transform: translateY(26px); }
.sf-anim .sf-rv.is-in { opacity: 1; transform: none; transition: opacity 0.8s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }

.sf-anim [data-anim] .dr { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sf-anim [data-anim].is-in .dr { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s var(--ease) calc(var(--i, 0) * 0.22s + 0.35s); }
.sf-anim .sf-processo-steps[data-anim]::before { transform: scaleY(0); }
.sf-anim .sf-processo-steps[data-anim] .sf-step-num { transform: scale(0); }
.sf-anim .sf-processo-steps[data-anim].is-in::before { transform: none; transition: transform 1.4s var(--ease); }
.sf-anim .sf-processo-steps[data-anim].is-in .sf-step-num { transform: none; transition: transform 0.5s cubic-bezier(.3,1.6,.5,1) calc(var(--i, 0) * 0.22s + 0.15s); }
@media (min-width: 1024px) { .sf-anim .sf-processo-steps[data-anim]::before { transform: scaleX(0); } }
.sf-anim .sf-score-box[data-anim] .v { stroke-dasharray: 0 100; }
.sf-anim .sf-score-box[data-anim].is-in .v { stroke-dasharray: var(--v) 100; transition: stroke-dasharray 1.6s var(--ease) 0.2s; }

/* ==========================================================================
   Fase 2 (22/11/2026 sera): via le ultime immagini "da AI", piu' interazione
   ========================================================================== */

/* barra di avanzamento della lettura sotto l'header */
.sf-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--black); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Apertura: il sito vero di un cliente in una finestra disegnata in codice,
   con schede di dati reali che reagiscono a mouse e scorrimento */
.sf-stage { position: relative; margin: 26px 4px 34px; transform: perspective(1400px) rotateY(calc(var(--px, 0) * -5deg)) rotateX(calc(var(--py, 0) * 4deg)); transition: transform 0.7s var(--ease); }

.sf-chip { --dp: 14; position: absolute; z-index: 3; transform: translate3d(calc(var(--px, 0) * var(--dp) * 1px), calc(var(--py, 0) * var(--dp) * 1px - var(--sy, 0) * var(--dp) * 2.4px), 0); transition: transform 0.6s var(--ease); }
.sf-chip-in { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: #fff; border: 2px solid var(--black); border-radius: 12px; box-shadow: 4px 4px 0 0 var(--black); animation: sf-float 6s ease-in-out infinite; }
.sf-chip strong { display: block; font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 16px; line-height: 1; letter-spacing: -0.02em; }
.sf-chip small { display: block; margin-top: 3px; font-size: 9px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-600); white-space: nowrap; }
.sf-chip--imp { --dp: 26; right: -4px; top: -18px; }
.sf-chip--imp .sf-chip-in { background: var(--black); color: #fff; animation-delay: -2s; }
.sf-chip--imp strong { color: var(--yellow); }
.sf-chip--imp small { color: rgba(255,255,255,0.65); }
.sf-chip--speed { --dp: 18; left: -6px; bottom: -22px; }
.sf-chip--speed .sf-chip-in { animation-delay: -4s; }
.sf-chip-ring { position: relative; width: 34px; height: 34px; flex-shrink: 0; }
.sf-chip-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.sf-chip-ring circle { fill: none; stroke: var(--gray-200); stroke-width: 7; }
.sf-chip-ring .v { stroke: var(--black); stroke-dasharray: 97 100; stroke-linecap: round; }
.sf-chip-ring b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 800; }
.sf-chip-stars { font-size: 13px; letter-spacing: 2px; line-height: 1; }
.sf-hero-badge { right: auto; left: -14px; top: -34px; width: 80px; height: 80px; }
@media (min-width: 1024px) {
  .sf-hero { padding-bottom: 56px; }
  .sf-stage { margin: 30px 10px 30px 30px; }
  .sf-chip-in { padding: 12px 16px; border-radius: 14px; box-shadow: 6px 6px 0 0 var(--black); }
  .sf-chip strong { font-size: 24px; }
  .sf-chip small { font-size: 10px; }
  .sf-chip--imp { right: -26px; top: -26px; }
  .sf-chip--speed { left: -40px; bottom: 16%; }
  .sf-chip-ring { width: 46px; height: 46px; }
  .sf-chip-ring b { font-size: 14px; }
  .sf-chip-stars { font-size: 16px; }
  .sf-hero-badge { left: auto; right: -10px; top: auto; bottom: -46px; width: 116px; height: 116px; }
}

/* caso studio: stessa inquadratura sullo schermo, niente scena col portatile */
.sf-case-photo img { transform-origin: 50% 45%; transform: scale(1.42); }
.sf-case-card:hover .sf-case-photo img { transform: scale(1.48); }

/* tecnologie: loghi tutti monocromatici */
.sf-tech-logos svg { color: rgba(255,255,255,0.85); }

/* recensioni su desktop: testo leggibile (prima 11px) */
@media (min-width: 1024px) {
  .sf-testimonials-row { gap: 18px; }
  .sf-testimonials-row .sf-testimonial-card { padding: 22px 20px; }
  .sf-testimonials-row .sf-testimonial-card blockquote { font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }
  .sf-testimonials-row .sf-stars { font-size: 13px; }
  .sf-testimonials-row .sf-testimonial-author strong { font-size: 13px; }
  .sf-testimonials-row .sf-testimonial-author span { font-size: 11px; }
}

/* illustrazioni: seguono il puntatore (desktop) e si animano da sole quando la scheda e' al centro (touch) */
.sf-cosa-card .sf-illu-svg { transform: translate(calc(var(--px, 0) * 7px), calc(var(--py, 0) * 5px)); transition: transform 0.5s var(--ease); }
.sf-cosa-card.is-live .i-cur { transform: translate(-22px, -14px); }
.sf-cosa-card.is-live .i-pop { transform: translateY(-8px) rotate(-4deg); }
.sf-cosa-card.is-live .i-rise { transform: translateY(-8px); }
.sf-cosa-card.is-live .i-pulse { transform: scale(1.35); }
.sf-cosa-card.is-live::after { transform: scaleX(1); }

/* mobile: servizi e recensioni a scorrimento orizzontale, la scheda dopo si intravede */
@media (max-width: 767px) {
  .sf-cosa-intro::after { content: 'Scorri i servizi'; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 12px; border-radius: 999px; background: var(--black); color: var(--yellow); font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
  .sf-cosa-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border: 0; margin: 20px -20px 0; padding: 4px 20px 14px; scroll-padding: 0 20px; }
  .sf-cosa-grid::-webkit-scrollbar { display: none; }
  .sf-cosa-card { flex: 0 0 82%; scroll-snap-align: start; border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 20px; overflow: hidden; }
  .sf-cosa-card ul { display: flex; margin-bottom: 14px; }
  .sf-cosa-card h3 { font-size: 16px; }
  .sf-cosa-card li { font-size: 13px; }
}
@media (max-width: 1023px) {
  .sf-testimonials-row { flex-direction: row; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -20px; padding: 6px 20px 14px; scroll-padding: 0 20px; }
  .sf-testimonials-row::-webkit-scrollbar { display: none; }
  .sf-testimonials-row .sf-testimonial-card { flex: 0 0 84%; scroll-snap-align: start; margin: 0; display: flex; flex-direction: column; }
  .sf-testimonials-row .sf-testimonial-author { margin-top: auto; }
}
/* pressione al tocco: risposta immediata */
@media (hover: none) {
  .sf-btn:active, .sf-cbar a:active, .sf-cosa-card a:active, .sf-faq-q:active { transform: scale(0.97); }
}

/* --------------------------------------------------------------------------
   Movimento ridotto: tutto fermo, tutto visibile
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .sf-marquee-track, .sf-hero-mockup, .sf-hero-badge-ring { animation: none !important; }
}

/* apertura: di nuovo il portatile (scelta di Gianluca 22/11), schede dati attorno */
.sf-stage .sf-hero-mockup { display: block; width: 100%; height: auto; }
.sf-stage { margin: 18px 0 26px; }
@media (min-width: 1024px) { .sf-stage { margin: 10px 0 10px 10px; } .sf-chip--speed { left: -10px; bottom: 10%; } .sf-chip--imp { right: 0; top: 0; } }
/* schede lontane da quelle gia' disegnate nel mockup (Google in alto a destra, telefono a sinistra) */
.sf-chip--imp { right: auto; left: -4px; top: -14px; }
.sf-chip--speed { left: auto; right: 2%; bottom: -18px; }
.sf-hero-badge { left: auto; right: -6px; top: -40px; bottom: auto; }
@media (min-width: 1024px) {
  .sf-chip--imp { left: 6%; right: auto; top: 2%; }
  .sf-chip--speed { left: auto; right: 22%; bottom: -4%; }
  .sf-hero-badge { right: -10px; top: auto; bottom: -46px; }
}

/* CTA con la foto di Gianluca: il busto deve "uscire" dal giallo sopra il footer come prima.
   isolation:isolate lo chiudeva dentro la sezione; z-index:2 tiene la griglia dietro e la foto sopra il footer */
.sf-cta { isolation: auto; z-index: 2; }
@media (min-width: 1024px) {
  .sf-cta-inner { align-items: flex-end; }
  .sf-cta-inner > div:not(.sf-cta-photo) { align-self: center; }
  .sf-cta h2 { font-size: clamp(28px, 2.9vw, 42px); }
}

/* ==========================================================================
   Pagina Chi sono (22/11 sera)
   ========================================================================== */
/* tre valori: schede numerate con barra gialla al passaggio, come in home */
.sf-chi-sono-values-grid { counter-reset: sfval; }
.sf-chi-sono-value { position: relative; counter-increment: sfval; border: 1px solid var(--line); border-radius: 14px; padding: 30px 24px 12px; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.sf-chi-sono-value::before { content: counter(sfval, decimal-leading-zero); position: absolute; top: 14px; right: 18px; font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 800; color: var(--gray-400, #9a9a9a); }
.sf-chi-sono-value::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--yellow); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.sf-chi-sono-value:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 0 var(--black); }
.sf-chi-sono-value:hover::after { transform: scaleX(1); }
.sf-chi-sono-value h2 { padding-right: 28px; }
/* riquadri nel nero: icona su tessera gialla, bordo che si accende */
.sf-chi-sono-badge { border-radius: 14px; transition: border-color 0.3s, background 0.3s; }
.sf-chi-sono-badge:hover { border-color: var(--yellow); background: rgba(255,209,0,0.05); }
.sf-chi-sono-badge-icon { background: var(--yellow); color: var(--black); --sf-ia: rgba(19,19,19,0.18); }
.sf-chi-sono-stage-text p { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: -0.01em; }


/* home, CTA finale su mobile: foto SOTTO al testo, il busto poggia sul bordo del footer nero come su desktop */
@media (max-width: 1023px) {
  .sf-cta:not(.sf-cta--no-photo) { padding-bottom: 0; }
  .sf-cta:not(.sf-cta--no-photo) .sf-cta-inner { display: flex; flex-direction: column; }
  .sf-cta-photo { order: 2; width: 240px; margin: 30px auto 0; }
  .sf-cta-photo img { width: 100%; margin-top: 0; }
}

/* pagine interne (Ostuni, Brindisi, Contatti): icone come in home, tessera nera con tratto giallo */
.sf-ostuni-servizio-icon, .sf-contatti-item-icon { background: var(--black) !important; color: var(--yellow) !important; border-radius: 12px; --sf-ia: rgba(255,209,0,0.22); transition: transform 0.35s var(--ease), background 0.3s, color 0.3s; }
.sf-ostuni-servizio-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s; }
.sf-ostuni-servizio-card:hover { transform: translateY(-4px); border-color: var(--black); box-shadow: 6px 6px 0 0 var(--yellow); }
.sf-ostuni-servizio-card:hover .sf-ostuni-servizio-icon { background: var(--yellow) !important; color: var(--black) !important; transform: rotate(-6deg); }

/* risultati: un solo caso studio, i tre pallini da carosello erano finti -> nascosti anche su mobile */
.sf-dots { display: none !important; }
/* foto CTA su mobile: chiude 1px di giallo sotto il busto (arrotondamenti), la foto scende sul bordo del footer */
@media (max-width: 1023px) { .sf-cta-photo { margin-bottom: -2px; position: relative; z-index: 3; } }

/* scritta del footer: arrivati in fondo si accende come un'insegna al neon (due sfarfallii) e resta accesa.
   Niente piu' riempimento giallo al tocco su telefono. */
.sf-footer-word.is-on { -webkit-text-stroke-color: var(--yellow); filter: drop-shadow(0 0 3px rgba(255,209,0,0.9)) drop-shadow(0 0 14px rgba(255,209,0,0.45)); animation: sf-neon 1.6s linear 1 both; }
@keyframes sf-neon {
  0%, 9%   { -webkit-text-stroke-color: rgba(255,255,255,0.2); filter: none; }
  10%, 13% { -webkit-text-stroke-color: var(--yellow); filter: drop-shadow(0 0 3px rgba(255,209,0,0.9)) drop-shadow(0 0 14px rgba(255,209,0,0.45)); }
  14%, 27% { -webkit-text-stroke-color: rgba(255,255,255,0.2); filter: none; }
  28%, 31% { -webkit-text-stroke-color: var(--yellow); filter: drop-shadow(0 0 3px rgba(255,209,0,0.9)) drop-shadow(0 0 14px rgba(255,209,0,0.45)); }
  32%, 37% { -webkit-text-stroke-color: rgba(255,209,0,0.35); filter: none; }
  38%, 100% { -webkit-text-stroke-color: var(--yellow); filter: drop-shadow(0 0 3px rgba(255,209,0,0.9)) drop-shadow(0 0 14px rgba(255,209,0,0.45)); }
}
@media (prefers-reduced-motion: reduce) { .sf-footer-word.is-on { animation: none; } }
/* scritta dentro al contenitore, sopra la linea con P.IVA e link legali */
.sf-footer-word { margin-top: 44px; padding: 0.12em 0; font-size: clamp(36px, 9.4vw, 176px); }
.sf-footer-word + .sf-footer-bottom { margin-top: 26px; }
.sf-footer-word { overflow: visible; }

/* hero piu' alta: meno spazio tra menu e testo (prima 40px mobile / 56px desktop) */
.sf-hero { padding-top: 20px; }
@media (min-width: 1024px) { .sf-hero { padding-top: 26px; } }

/* Menu sempre fisso (prima si nascondeva scendendo): allo scorrimento si compatta.
   Il margine sotto compensa l'altezza persa, cosi' la pagina non salta. */
.sf-header--hidden { transform: none !important; }
.sf-header-inner { transition: padding 0.3s var(--ease); }
.sf-logo-badge { transition: width 0.3s var(--ease), height 0.3s var(--ease), font-size 0.3s var(--ease); }
.sf-logo-sub { transition: opacity 0.25s ease, max-height 0.3s var(--ease); max-height: 12px; overflow: hidden; }
.sf-header { transition: box-shadow 0.25s ease, margin 0.3s var(--ease); }
.sf-header.is-compact { margin-bottom: 12px; }
.sf-header.is-compact .sf-header-inner { padding-top: 8px; padding-bottom: 8px; }
.sf-header.is-compact .sf-logo-badge { width: 32px; height: 32px; }
.sf-header.is-compact .sf-logo-sub { opacity: 0; max-height: 0; }
@media (min-width: 1024px) {
  .sf-header.is-compact { margin-bottom: 16px; }
  .sf-header.is-compact .sf-header-inner { padding-top: 10px; padding-bottom: 10px; }
}
