/* Sapore Calabria — home in stile banner: hero animato, pennellate, scie tricolori, collage.
   Caricato solo sulla front page (functions.php), dopo theme.css. Mobile first. */
@font-face { font-family: "Kaushan Script"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/kaushan-script.woff2) format("woff2"); }

:root {
	--script: "Kaushan Script", "Segoe Script", cursive;
	/* pennellata (etichette, occhielli, pulsante «Ordina ora»): si usa come maschera, il colore lo dà lo sfondo */
	--brush: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 50' preserveAspectRatio='none'%3E%3Cpath d='M12 8L26 9L36 9L44 9L60 9L73 9L82 9L99 9L115 10L123 9L131 9L144 9L152 9L167 9L178 9L188 8L199 10L189 13L198 15L189 18L196 24L189 28L198 29L190 32L199 36L190 40L188 42L178 42L167 43L152 43L144 42L131 44L123 44L115 44L99 43L82 43L73 44L60 44L44 43L36 43L26 44L12 44L6 42L10 39L3 35L10 32L6 30L10 26L0 21L9 17L3 13L12 10ZM26 4Q88 2 150 4Q88 5 26 4ZM60 46Q121 45 182 46Q121 48 60 46Z'/%3E%3C/svg%3E");
	/* bordo strappato in alto, pieno in basso */
	--edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40L0 28L15 16L30 22L73 20L109 26L154 18L169 33L203 11L233 18L270 12L294 29L340 10L357 21L388 24L426 29L468 15L506 32L542 13L582 29L625 10L650 25L686 22L729 33L771 24L798 24L838 18L879 23L912 9L946 26L972 23L1005 32L1038 20L1055 33L1089 12L1135 21L1177 15L1214 22L1241 10L1278 25L1311 19L1339 26L1380 12L1396 31L1434 26L1440 25L1440 40Z'/%3E%3C/svg%3E");
	/* scia tricolore */
	--trail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 30' preserveAspectRatio='none'%3E%3Cpath fill='%230a6b1e' d='M2 8C80 1 190 0 298 2C200 7 100 12 3 16Z'/%3E%3Cpath fill='%23fff' stroke='%23e6d6b0' stroke-width='.5' d='M4 17C90 10 200 8 297 9C200 13 100 18 5 24Z'/%3E%3Cpath fill='%23d4000a' d='M6 23C100 17 200 15 296 16C200 21 100 26 7 30Z'/%3E%3C/svg%3E");
}

/* ---------- Occhielli a pennellata e titoli con scia tricolore ---------- */
.sc-kicker { padding: .5rem 1.4rem .45rem; border-radius: 0; background: var(--rosso); color: #fff; -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; }
.sc-trail, .sc-sec__head h2::after, .sc-ship h2::after { display: block; width: min(12rem, 70%); height: 1rem; background: var(--trail) 0 0 / 100% 100% no-repeat; }
.sc-sec__head h2::after, .sc-ship h2::after { content: ""; margin-top: .6rem; }
.sc-center h2::after { margin-inline: auto; }

/* ---------- Hero: foto con zoom lento, parallax, peperoncini e schizzi ---------- */
.sc-hero { background: #2c6fb5; } /* il cielo della foto, mentre l'immagine arriva */
.sc-hero picture { transform: translate3d(0, calc(var(--par, 0) * .3px), 0); }
.sc-hero img { transform-origin: 50% 0; animation: sc-kb 28s ease-in-out infinite alternate; }
@keyframes sc-kb { from { transform: scale(var(--kb0, 1.02)); } to { transform: scale(var(--kb1, 1.1)); } }
/* isola di Cirella dall'alto, due foto: sfumano a turno sopra la prima, ciclo di 15 s (5 s ciascuna); con animazioni ridotte resta solo la prima */
.sc-hero picture.sc-hero__s2 { opacity: 0; animation: sc-s2 15s ease-in-out infinite; }
.sc-hero picture.sc-hero__s2 img { object-position: 50% 50%; }
.sc-hero picture.sc-hero__s3 { animation-delay: 5s; }
@keyframes sc-s2 { 0%, 30% { opacity: 0; } 36%, 63% { opacity: 1; } 69%, 100% { opacity: 0; } }
/* ’nduja: nessuno zoom; la foto sta intera (sotto il testo su telefono, a destra su desktop) e il resto dello schermo è la stessa foto sfocata */
.sc-hero picture.sc-hero__nduja img { animation: none; transform: none; z-index: 1; }
.sc-hero picture.sc-hero__nduja::before { content: ""; position: absolute; inset: -6%; background: var(--bg) center / cover no-repeat; filter: blur(22px) brightness(.85); }
@media (min-width: 701px) {
	.sc-hero picture.sc-hero__nduja img { inset: 15% 0 auto auto; width: min(58%, 1000px); height: auto; aspect-ratio: 16 / 9; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 14%), linear-gradient(180deg, transparent 0, #000 10%, #000 90%, transparent 100%); mask-composite: intersect; }
}
@media (max-width: 700px) {
	.sc-hero picture.sc-hero__nduja img { inset: auto 0 22% 0; height: auto; aspect-ratio: 16 / 9; -webkit-mask: linear-gradient(180deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%); mask: linear-gradient(180deg, transparent 0, #000 1rem, #000 calc(100% - 1rem), transparent 100%); }
}
@media (prefers-reduced-motion: reduce) { .sc-hero picture.sc-hero__s2 { display: none; } }
.sc-hero::before { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; z-index: 2; height: 26px; background: var(--crema); -webkit-mask: var(--edge) center / 100% 100% no-repeat; mask: var(--edge) center / 100% 100% no-repeat; }
.sc-hero__in { position: relative; z-index: 1; padding-bottom: 3.5rem; }
/* telefono: titolo nel cielo, uomo libero al centro, pulsanti in basso; la foto è ingrandita dall'alto per abbassarlo */
@media (max-width: 700px) {
	.sc-hero { align-items: stretch; }
	.sc-hero img { --kb0: 1.12; --kb1: 1.2; }
	.sc-hero::after { background: linear-gradient(180deg, rgba(2, 24, 48, .62) 0%, rgba(2, 24, 48, .5) 34%, rgba(2, 24, 48, .22) 46%, rgba(2, 24, 48, 0) 56%, rgba(1, 30, 6, 0) 66%, rgba(1, 24, 5, .8) 100%); }
	.sc-hero__in { display: flex; padding-top: calc(var(--hh, 76px) + 1.5rem); }
	.sc-hero__txt { display: flex; flex-direction: column; align-items: flex-start; }
	.sc-hero h1 { font-size: 2.375rem; }
	.sc-hero__lead { margin-bottom: 1.5rem; font-size: 1.0625rem; }
	.sc-hero__cta { width: 100%; margin-top: auto; }
}
.sc-hero h1 { text-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.sc-hero h1 .sc-script { display: block; margin: .08em 0 .12em -.04em; color: var(--giallo); font: 400 1.08em/1.1 var(--script); rotate: -2deg; transform-origin: left; }
.sc-hero__lead { text-shadow: 0 1px 10px rgba(0, 0, 0, .45); }
/* ingresso a cascata del testo */
.sc-hero__txt > * { animation: sc-up .9s var(--ease) both; }
.sc-hero__txt > :nth-child(2) { animation-delay: .12s; }
.sc-hero__txt > :nth-child(3) { animation-delay: .28s; }
.sc-hero__txt > :nth-child(4) { animation-delay: .42s; }
@keyframes sc-up { from { opacity: 0; transform: translateY(26px); } }

.sc-hero__deco { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; transform: translate3d(0, calc(var(--par, 0) * -.12px), 0); }
.sc-defs { position: absolute; overflow: hidden; }

/* ---------- «Il vero sapore della nostra terra» ---------- */
.sc-terra { position: relative; overflow: clip; padding: 2.5rem 0 3rem; background: radial-gradient(ellipse 60% 40% at 90% 6%, rgba(251, 195, 16, .2), transparent 70%), var(--crema); }
.sc-terra__head { display: grid; gap: 1.5rem; }
.sc-lock { position: relative; z-index: 2; isolation: isolate; width: min(100%, 37rem); padding: 1.9rem 1.5rem 1.9rem 1.6rem; color: #fff; rotate: -3deg; }
.sc-lock__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; filter: drop-shadow(0 16px 18px rgba(110, 0, 5, .3)); }
.sc-lock__t { margin: 0; color: #fff; font: 400 clamp(2.05rem, 1.1rem + 4.6vw, 4.4rem)/1.02 var(--script); text-shadow: 0 2px 0 rgba(90, 0, 4, .35); }
.sc-lock__t span { display: block; }
.sc-lock__t span + span { padding-left: .5em; color: var(--giallo); }
.sc-lock .sc-trail { width: 82%; height: 1.1rem; margin: .5rem 0 .6rem; }
.sc-lock__sub { margin: 0; text-transform: uppercase; }
.sc-lock__sub strong { display: block; font: 800 clamp(1.1rem, .9rem + 1vw, 1.75rem)/1.1 var(--sistema); letter-spacing: .07em; }
.sc-lock__sub span { display: block; margin-top: .35rem; color: #ffe9a8; font: 700 clamp(.78rem, .7rem + .35vw, 1rem)/1.2 var(--sistema); letter-spacing: .16em; }

.sc-note { position: relative; justify-self: end; max-width: 15.5rem; margin: 0 .25rem 0 0; color: var(--verde); font: 400 1.5rem/1.2 var(--script); text-align: right; rotate: -4deg; }
.sc-note::after { content: ""; display: block; width: 72%; height: .55rem; margin: .35rem 0 0 auto; border-radius: 50%; border-top: 3px solid var(--giallo); }
.sc-heart { display: inline-block; width: 1.5em; height: 1.5em; margin-left: .1em; vertical-align: -.35em; fill: none; stroke: var(--rosso); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; rotate: 10deg; }
/* mazzetto di peperoncini che dondola accanto alla frase */
.sc-rev .sc-note .sc-heart path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s var(--ease) .5s; }
.sc-rev .sc-note.is-in .sc-heart path { stroke-dashoffset: 0; }

/* collage: riquadri colorati inclinati e sfalsati, foto «moltiplicate» sul colore (il bianco sparisce), etichetta a pennellata */
.sc-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem .875rem; margin-top: 2rem; padding-bottom: 1.5rem; }
.sc-tile { position: relative; margin: 0; rotate: var(--rot, 0deg); }
.sc-tile:nth-child(even) { top: 1.5rem; } /* colonna destra sfalsata */
.sc-tile:nth-child(1) { --rot: -2deg; --tint: #fdf0cf; } .sc-tile:nth-child(2) { --rot: 1.8deg; --tint: #fde5dc; } .sc-tile:nth-child(3) { --rot: 1.4deg; --tint: #e5efe0; }
.sc-tile:nth-child(4) { --rot: -1.6deg; --tint: #fff1c4; } .sc-tile:nth-child(5) { --rot: -1.2deg; --tint: #fde5dc; } .sc-tile:nth-child(6) { --rot: 2deg; --tint: #fdf0cf; }
.sc-tile__ph { display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border: 4px solid #fff; border-radius: 1.25rem; background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 62%), var(--tint); box-shadow: 0 18px 28px -18px rgba(70, 25, 0, .55), 0 2px 6px rgba(70, 25, 0, .1); }
.sc-tile img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.sc-tile:hover img { transform: scale(1.06) rotate(-1.5deg); }
.sc-tile--foto img { object-fit: cover; mix-blend-mode: normal; } /* foto con il suo sfondo (non scontornata): riempie il riquadro invece di fondersi sul colore */
.sc-label { position: absolute; left: -.45rem; bottom: .75rem; isolation: isolate; display: inline-flex; align-items: center; gap: .3rem; max-width: calc(100% - .25rem); padding: .55rem 1rem .5rem .7rem; color: #fff; font: 800 .75rem/1.1 var(--sistema); letter-spacing: .06em; text-transform: uppercase; filter: drop-shadow(0 4px 6px rgba(80, 0, 4, .3)); }
.sc-label::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rosso); -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; }
.sc-label svg { flex: none; width: .6rem; height: 1.6rem; margin: -.2rem 0; rotate: 35deg; filter: brightness(0) invert(1); } /* peperoncino bianco sul rosso */
.sc-terra__cta { margin: 2.25rem 0 0; text-align: center; }

/* comparsa allo scroll (solo con JS e senza riduzione delle animazioni) */
[data-reveal] { transition: opacity .8s var(--ease), translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.sc-rev [data-reveal]:not(.is-in) { opacity: 0; translate: 0 2rem; }

/* ---------- Fascia dei punti di forza ---------- */
.sc-badges { position: relative; margin: 1.75rem 0; padding: 2.5rem 0 2.25rem; background: var(--verde); color: #fff; }
.sc-badges::before, .sc-badges::after { content: ""; position: absolute; left: 0; right: 0; height: 18px; background: inherit; -webkit-mask: var(--edge) center / 100% 100% no-repeat; mask: var(--edge) center / 100% 100% no-repeat; }
.sc-badges::before { bottom: calc(100% - 1px); }
.sc-badges::after { top: calc(100% - 1px); transform: scale(-1, -1); }
.sc-badges__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; padding: 0; list-style: none; text-align: center; }
.sc-badges li { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.sc-badges__ic { display: grid; place-items: center; width: 4.25rem; height: 4.25rem; margin-bottom: .55rem; border-radius: 50%; background: var(--crema); color: var(--rosso); box-shadow: 0 0 0 3px var(--verde), 0 0 0 5px var(--giallo); }
.sc-badges li:nth-child(2) .sc-badges__ic { background: var(--giallo); color: var(--verde-2); }
.sc-badges li:nth-child(3) .sc-badges__ic { background: var(--rosso); color: #fff; }
.sc-badges li:nth-child(4) .sc-badges__ic { color: var(--verde); }
.sc-badges__ic svg { width: 2.1rem; height: 2.1rem; }
.sc-badges strong { font: 800 .875rem/1.2 var(--sistema); letter-spacing: .06em; text-transform: uppercase; }
.sc-badges li > span:last-child { max-width: 15rem; color: #d9e8d3; font-size: .875rem; line-height: 1.35; }

/* ---------- Spedizioni e «Ordina ora» ---------- */
.sc-ship { padding: 3rem 0 .5rem; }
.sc-ship__in { position: relative; display: grid; gap: 2.25rem; overflow: hidden; padding: 2rem 1.25rem 2.25rem; border-radius: 1.75rem; background: radial-gradient(ellipse 80% 60% at 100% 100%, rgba(212, 0, 10, .08), transparent 70%), var(--crema-2); }
.sc-ship h2 { margin: 0; text-wrap: balance; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
.sc-ship__list { display: grid; gap: .625rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.sc-ship__list li { display: flex; align-items: center; gap: 1rem; padding: .75rem 1rem; border-radius: 1rem; background: #fff; }
.sc-ship__list b { flex: none; min-width: 5.75rem; color: var(--rosso); font: 700 1.5rem/1.1 var(--display); }
.sc-ship__list span { color: var(--verde); font-weight: 600; line-height: 1.3; }
.sc-ship__note { margin: 1rem 0 0; color: var(--testo-2); font-size: .875rem; }
.sc-ship__cta { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sc-ship__ph { position: relative; width: min(100%, 17rem); margin: 0 0 1.25rem; }
.sc-ship__ph img { display: block; rotate: 2deg; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.sc-ship__ph .sc-label { left: 0; bottom: .25rem; rotate: -4deg; }
.sc-sign { margin: 0; color: var(--verde); font: 400 clamp(1.65rem, 1.2rem + 1.8vw, 2.5rem)/1.15 var(--script); rotate: -2deg; }
.sc-ship__cta .sc-trail { width: min(15rem, 80%); margin: .5rem auto 1.75rem; }
.sc-order { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: .75rem; min-height: 72px; padding: .9rem 2.6rem 1rem 2.2rem; color: #fff; font: 400 clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem)/1 var(--script); text-decoration: none; rotate: -2deg; filter: drop-shadow(0 10px 12px rgba(120, 0, 6, .3)); transition: transform .25s var(--ease); animation: sc-nudge 7s ease-in-out 2s infinite; }
.sc-order::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--rosso); -webkit-mask: var(--brush) center / 100% 100% no-repeat; mask: var(--brush) center / 100% 100% no-repeat; transition: background-color .2s; }
.sc-order:hover, .sc-order:focus-visible { color: #fff; transform: scale(1.05); }
.sc-order:hover::before { background: #b00008; }
.sc-order:focus-visible { outline: 3px solid var(--verde); outline-offset: 6px; border-radius: 1rem; }
.sc-order svg { flex: none; width: 2.1rem; height: 2.1rem; }
@keyframes sc-nudge { 0%, 88%, 100% { rotate: -2deg; } 91% { rotate: -5deg; } 94% { rotate: 1.5deg; } 97% { rotate: -3deg; } }
.sc-ship__help { max-width: 26rem; margin: 1.5rem 0 0; color: var(--testo-2); font-size: .9375rem; }
.sc-ship__help a { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Prodotti e FAQ ---------- */
.sc-sec--feat { padding-top: 3.5rem; }
.sc-card__media img:not(.sc-ph) { position: absolute; inset: 0; object-fit: cover; } /* le foto sono già quadrate: entrano intere */
.sc-sec h2 { text-wrap: balance; }
.sc-faq .sc-acc[open] { box-shadow: inset 4px 0 0 var(--rosso); }
.sc-faq .sc-acc summary { min-height: 60px; }

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
	.sc-hero::before { height: 44px; }

	.sc-terra { padding: 4rem 0 2.5rem; }
	.sc-terra__head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
	.sc-lock { width: min(100%, 46rem); padding: 2.6rem 2.8rem 2.6rem 2.6rem; }
	.sc-note { max-width: 19rem; margin: 1.5rem 2rem 0 0; font-size: 2rem; }
	.sc-collage { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 2.25rem; margin-top: -2.5rem; padding-bottom: 3rem; }
	.sc-tile:nth-child(even) { top: 0; }
	.sc-tile:nth-child(3n+2), .sc-tile:nth-child(3n+1) { top: 3rem; } /* colonne sinistra e centrale più in basso: la prima card sta sotto la pennellata del titolo */
	.sc-tile__ph { aspect-ratio: 6 / 5; border-width: 6px; }
	.sc-label { bottom: 1.1rem; left: -.75rem; padding: .7rem 1.4rem .65rem 1rem; font-size: .9375rem; }
	.sc-terra__cta { margin-top: 2rem; }

	.sc-badges { margin: 2.5rem 0; padding: 3.25rem 0 3rem; }
	.sc-badges::before, .sc-badges::after { height: 30px; }
	.sc-badges__list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
	.sc-badges__ic { width: 5rem; height: 5rem; }
	.sc-badges__ic svg { width: 2.5rem; height: 2.5rem; }
	.sc-badges strong { font-size: .9375rem; }

	.sc-ship { padding-top: 5rem; }
	.sc-ship__in { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 3rem; padding: 3.5rem 3.5rem 3.5rem 3.75rem; border-radius: 2.25rem; }
	.sc-ship__ph { width: 19rem; }
}

/* hero da tablet in su: testo in basso a sinistra, foto spinta a destra per lasciargli spazio */
@media (min-width: 701px) {
	.sc-hero img { object-position: 0% 40%; transform-origin: 56% 30%; }
	.sc-hero::after { background: radial-gradient(ellipse 68% 92% at 6% 84%, rgba(1, 30, 6, .88) 0%, rgba(1, 30, 6, .68) 50%, rgba(1, 30, 6, 0) 80%), linear-gradient(0deg, rgba(1, 24, 5, .55) 0%, rgba(1, 24, 5, 0) 40%); }
	.sc-hero__in { padding-bottom: 5.5rem; }
	.sc-hero__txt { max-width: 34rem; }
	.sc-hero h1 { font-size: clamp(2.75rem, 1.6rem + 2.4vw, 3.875rem); }
}
@media (min-width: 701px) and (max-width: 899px) { .sc-hero::after { background: linear-gradient(0deg, rgba(1, 24, 5, .92) 0%, rgba(1, 24, 5, .72) 38%, rgba(1, 24, 5, 0) 64%); } } /* tablet: il testo prende tutta la larghezza */
@media (min-width: 1500px) { .sc-hero__in { margin-left: max(1rem, 8vw); } } /* schermi larghi: il testo non finisce sul mantello */

@media (prefers-reduced-motion: reduce) {
	.sc-hero img, .sc-hero__txt > *, .sc-order { animation: none !important; }
	.sc-hero picture, .sc-hero__deco { transform: none; }
}
