/* ==========================================================================
   OASI — Template "Scheda area" (page-scheda.php)
   Ref Figma 474:1622 (Cosa facciamo / case — Dipendenze patologiche).
   Riusa da content.css: .photo-break, .content/.rte (descrizione), .sec-head,
   .eyebrow, .btn. Qui: banda numeri (teal) + griglia card sotto-servizi L3
   staggered (paper) + banda CTA compatta "Sostieni quest'area" (teal).
   DS: container 1400, radius 0, un accento arancio per sezione.
   ========================================================================== */

/* La descrizione riusa .content (fondo paper). Nessun override necessario. */

/* ============ BANDA NUMERI (teal) ============ */
.scheda-numbers{background:var(--teal);color:#fff;padding:clamp(80px,9vw,120px) 0}
.scheda-numbers .wrap{max-width:1400px;margin:0 auto;padding:0 var(--pad)}
.scheda-numbers .eyebrow{margin-bottom:44px}
.numbers-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-top:1.5px solid rgba(255,255,255,.28);border-bottom:1.5px solid rgba(255,255,255,.28)}
.num-cell{padding:44px 36px 44px 0}
.num-cell + .num-cell{padding-left:44px;border-left:1px solid rgba(255,255,255,.16)}
.num-cell .n{font-family:var(--font-display);font-weight:800;font-size:clamp(2.8rem,5vw,4rem);line-height:.9;letter-spacing:-.04em;color:#fff;display:flex;align-items:baseline;gap:2px}
.num-cell .n .suf{color:var(--orange);font-size:.5em;font-weight:800}
.num-cell .n::after{content:"";width:10px;height:10px;border-radius:50%;background:var(--orange);display:inline-block;margin-left:10px;align-self:center;flex-shrink:0}
.num-cell p{margin-top:22px;font-family:var(--font-body);font-size:.98rem;line-height:1.55;color:rgba(255,255,255,.78);max-width:30ch}

/* ============ SOTTO-SERVIZI (griglia card L3 staggered, paper) ============ */
/* Card dinamiche = pagine L3 figlie (template-parts/card-featured.php, .hero-tile).
   Ritmo sfalsato replicato dalla griglia hub "Cosa facciamo" (hub.css). */
.subservices{background:var(--paper);padding:clamp(90px,10vw,140px) 0}
.subservices .wrap{max-width:1400px;margin:0 auto;padding:0 var(--pad)}
.subservices .sec-head{margin-bottom:48px}

.subservices-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;align-items:start}
/* Card centrale di ogni riga più in ALTO (D1 cliente): le due laterali (3n+1 e
   3n+3) scendono, così la centrale (3n+2) resta in cima. */
.subservices-grid > .hero-tile:nth-child(3n+1),
.subservices-grid > .hero-tile:nth-child(3n+3){margin-top:clamp(48px,7vw,96px)}

/* La card home (.hero-tile) è stilizzata in home.css, caricato SOLO sulla home:
   qui la scheda ne replica gli stili essenziali (foto a tutta card + overlay
   titolo/eyebrow) scoped sotto .subservices-grid, adattandola alla griglia su
   fondo paper (misura fluida, ombra tenue, cursore pointer). */
.subservices-grid .hero-tile{position:relative;overflow:hidden;background:#d8c6a8;cursor:pointer;box-shadow:0 26px 55px -28px rgba(11,37,48,.4);transition:transform .5s cubic-bezier(.2,.8,.2,1)}
.subservices-grid .hero-tile.sub-card{width:100%;height:auto;aspect-ratio:3/4}
.subservices-grid .hero-tile img{width:100%;height:100%;object-fit:cover;transition:transform .8s cubic-bezier(.2,.8,.2,1)}
.subservices-grid .hero-tile:hover img{transform:scale(1.06)}
.subservices-grid .hero-tile .lbl{position:absolute;left:20px;right:20px;bottom:20px;color:#fff;font-size:.78rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;display:flex;align-items:center;gap:10px;z-index:1}
.subservices-grid .hero-tile .lbl::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--orange);flex-shrink:0}
.subservices-grid .hero-tile .lbl::after{content:"";position:absolute;left:-20px;right:-20px;bottom:-20px;top:-40px;background:linear-gradient(180deg,transparent 30%,rgba(0,0,0,.78));z-index:-1}
.subservices-grid .hero-tile .meta{position:absolute;left:20px;top:20px;z-index:1;font-size:.72rem;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.9);background:rgba(0,0,0,.4);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);padding:6px 12px;border-radius:999px}

/* ============ BANDA CTA "Sostieni quest'area" (teal, compatta) ============ */
.support-band{background:var(--teal);color:#fff;padding:clamp(48px,6vw,64px) 0}
.support-band .wrap{max-width:1400px;margin:0 auto;padding:0 var(--pad);display:flex;align-items:center;justify-content:space-between;gap:32px;flex-wrap:wrap}
.support-title{display:inline-flex;align-items:center;gap:22px;font-family:var(--font-display);font-weight:800;font-size:clamp(1.6rem,3vw,2.4rem);line-height:1.05;letter-spacing:-.02em;color:#fff;margin:0}
.support-title .d{width:16px;height:16px;border-radius:50%;background:var(--orange);flex-shrink:0}
.support-title em{font-style:normal;color:var(--orange)}

/* ============ SLIDER "ALTRE AREE" L2 (teal, prima del prefooter) ============ */
/* Ref Figma 549-3221. Slider orizzontale scroll-snap: le ALTRE aree L2 come
   card compatte su fondo teal, separate da un pallino arancio; frecce prev/next
   via main.js (hook condiviso [data-slider]); scroll-behavior smooth solo se
   l'utente non chiede reduced-motion. */
.l2-slider{background:var(--teal);color:#fff;padding:clamp(70px,8vw,120px) 0}
.l2-slider-row{max-width:1400px;margin:0 auto;padding:clamp(40px,5vw,56px) var(--pad);border-top:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18)}
.l2-slider-track{--l2-gap:clamp(16px,2vw,24px);display:flex;gap:var(--l2-gap);overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;scrollbar-width:none}
.l2-slider-track::-webkit-scrollbar{display:none}
.l2-slider-track:focus-visible{outline:2px solid var(--orange);outline-offset:4px}

.l2-area-card{position:relative;flex:0 0 clamp(280px,30vw,400px);scroll-snap-align:start;display:flex;flex-direction:column;justify-content:space-between;gap:24px;min-height:clamp(190px,20vw,241px);padding:clamp(24px,2.4vw,32px);background:rgba(0,84,112,.35);border:1px solid rgba(255,255,255,.4);-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);color:#fff;text-decoration:none;transition:background .25s,border-color .25s}
.l2-area-card:hover{background:rgba(0,84,112,.6);border-color:rgba(255,255,255,.7)}
/* pallino arancio separatore, centrato nel gap tra due card (non sull'ultima) */
.l2-area-card::after{content:"";position:absolute;top:50%;right:calc(var(--l2-gap) / -2);width:9px;height:9px;border-radius:50%;background:var(--orange);transform:translate(50%,-50%);pointer-events:none}
.l2-area-card:last-child::after{display:none}
.l2-area-title{font-family:var(--font-display);font-weight:800;font-size:clamp(1.5rem,2.2vw,2rem);line-height:1.12;letter-spacing:-.02em;color:#fff}
.l2-area-cta{display:inline-flex;align-items:center;gap:10px;align-self:flex-end;font-family:var(--font-body);font-weight:700;font-size:.82rem;letter-spacing:.14em;text-transform:uppercase;color:#fff}
.l2-area-cta .d{width:9px;height:9px;border-radius:50%;background:var(--orange);flex-shrink:0}

.l2-slider-foot{max-width:1400px;margin:28px auto 0;padding:0 var(--pad)}
.l2-slider-ctrls{display:flex;gap:10px}
.l2-slider-btn{width:52px;height:52px;border-radius:50%;background:transparent;border:1.5px solid rgba(255,255,255,.4);color:#fff;display:flex;align-items:center;justify-content:center;transition:all .2s;cursor:pointer}
.l2-slider-btn:hover:not(:disabled){background:#fff;border-color:#fff;color:var(--teal)}
.l2-slider-btn:disabled{opacity:.3;cursor:not-allowed}
.l2-slider-btn svg{width:16px;height:16px}
@media(prefers-reduced-motion:no-preference){.l2-slider-track{scroll-behavior:smooth}}

/* ============ RESPONSIVE ============ */
@media(max-width:900px){
  .numbers-grid{grid-template-columns:1fr 1fr}
  .num-cell:nth-child(2n){padding-right:0}
  .num-cell:nth-child(2n+1) + .num-cell{border-left:1px solid rgba(255,255,255,.16)}
  .num-cell:nth-child(odd){padding-left:0;border-left:0}
  .num-cell:nth-child(n+3){border-top:1px solid rgba(255,255,255,.16)}
  .subservices-grid{grid-template-columns:repeat(2,1fr)}
  .subservices-grid > .hero-tile:nth-child(3n+1),
  .subservices-grid > .hero-tile:nth-child(3n+3){margin-top:0}
  .subservices-grid > .hero-tile:nth-child(2n){margin-top:clamp(40px,6vw,72px)}
}
@media(max-width:560px){
  .numbers-grid{grid-template-columns:1fr}
  .num-cell{padding:32px 0!important;border-left:0!important;border-top:1px solid rgba(255,255,255,.16)}
  .num-cell:first-child{border-top:0}
  .subservices-grid{grid-template-columns:1fr}
  .subservices-grid > .hero-tile{margin-top:0}
  .support-band .wrap{flex-direction:column;align-items:flex-start}
  .l2-area-card{flex-basis:82vw}
}
