/* Pagina "Regala un corso" – usa le variabili di style.css */

.gift-hero { padding: 56px 0 64px; background: linear-gradient(180deg, #fff7ed 0%, #fff 100%); }
.gift-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.gift-hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; }
.gift-hero h1 span { color: var(--orange-text); }
.gift-hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.gift-hero .hero-points { margin-top: 22px; }

/* il buono disegnato */
.voucher {
  position: relative; aspect-ratio: 1.6 / 1; border-radius: 26px; padding: 30px 32px;
  background: radial-gradient(circle at 85% 15%, rgba(243,146,55,.35), transparent 45%), linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 24px 60px rgba(20,31,69,.28); transform: rotate(-2deg); overflow: hidden;
}
.voucher::before, .voucher::after { content: ""; position: absolute; top: 50%; width: 34px; height: 34px; border-radius: 50%; background: #fff7ed; transform: translateY(-50%); }
.voucher::before { left: -17px; } .voucher::after { right: -17px; }
.voucher .v-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.voucher .v-logo { background: #fff; border-radius: 12px; padding: 6px 10px; line-height: 0; }
.voucher .v-label { font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.voucher .v-title { font-size: clamp(1.4rem, 3.4vw, 2rem); font-weight: 800; line-height: 1.1; margin: 0; color: #fff; }
.voucher .v-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; font-size: .85rem; color: #cbd5e1; }
.voucher .v-price { font-size: 2rem; font-weight: 800; color: #fff; }
.voucher .v-ribbon { position: absolute; right: 26px; bottom: -6px; font-size: 64px; line-height: 1; opacity: .9; }

/* scelta del buono */
.gift-options { padding: 80px 0; }
.gift-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.gift-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 32px; position: relative; }
.gift-card.featured { border: 2px solid var(--orange); box-shadow: 0 18px 44px rgba(243,146,55,.18); }
.gift-card .tag { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); }
.gift-card h3 { font-size: 1.35rem; margin-bottom: 4px; }
.gift-card .price { font-size: 2.4rem; font-weight: 800; color: var(--blue); margin: 10px 0 0; }
.gift-card .price-sub { color: var(--muted); margin: 0 0 18px; font-size: .95rem; }
.gift-card ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.gift-card li { display: flex; gap: 8px; align-items: flex-start; font-size: .97rem; }
.gift-card li svg { flex: none; color: var(--orange-text); margin-top: 3px; }
.gift-card .actions { margin-top: auto; display: grid; gap: 10px; }
.gift-card .actions .btn { justify-content: center; width: 100%; }
.gift-note { text-align: center; color: var(--muted); font-size: .95rem; margin: 28px auto 0; max-width: 46em; }

/* idee regalo */
.gift-ideas { padding: 80px 0; background: var(--bg-soft); }
.ideas-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.idea { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.idea .emoji { font-size: 2rem; line-height: 1; display: block; margin-bottom: 12px; }
.idea h3 { font-size: 1.1rem; margin-bottom: 8px; }
.idea p { margin: 0; color: var(--muted); font-size: .95rem; }

/* come funziona */
.gift-steps { padding: 80px 0; }
.gift-steps ol { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.gift-steps li { counter-increment: s; position: relative; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.gift-steps li::before { content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange); color: #fff; font-weight: 800; margin-bottom: 14px; }
.gift-steps h3 { font-size: 1.08rem; margin-bottom: 6px; }
.gift-steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* domande */
.gift-faq { padding: 0 0 92px; }
.gift-faq .faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.gift-faq details { border: 1px solid var(--line); border-radius: 18px; background: #fff; padding: 0 22px; }
.gift-faq summary { cursor: pointer; font-weight: 700; color: var(--blue); padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.gift-faq summary::-webkit-details-marker { display: none; }
.gift-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--orange-text); }
.gift-faq details[open] summary::after { content: "–"; }
.gift-faq details p { margin: 0 0 18px; color: var(--ink); }

/* invito finale */
.gift-final { padding: 0 0 92px; }
.gift-final .box { background: var(--blue); color: #e2e8f0; border-radius: 28px; padding: 44px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.gift-final h2 { color: #fff; margin: 0 0 6px; font-size: clamp(1.5rem, 3.4vw, 2rem); }
.gift-final p { margin: 0; }
.gift-final .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 980px) {
  .gift-hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .voucher { max-width: 460px; margin-inline: auto; width: 100%; }
  .gift-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .ideas-grid, .gift-steps ol { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ideas-grid, .gift-steps ol { grid-template-columns: 1fr; }
  .voucher { padding: 22px 24px; }
  .gift-final .box { padding: 30px 24px; }
}

/* striscia "Regala un corso" in home */
.gift-strip { padding: 0; }
.gift-strip a {
  display: flex; align-items: center; gap: 16px; padding: 18px 24px; margin: 0 auto; text-decoration: none;
  border-radius: 20px; background: #fff7ed; border: 1px solid #fed7aa; color: var(--blue);
}
.gift-strip a:hover { border-color: var(--orange); }
.gift-strip .g-emoji { font-size: 1.8rem; line-height: 1; }
.gift-strip strong { display: block; font-size: 1.08rem; }
.gift-strip span.g-sub { color: var(--muted); font-size: .95rem; }
.gift-strip .g-go { margin-left: auto; font-weight: 800; color: var(--orange-text); white-space: nowrap; }
@media (max-width: 560px) { .gift-strip .g-go { display: none; } }

/* =========================================================
   NATALE – tocchi stagionali (per toglierli: rimuovere la classe "xmas" dalle sezioni)
   ========================================================= */
@font-face {
  font-family: "Dancing Script"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/dancing-script-700-latin.woff2") format("woff2");
}

.gift-hero.xmas {
  position: relative; overflow: hidden; color: #e2e8f0; padding: 84px 0 80px;
  background:
    radial-gradient(circle at 80% 20%, rgba(243,146,55,.22), transparent 42%),
    radial-gradient(circle at 10% 90%, rgba(31,122,77,.28), transparent 45%),
    linear-gradient(180deg, #141f45 0%, #1d2d5f 100%);
}
.gift-hero.xmas .container { position: relative; z-index: 2; }
.gift-hero.xmas h1 { color: #fff; }
.gift-hero.xmas h1 span { color: #f6b36b; }
.gift-hero.xmas .lead { color: #cbd5e1; }
.gift-hero.xmas .crumbs, .gift-hero.xmas .crumbs a { color: #94a3b8; }
.gift-hero.xmas .hero-points li { color: #e2e8f0; }
.gift-hero.xmas .hero-points svg { color: #f6b36b; }
.xmas-eyebrow { background: #c8102e !important; color: #fff !important; }

/* lucine */
.garland { position: absolute; top: 0; left: 0; width: 100%; height: 48px; z-index: 1; }
.garland .b { animation: twinkle 2.4s ease-in-out infinite; }
.garland .b1 { animation-delay: .8s; }
.garland .b2 { animation-delay: 1.6s; }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* neve che scende */
.snow, .snow::before {
  position: absolute; inset: -200px 0 0 0; z-index: 1; pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,.9), transparent),
    radial-gradient(1.5px 1.5px at 80px 120px, rgba(255,255,255,.7), transparent),
    radial-gradient(2.5px 2.5px at 150px 60px, rgba(255,255,255,.8), transparent),
    radial-gradient(1.5px 1.5px at 210px 170px, rgba(255,255,255,.6), transparent),
    radial-gradient(2px 2px at 260px 20px, rgba(255,255,255,.85), transparent),
    radial-gradient(1px 1px at 320px 140px, rgba(255,255,255,.7), transparent);
  background-size: 340px 200px;
  animation: snow 14s linear infinite;
}
.snow::before { content: ""; inset: 0; background-size: 220px 160px; opacity: .6; animation-duration: 22s; }
@keyframes snow { from { transform: translateY(0); } to { transform: translateY(200px); } }
@media (prefers-reduced-motion: reduce) { .snow, .snow::before, .garland .b { animation: none; } }

/* buono natalizio */
.vx-wrap { position: relative; }
.vx {
  position: relative; display: grid; grid-template-columns: 1fr 108px; min-height: 290px;
  background: #fff; color: var(--ink); border-radius: 22px; padding: 44px 0 26px 30px;
  box-shadow: 0 26px 60px rgba(0,0,0,.35); transform: rotate(-2deg);
}
.vx-ribbon { position: absolute; top: 0; bottom: 0; right: 108px; width: 22px; background: #c8102e; box-shadow: inset -4px 0 0 #9b0c23; }
.vx-ribbon::before, .vx-ribbon::after { content: ""; position: absolute; top: 0; bottom: 0; width: 1.5px; background: #e9b949; left: 4px; }
.vx-ribbon::after { left: auto; right: 7px; }
.vx-bow { position: absolute; top: -30px; right: 72px; width: 96px; height: 88px; filter: drop-shadow(0 4px 6px rgba(0,0,0,.2)); }
.vx-holly { position: absolute; top: -18px; left: -16px; width: 86px; height: 68px; }
.vx-body { padding-right: 34px; }
.vx-label { font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-text); }
.vx-script { font-family: "Dancing Script", "Segoe Script", cursive; font-size: clamp(2.2rem, 5vw, 2.9rem); color: #c8102e; line-height: 1.05; margin: 4px 0 6px; }
.vx-title { font-weight: 800; color: var(--blue); font-size: 1.12rem; line-height: 1.25; margin: 0 0 16px; }
.vx-fields { display: grid; grid-template-columns: 1fr 1fr 70px; gap: 8px; }
.vx-fields span { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 8px; padding: 5px 8px; font-weight: 700; color: var(--blue); font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-fields small { display: block; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vx-side { display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 30px 10px 0; }
.vx-side img { width: 78px; height: auto; }
.vx-tree { width: 78px; height: 88px; }

/* pacchetti e chiusura */
.gift-card.featured .tag { background: #c8102e; color: #fff; }
.gift-options .section-head h2::before, .gift-ideas .section-head h2::before, .gift-steps .section-head h2::before {
  content: "❄"; display: block; font-size: 1.1rem; color: #4aa3df; margin-bottom: 6px;
}
.gift-final.xmas .box {
  position: relative; overflow: hidden;
  background:
    radial-gradient(2px 2px at 30px 30px, rgba(255,255,255,.7), transparent),
    radial-gradient(1.5px 1.5px at 120px 80px, rgba(255,255,255,.5), transparent),
    radial-gradient(2px 2px at 200px 20px, rgba(255,255,255,.6), transparent),
    linear-gradient(135deg, #1d2d5f 0%, #141f45 70%);
  background-size: 240px 110px, 240px 110px, 240px 110px, auto;
  border-top: 6px solid #c8102e;
}

/* striscia in home */
.gift-strip a { background: linear-gradient(90deg, #fff7ed, #fff1f2); border-color: #fecaca; }
.gift-strip strong { color: #9b0c23; }

@media (max-width: 980px) {
  .vx-wrap { max-width: 470px; margin: 20px auto 0; width: 100%; }
}
@media (max-width: 560px) {
  .gift-hero.xmas { padding: 64px 0 56px; }
  .vx { grid-template-columns: 1fr 82px; padding: 40px 0 22px 20px; min-height: 0; }
  .vx-ribbon { right: 82px; width: 18px; }
  .vx-bow { right: 50px; width: 80px; height: 74px; }
  .vx-body { padding-right: 26px; }
  .vx-fields { grid-template-columns: 1fr 1fr; }
  .vx-fields span:last-child { grid-column: 1 / -1; }
  .vx-side { padding: 26px 6px 0; }
  .vx-side img { width: 64px; } .vx-tree { width: 62px; height: 70px; }
}

/* ---------- NATALE: fascia grande in home ---------- */
.xmas-band {
  position: relative; overflow: hidden; color: #e2e8f0; padding: 76px 0 64px;
  background:
    radial-gradient(circle at 85% 30%, rgba(243,146,55,.22), transparent 40%),
    radial-gradient(circle at 5% 100%, rgba(31,122,77,.32), transparent 45%),
    linear-gradient(180deg, #141f45 0%, #1d2d5f 100%);
  border-bottom: 6px solid #c8102e;
}
.xmas-band .container { position: relative; z-index: 2; }
.xmas-band-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.xmas-band h2 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; margin: 14px 0 12px; }
.xmas-band h2 span { color: #f6b36b; }
.xmas-band-grid > div > p { color: #cbd5e1; font-size: 1.1rem; max-width: 34em; margin: 0; }
.xmas-price { display: inline-flex; align-items: baseline; gap: 8px; margin: 18px 0 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 14px; padding: 8px 16px; }
.xmas-price small { color: #cbd5e1; font-size: .95rem; }
.xmas-price strong { color: #fff; font-size: 1.8rem; font-weight: 800; }
.xmas-band .cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.xmas-band .cta-row .btn-primary { font-size: 1.05rem; padding-inline: 26px; }
.xmas-band-voucher { display: block; text-decoration: none; color: inherit; transition: transform .25s; }
.xmas-band-voucher:hover { transform: translateY(-4px) scale(1.01); }
.xmas-band-voucher .vx-wrap { max-width: 480px; margin-left: auto; }
@media (max-width: 980px) {
  .xmas-band-grid { grid-template-columns: 1fr; gap: 36px; }
  .xmas-band-voucher .vx-wrap { margin: 0 auto; }
}
@media (max-width: 560px) {
  .xmas-band { padding: 60px 0 44px; }
  .xmas-band-grid > div > p { font-size: 1rem; }
}
