/* ==========================================================================
   IBIZALOCA · style.css
   Direzione: maximalismo neon notturno — la notte della isla che incontra
   il mare. Palette presa direttamente dal logo di El Loco.
   ========================================================================== */

/* ---------- 1. TOKEN ---------- */
:root {
  --ibz-bg: #0a0a23;
  --ibz-bg-2: #11112e;
  --ibz-panel: #15163a;
  --ibz-panel-2: #1b1c45;
  --ibz-line: #2a2b5c;
  --ibz-ink: #f4f2ff;
  --ibz-muted: #9b9ec5;
  --ibz-green: #2ee85c;
  --ibz-yellow: #ffd600;
  --ibz-pink: #ff2d9b;
  --ibz-pink-2: #ff4fa0;
  --ibz-orange: #ff7a3d;
  --ibz-cyan: #19d3ff;
  --grad-cta: linear-gradient(92deg, var(--ibz-pink) 0%, var(--ibz-orange) 100%);
  --grad-neon: linear-gradient(92deg, var(--ibz-green) 0%, var(--ibz-yellow) 50%, var(--ibz-pink) 100%);
  --font-display: 'Luckiest Guy', system-ui, cursive;
  --font-body: 'Quicksand', system-ui, sans-serif;
  --radius: 1.25rem;
  --shadow-card: 0 10px 40px rgba(3, 3, 18, .55);
}

/* ---------- 2. BASE ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  background: var(--ibz-bg);
  color: var(--ibz-ink);
  overflow-x: hidden;
  font-size: 1rem;
  font-weight: 500;
}

::selection { background: var(--ibz-pink); color: #fff; }

::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ibz-bg-2); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--ibz-pink), var(--ibz-green));
  border-radius: 8px; border: 2px solid var(--ibz-bg-2);
}

a { color: var(--ibz-cyan); text-decoration: none; }
a:hover { color: var(--ibz-pink-2); }

:focus-visible { outline: 3px solid var(--ibz-yellow); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: absolute; z-index: 3000; top: 8px; left: 8px;
  background: var(--ibz-pink); color: #fff; padding: .5rem 1rem; border-radius: 8px;
}

/* ---------- 3. TIPOGRAFIA ---------- */
.section-title,
.hero-title,
.brand-text,
.product-name,
.product-price,
.stat-num,
.ship-price,
.ticker-track span {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: .02em;
}

.txt-neon-pink { color: var(--ibz-pink); text-shadow: 0 0 18px rgba(255, 45, 155, .65); }
.txt-neon-green { color: var(--ibz-green); text-shadow: 0 0 18px rgba(46, 232, 92, .55); }
.txt-neon-yellow { color: var(--ibz-yellow); text-shadow: 0 0 18px rgba(255, 214, 0, .5); }

/* ---------- 4. BOTTONI ---------- */
.btn-ibz {
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-active-color: #fff;
  background: var(--grad-cta);
  border: 0;
  border-radius: 999px;
  font-family: var(--font-display);
  letter-spacing: .06em;
  padding: .8rem 1.7rem;
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
  box-shadow: 0 6px 22px rgba(255, 45, 155, .38);
}
.btn-ibz::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .42) 50%, transparent 70%);
  transform: translateX(-110%);
}
.btn-ibz:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 34px rgba(255, 45, 155, .55);
  filter: saturate(1.15);
}
.btn-ibz:hover::after { transform: translateX(110%); transition: transform .6s ease; }
.btn-ibz:active { transform: translateY(-1px) scale(.99); }

.btn-ghost {
  --bs-btn-color: var(--ibz-ink);
  --bs-btn-hover-color: var(--ibz-bg);
  --bs-btn-hover-bg: var(--ibz-ink);
  border: 2px solid var(--ibz-ink);
  border-radius: 999px;
  font-weight: 700;
  padding: .72rem 1.5rem;
  transition: all .18s ease;
}

.btn-sumup {
  background: #fff; color: #16223f; font-weight: 700;
  border-radius: 999px; border: 0; padding: .8rem 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-sumup:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(255, 255, 255, .25); }

/* ---------- 5. BARRA ANNUNCIO + NAVBAR ---------- */
.announce-bar {
  background: var(--grad-cta);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  padding: .45rem .75rem;
}

.ibz-navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: rgba(10, 10, 35, .55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  padding-block: .55rem;
}
.ibz-navbar.scrolled {
  background: rgba(10, 10, 35, .92);
  border-bottom-color: var(--ibz-line);
  box-shadow: 0 8px 30px rgba(3, 3, 18, .6);
}

.brand-frog { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.navbar-brand:hover .brand-frog { transform: rotate(-12deg) scale(1.12); }
.brand-text { font-size: 1.5rem; color: var(--ibz-yellow); line-height: 1; padding-top: .25rem; }
.brand-text-alt { color: var(--ibz-pink); }

.ibz-navbar .nav-link {
  color: var(--ibz-ink);
  font-weight: 700;
  font-size: .95rem;
  padding-inline: .85rem;
  position: relative;
}
.ibz-navbar .nav-link::after {
  content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .2rem;
  height: 3px; border-radius: 3px; background: var(--grad-neon);
  transform: scaleX(0); transform-origin: left; transition: transform .22s ease;
}
.ibz-navbar .nav-link:hover { color: #fff; }
.ibz-navbar .nav-link:hover::after { transform: scaleX(1); }

.navbar-toggler { border-color: var(--ibz-line); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23f4f2ff' stroke-linecap='round' stroke-width='2.6' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-cart {
  font-size: 1.25rem; background: var(--ibz-panel); border: 1px solid var(--ibz-line);
  border-radius: 50%; width: 46px; height: 46px; line-height: 1; color: #fff;
  transition: transform .18s ease, border-color .18s ease;
}
.btn-cart:hover { transform: translateY(-2px); border-color: var(--ibz-pink); }
.btn-cart.bounce { animation: cartBounce .55s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes cartBounce { 30% { transform: scale(1.25) rotate(-8deg); } 60% { transform: scale(.95); } }

.cart-badge {
  position: absolute; top: -6px; right: -6px;
  background: var(--ibz-green); color: #052b10;
  font-size: .72rem; font-weight: 800; min-width: 22px; height: 22px;
  border-radius: 99px; display: grid; place-items: center; padding-inline: 5px;
  box-shadow: 0 0 12px rgba(46, 232, 92, .8);
}

/* ---------- 6. HERO ---------- */
.hero {
  position: relative;
  min-height: clamp(560px, calc(100svh - 110px), 880px);
  display: flex;
  align-items: center;
  padding: 4.5rem 0 7rem;
  isolation: isolate;
  overflow: hidden;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  background-color: var(--ibz-bg);
  background-image:
    linear-gradient(180deg, rgba(10, 10, 35, .82) 0%, rgba(10, 10, 35, .55) 45%, var(--ibz-bg) 100%),
    url('../assets/img/bg/hero-neon.jpg');
  background-image:
    linear-gradient(180deg, rgba(10, 10, 35, .82) 0%, rgba(10, 10, 35, .55) 45%, var(--ibz-bg) 100%),
    image-set(url('../assets/img/bg/hero-neon.webp') type('image/webp'),
              url('../assets/img/bg/hero-neon.jpg') type('image/jpeg'));
  background-position: center 30%;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero::after { /* grana sottile */
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
}

.hero-glow {
  position: absolute; z-index: -2; border-radius: 50%; filter: blur(90px); opacity: .5;
  animation: glowPulse 7s ease-in-out infinite;
}
.hero-glow-pink { width: 520px; height: 520px; background: var(--ibz-pink); top: -160px; right: -120px; }
.hero-glow-green { width: 420px; height: 420px; background: #1bbf4c; bottom: -140px; left: -130px; animation-delay: 3.5s; }
@keyframes glowPulse { 50% { opacity: .28; transform: scale(1.15); } }

.hero-eyebrow {
  display: inline-block;
  background: rgba(255, 214, 0, .12);
  border: 1px solid rgba(255, 214, 0, .45);
  color: var(--ibz-yellow);
  font-weight: 700; font-size: .8rem; letter-spacing: .18em;
  border-radius: 999px; padding: .45rem 1.1rem; margin-bottom: 1.4rem;
  animation: fadeUp .7s .1s both;
}

.hero-title { font-size: clamp(3rem, 7.5vw, 6rem); line-height: .95; margin: 0 0 1.2rem; }
.hero-line { display: block; animation: fadeUp .7s both; }
.hero-line:nth-child(1) { animation-delay: .22s; }
.hero-line:nth-child(2) { animation-delay: .38s; }
.hero-line:nth-child(3) { animation-delay: .54s; }
.hero-line-neon {
  background: var(--grad-neon);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(46, 232, 92, .45));
}

.hero-sub {
  font-size: 1.15rem; color: var(--ibz-muted); max-width: 34rem;
  animation: fadeUp .7s .68s both;
}
.hero-sub strong { color: var(--ibz-ink); }
.hero-cta { animation: fadeUp .7s .82s both; }
.hero-trust { margin: 1.6rem 0 0; font-size: .9rem; color: var(--ibz-muted); animation: fadeUp .7s .96s both; }

.hero-logo-wrap { position: relative; display: inline-block; animation: fadeUp .9s .4s both; }
.hero-logo {
  width: min(340px, 70vw); height: auto;
  filter: drop-shadow(0 18px 50px rgba(255, 45, 155, .45));
  animation: floaty 5.5s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-22px) rotate(2deg); }
}

.sparkle {
  position: absolute; color: var(--ibz-yellow); font-size: 1.6rem;
  animation: twinkle 2.6s ease-in-out infinite;
  text-shadow: 0 0 14px rgba(255, 214, 0, .9);
}
.sparkle.s1 { top: 4%; left: -10%; }
.sparkle.s2 { top: 18%; right: -12%; animation-delay: .7s; color: var(--ibz-cyan); }
.sparkle.s3 { bottom: 26%; left: -14%; animation-delay: 1.3s; color: var(--ibz-pink-2); }
.sparkle.s4 { bottom: 6%; right: -8%; animation-delay: 1.9s; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.6) rotate(0deg); } 50% { opacity: 1; transform: scale(1.25) rotate(45deg); } }

@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }

.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; line-height: 0; }
.hero-wave svg { width: 100%; height: 110px; display: block; }

/* ---------- 7. TICKER ---------- */
.ticker {
  background: var(--grad-cta);
  transform: rotate(-1.2deg) scale(1.02);
  overflow: hidden;
  padding: .65rem 0;
  margin: -2.2rem 0 0;
  box-shadow: 0 10px 36px rgba(255, 45, 155, .35);
  position: relative; z-index: 5;
}
.ticker-track {
  display: flex; align-items: center; gap: 2.2rem;
  white-space: nowrap; width: max-content;
  animation: tickerScroll 26s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { color: #fff; font-size: 1.05rem; letter-spacing: .08em; padding-top: .2rem; }
.ticker-track i { color: rgba(255, 255, 255, .85); font-style: normal; }
@keyframes tickerScroll { to { transform: translateX(-50%); } }

/* ---------- 8. SEZIONI ---------- */
.section { padding: 5.5rem 0; position: relative; }
.section-head { text-align: center; max-width: 46rem; margin: 0 auto 3.2rem; }
.section-eyebrow {
  display: inline-block; font-weight: 800; font-size: .78rem; letter-spacing: .3em;
  color: var(--ibz-cyan); margin-bottom: .8rem;
}
.section-title { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.04; margin-bottom: 1rem; }
.section-sub { color: var(--ibz-muted); font-size: 1.05rem; max-width: 40rem; margin-inline: auto; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1) var(--rv-delay, 0ms),
              transform .7s cubic-bezier(.22, .61, .36, 1) var(--rv-delay, 0ms);
}

/* ---------- 9. CARD PRODOTTO ---------- */
.product-card {
  --accent: var(--ibz-pink);
  background: var(--ibz-panel);
  border: 1px solid var(--ibz-line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 18px 48px rgba(3, 3, 18, .6), 0 0 36px color-mix(in srgb, var(--accent) 38%, transparent);
}

.product-media {
  position: relative;
  background:
    radial-gradient(circle at 50% 42%, color-mix(in srgb, var(--accent) 26%, transparent) 0%, transparent 68%),
    var(--ibz-panel-2);
  padding: 1.4rem 1.2rem .9rem;
}
.product-img {
  width: 100%; height: auto; display: block;
  transition: transform .35s cubic-bezier(.34, 1.3, .64, 1);
}
.product-card:hover .product-img { transform: scale(1.06) rotate(-2.5deg); }
.product-img.is-photo { border-radius: .8rem; }

.product-badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--accent); color: #0a0a23;
  font-weight: 800; font-size: .68rem; letter-spacing: .14em;
  padding: .35rem .7rem; border-radius: 999px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 55%, transparent);
}

.product-body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.product-name { font-size: 1.35rem; margin: 0; color: #fff; }
.product-color { color: var(--accent); font-size: .82rem; font-weight: 700; letter-spacing: .06em; margin: .15rem 0 .6rem; }
.product-desc { color: var(--ibz-muted); font-size: .9rem; flex-grow: 1; margin-bottom: 0; }
.product-price { font-size: 2.1rem; color: #fff; line-height: 1; }
.product-price small { font-size: 1.2rem; color: var(--accent); }
.low-stock { font-size: .75rem; font-weight: 700; color: var(--ibz-yellow); }

.size-row { display: flex; gap: .45rem; margin-top: 1rem; flex-wrap: wrap; border-radius: 10px; }
.size-row-error { outline: 2px dashed var(--ibz-yellow); outline-offset: 4px; }
.size-chip {
  background: transparent; border: 1.5px solid var(--ibz-line); color: var(--ibz-ink);
  border-radius: 10px; min-width: 44px; padding: .42rem .5rem;
  font-weight: 700; font-size: .85rem;
  transition: all .15s ease;
}
.size-chip:hover { border-color: var(--accent); transform: translateY(-2px); }
.size-chip.active {
  background: var(--accent); border-color: var(--accent); color: #0a0a23;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--accent) 50%, transparent);
}
.size-chip-off {
  opacity: .32; text-decoration: line-through; cursor: not-allowed;
  border-style: dashed;
}
.size-chip-off:hover { border-color: var(--ibz-line); transform: none; }

/* ---------- 10. STORIA ---------- */
.section-story { background: var(--ibz-bg-2); overflow: hidden; }
.story-frog {
  position: absolute; right: -60px; top: -50px; opacity: .07; pointer-events: none;
  transform: rotate(14deg);
}
.story-frog img { width: 420px; height: auto; }
.story-text { color: var(--ibz-muted); font-size: 1.05rem; }
.story-text strong, .story-text em { color: var(--ibz-ink); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.stat-card {
  background: var(--ibz-panel); border: 1px solid var(--ibz-line); border-radius: var(--radius);
  padding: 1.6rem 1.2rem; text-align: center;
  transition: transform .2s ease, border-color .2s ease;
}
.stat-card:hover { transform: translateY(-4px) rotate(-1deg); border-color: var(--ibz-green); }
.stat-card:nth-child(2):hover { border-color: var(--ibz-pink); }
.stat-card:nth-child(3):hover { border-color: var(--ibz-yellow); }
.stat-card:nth-child(4):hover { border-color: var(--ibz-cyan); }
.stat-num { display: block; font-size: 2.6rem; color: var(--ibz-green); line-height: 1; }
.stat-card:nth-child(2) .stat-num { color: var(--ibz-pink); }
.stat-card:nth-child(3) .stat-num { color: var(--ibz-yellow); }
.stat-card:nth-child(4) .stat-num { color: var(--ibz-cyan); }
.stat-num small { font-size: 1.1rem; }
.stat-label { color: var(--ibz-muted); font-size: .82rem; font-weight: 700; line-height: 1.25; display: block; margin-top: .5rem; }

/* ---------- 11. SPEC / SHIP CARD ---------- */
.spec-card, .ship-card {
  background: var(--ibz-panel); border: 1px solid var(--ibz-line); border-radius: var(--radius);
  padding: 1.7rem 1.5rem; height: 100%;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.spec-card:hover, .ship-card:hover {
  transform: translateY(-6px); border-color: var(--ibz-pink);
  box-shadow: 0 14px 38px rgba(3, 3, 18, .55);
}
.spec-icon, .ship-icon { font-size: 2rem; display: block; margin-bottom: .8rem; }
.spec-card h3, .ship-card h3 { font-size: 1.05rem; font-weight: 700; color: #fff; }
.spec-card p, .ship-card p { color: var(--ibz-muted); font-size: .9rem; margin: 0; }

.section-shipping { background: var(--ibz-bg-2); }
.ship-price { font-size: 2rem; color: var(--ibz-yellow); margin: .2rem 0 .4rem; }
.ship-card-free { border-color: rgba(46, 232, 92, .5); }
.ship-card-free .ship-price { color: var(--ibz-green); }
.ship-card-free:hover { border-color: var(--ibz-green); }

/* ---------- 12. TAGLIE ---------- */
.size-tips li { color: var(--ibz-muted); padding: .3rem 0; }
.size-table-wrap {
  border: 1px solid var(--ibz-line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.size-table { --bs-table-bg: var(--ibz-panel); --bs-table-color: var(--ibz-ink); margin: 0; }
.size-table thead th {
  background: var(--grad-cta); color: #fff; border: 0;
  font-weight: 800; letter-spacing: .08em; font-size: .82rem; text-transform: uppercase;
  padding: .9rem 1rem;
}
.size-table tbody th, .size-table tbody td {
  border-color: var(--ibz-line); padding: .85rem 1rem; vertical-align: middle;
}
.size-table tbody th { color: var(--ibz-yellow); font-size: 1.05rem; }
.size-table tbody tr { transition: background .15s ease; }
.size-table tbody tr:hover { background: var(--ibz-panel-2); }

/* ---------- 13. FAQ ---------- */
.ibz-accordion { max-width: 50rem; margin-inline: auto; }
.ibz-accordion .accordion-item {
  background: var(--ibz-panel); border: 1px solid var(--ibz-line);
  border-radius: 14px !important; margin-bottom: .8rem; overflow: hidden;
}
.ibz-accordion .accordion-button {
  background: transparent; color: #fff; font-weight: 700; font-size: 1rem;
  padding: 1.1rem 1.3rem; box-shadow: none;
}
.ibz-accordion .accordion-button:not(.collapsed) {
  color: var(--ibz-green);
  background: rgba(46, 232, 92, .06);
}
.ibz-accordion .accordion-button::after {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff2d9b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}
.ibz-accordion .accordion-body { color: var(--ibz-muted); padding-top: .2rem; }
.ibz-accordion .accordion-body strong { color: var(--ibz-ink); }

/* ---------- 14. CONTATTI ---------- */
.section-contact {
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 45, 155, .14) 0%, transparent 45%),
    radial-gradient(circle at 84% 78%, rgba(46, 232, 92, .12) 0%, transparent 45%),
    var(--ibz-bg);
}

/* ---------- 15. FOOTER ---------- */
.footer {
  background: #07071a;
  border-top: 1px solid var(--ibz-line);
  padding: 3.5rem 0 1.5rem;
}
.footer-logo { max-width: 250px; height: auto; }
.footer-claim { color: var(--ibz-muted); }
.footer-head {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ibz-yellow); font-weight: 800; margin-bottom: 1rem;
}
.footer-links li { padding: .22rem 0; }
.footer-links a { color: var(--ibz-muted); font-weight: 600; }
.footer-links a:hover { color: var(--ibz-pink-2); }
.pay-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.pay-badge {
  background: var(--ibz-panel); border: 1px solid var(--ibz-line);
  color: var(--ibz-ink); font-size: .78rem; font-weight: 700;
  border-radius: 8px; padding: .4rem .7rem;
}
.footer-bottom {
  border-top: 1px solid var(--ibz-line);
  margin-top: 2.5rem; padding-top: 1.3rem;
  color: var(--ibz-muted);
}
.footer-mini-link { color: var(--ibz-muted); text-decoration: underline; }

/* ---------- 16. OFFCANVAS CARRELLO ---------- */
.ibz-offcanvas {
  background: var(--ibz-bg-2); color: var(--ibz-ink);
  border-left: 1px solid var(--ibz-line);
}
.ibz-offcanvas .btn-close {
  filter: none; opacity: 1;
  width: 38px; height: 38px; padding: 0;
  background-color: var(--ibz-panel);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  background-size: .9rem; background-position: center; background-repeat: no-repeat;
  border: 1.5px solid var(--ibz-line); border-radius: 50%;
  transition: transform .2s ease, border-color .2s ease;
}
.ibz-offcanvas .btn-close:hover { border-color: var(--ibz-pink); transform: rotate(90deg); }
.cart-item {
  background: var(--ibz-panel); border: 1px solid var(--ibz-line);
  border-radius: 14px; padding: .8rem; margin-bottom: .7rem;
}
.cart-thumb { background: var(--ibz-panel-2); border-radius: 10px; object-fit: contain; }
.cart-item-name { font-weight: 700; font-size: .92rem; }
.qty-btn {
  width: 26px; height: 26px; border-radius: 8px; border: 1px solid var(--ibz-line);
  background: transparent; color: #fff; font-weight: 800; line-height: 1;
}
.qty-btn:hover { border-color: var(--ibz-pink); color: var(--ibz-pink); }
.qty-val { min-width: 22px; text-align: center; font-weight: 700; }
.btn-remove {
  background: transparent; border: 0; color: var(--ibz-muted); font-size: .85rem;
}
.btn-remove:hover { color: var(--ibz-pink); }
.cart-line-total { font-size: .95rem; white-space: nowrap; }
.cart-grand-total { font-size: 1.25rem; font-weight: 800; color: var(--ibz-green); }
.free-ship-msg { font-size: .82rem; font-weight: 700; color: var(--ibz-green); }
.free-ship-msg.muted { color: var(--ibz-muted); }
.cart-empty-frog { animation: floaty 4s ease-in-out infinite; }
#cartTotals .form-select {
  background-color: var(--ibz-panel); color: var(--ibz-ink); border-color: var(--ibz-line);
}

/* ---------- 17. MODAL CHECKOUT / SCHEDA ---------- */
.ibz-modal .modal-content {
  background: var(--ibz-bg-2); color: var(--ibz-ink);
  border: 1px solid var(--ibz-line); border-radius: var(--radius);
}
/* l'header sta SOPRA il contenuto: la riga Bootstrap (margine negativo)
   non deve mai coprire la X */
.ibz-modal .modal-header { position: relative; z-index: 10; }
.ibz-modal .btn-close {
  filter: none; opacity: 1;
  width: 42px; height: 42px; padding: 0;
  background-color: var(--ibz-panel);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ffffff'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");
  background-size: 1rem; background-position: center; background-repeat: no-repeat;
  border: 1.5px solid var(--ibz-line); border-radius: 50%;
  transition: transform .2s ease, border-color .2s ease, background-color .2s ease;
}
.ibz-modal .btn-close:hover {
  border-color: var(--ibz-pink); background-color: var(--ibz-panel-2);
  transform: rotate(90deg) scale(1.06);
}
.checkout-summary {
  background: var(--ibz-panel); border: 1px solid var(--ibz-line);
  border-radius: 12px; padding: .9rem 1rem;
}
.checkout-total { color: var(--ibz-green); font-size: 1.1rem; }
.checkout-method-title {
  font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ibz-muted); font-weight: 800; margin: .6rem 0;
}
.checkout-divider {
  display: flex; align-items: center; gap: .8rem; margin: 1.1rem 0;
  color: var(--ibz-muted); font-size: .8rem; font-weight: 700;
}
.checkout-divider::before, .checkout-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--ibz-line);
}
.success-frog { animation: cartBounce .8s cubic-bezier(.34, 1.56, .64, 1); }
#checkoutSuccess code { color: var(--ibz-green); }

/* ---------- 18. TOAST / CONFETTI / COOKIE / TOP ---------- */
#toastZone {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 2000;
  display: flex; flex-direction: column; gap: .6rem; max-width: min(360px, 86vw);
}
.ibz-toast {
  background: var(--ibz-panel); color: var(--ibz-ink);
  border: 1px solid var(--ibz-green); border-radius: 14px;
  padding: .85rem 1.1rem; font-size: .9rem;
  box-shadow: 0 12px 36px rgba(3, 3, 18, .65), 0 0 22px rgba(46, 232, 92, .25);
  animation: toastIn .35s cubic-bezier(.34, 1.4, .64, 1) both;
  transition: opacity .35s ease, transform .35s ease;
}
.ibz-toast-warn { border-color: var(--ibz-yellow); box-shadow: 0 12px 36px rgba(3, 3, 18, .65), 0 0 22px rgba(255, 214, 0, .25); }
.ibz-toast.out { opacity: 0; transform: translateX(30px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }

.confetti {
  position: fixed; z-index: 2100; width: 9px; height: 14px; border-radius: 2px;
  pointer-events: none;
  animation: confettiFly .9s cubic-bezier(.22, .61, .36, 1) forwards;
}
@keyframes confettiFly {
  to { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; }
}

.cookie-banner {
  position: fixed; left: 1.2rem; bottom: 1.2rem; z-index: 1900;
  background: var(--ibz-panel); border: 1px solid var(--ibz-line);
  border-radius: 16px; padding: 1.1rem 1.3rem; max-width: min(380px, 86vw);
  font-size: .88rem; box-shadow: var(--shadow-card);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s ease, transform .4s ease;
}
.cookie-banner.show { opacity: 1; transform: none; pointer-events: auto; }

#backToTop {
  position: fixed; right: 1.2rem; bottom: 5rem; z-index: 1800;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-cta); color: #fff; border: 0; font-size: 1.3rem; font-weight: 800;
  opacity: 0; pointer-events: none; transform: translateY(14px);
  transition: opacity .3s ease, transform .3s ease;
  box-shadow: 0 8px 26px rgba(255, 45, 155, .45);
}
#backToTop.show { opacity: 1; pointer-events: auto; transform: none; }
#backToTop:hover { transform: translateY(-3px); }

/* ---------- 17b. SWITCHER LINGUA + FORM SPEDIZIONE ---------- */
.lang-switch { display: flex; gap: 2px; background: var(--ibz-panel); border: 1px solid var(--ibz-line); border-radius: 999px; padding: 3px; }
.lang-btn {
  border: 0; background: transparent; color: var(--ibz-muted);
  font-weight: 800; font-size: .72rem; letter-spacing: .05em;
  border-radius: 999px; padding: .3rem .55rem; line-height: 1;
  transition: all .15s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--grad-cta); color: #fff; box-shadow: 0 2px 10px rgba(255, 45, 155, .4); }

.ship-form .form-label { font-size: .78rem; font-weight: 700; color: var(--ibz-cyan); margin-bottom: .2rem; }
.ship-form .form-control, .ship-form .form-select {
  background: var(--ibz-panel); border-color: var(--ibz-line); color: var(--ibz-ink);
  border-radius: 10px; font-size: .92rem;
}
.ship-form .form-control:focus, .ship-form .form-select:focus {
  background: var(--ibz-panel-2); color: var(--ibz-ink);
  border-color: var(--ibz-pink); box-shadow: 0 0 0 3px rgba(255, 45, 155, .18);
}
.ship-form .form-control.is-invalid, .ship-form .form-select.is-invalid { border-color: var(--ibz-yellow); }
.ship-form .form-check-input { background-color: var(--ibz-panel); border-color: var(--ibz-line); }
.ship-form .form-check-input:checked { background-color: var(--ibz-green); border-color: var(--ibz-green); }
.ship-form { border: 1px solid var(--ibz-line); border-radius: 14px; padding: 1rem; margin-bottom: 1rem; background: rgba(21, 22, 58, .5); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 17c. SCHEDA TECNICA PRODOTTO ---------- */
.product-media, .product-name { cursor: pointer; }
.product-name:hover { color: var(--accent, var(--ibz-pink)); }

.sheet-stage {
  --accent: var(--ibz-pink);
  background:
    radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 70%),
    #f3f0f5;
  border-radius: var(--radius);
  overflow: hidden;
  display: grid; place-items: center;
}
.sheet-stage img { width: 100%; height: auto; display: block; }
.sheet-thumbs { display: flex; gap: .5rem; margin-top: .7rem; flex-wrap: wrap; }
.sheet-thumb {
  width: 74px; height: 64px; border-radius: 10px; overflow: hidden;
  border: 2px solid var(--ibz-line); background: #f3f0f5; padding: 0;
  transition: border-color .15s ease, transform .15s ease;
}
.sheet-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-thumb:hover { transform: translateY(-2px); }
.sheet-thumb.active { border-color: var(--ibz-pink); }

.sheet-badge { position: static; display: inline-block; margin-bottom: .6rem; }
.sheet-name { font-family: var(--font-display); font-size: 2rem; margin: 0; color: #fff; }
.sheet-color { font-weight: 700; font-size: .9rem; letter-spacing: .05em; margin: .1rem 0 .6rem; }
.sheet-tagline { color: var(--ibz-yellow); font-weight: 600; font-style: italic; }
.sheet-desc { color: var(--ibz-muted); font-size: .95rem; }
.sheet-price { font-size: 2.4rem; }
.sheet-specs-title {
  font-size: .8rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ibz-cyan); font-weight: 800; margin-bottom: .6rem;
}
.sheet-specs { width: 100%; font-size: .88rem; border-collapse: collapse; }
.sheet-specs th {
  color: var(--ibz-ink); font-weight: 700; padding: .45rem .8rem .45rem 0;
  border-bottom: 1px solid var(--ibz-line); white-space: nowrap; vertical-align: top; width: 34%;
}
.sheet-specs td { color: var(--ibz-muted); padding: .45rem 0; border-bottom: 1px solid var(--ibz-line); }
.sheet-specs tr:last-child th, .sheet-specs tr:last-child td { border-bottom: 0; }

/* ===== Recensioni prodotto ===== */
.sheet-reviews { border-top: 1px solid var(--ibz-line); padding-top: 1.4rem; }
.rev-avg { font-size: .9rem; color: var(--ibz-yellow); letter-spacing: 0; text-transform: none; margin-left: .4rem; }
.rev-item { padding: .7rem 0; border-bottom: 1px solid var(--ibz-line); }
.rev-stars { color: var(--ibz-yellow); letter-spacing: 2px; font-size: .95rem; }
.rev-date { color: var(--ibz-muted); font-size: .8rem; margin-left: .4rem; }
.rev-text { margin: .3rem 0 0; color: var(--ibz-muted); }
.rev-none { margin: .4rem 0 0; }
.rev-form { margin-top: 1.2rem; background: rgba(255,255,255,.03); border: 1px solid var(--ibz-line); border-radius: 14px; padding: 1rem 1.1rem; }
.rev-form-title { font-weight: 800; margin-bottom: .5rem; }
.rev-rate { display: flex; align-items: center; gap: .5rem; margin-bottom: .6rem; font-size: .9rem; }
.rev-stars-input { display: inline-flex; }
.rev-star { background: none; border: 0; cursor: pointer; font-size: 1.5rem; line-height: 1; color: var(--ibz-yellow); padding: 0 .05rem; }
.rev-input { background: rgba(0,0,0,.25); border: 1px solid var(--ibz-line); color: var(--ibz-ink); }
.rev-msg { display: inline-block; margin-left: .6rem; font-size: .85rem; color: var(--ibz-muted); }
.rev-thanks { color: var(--ibz-green); font-weight: 700; margin: 0; }

/* ---------- 17d. SCONTI ---------- */
.discount-box {
  display: flex; align-items: center; gap: .5rem;
  border: 1.5px dashed var(--ibz-line); border-radius: 12px;
  padding: .45rem .6rem; margin-top: .6rem;
  transition: border-color .2s ease;
}
.discount-box:focus-within { border-color: var(--ibz-yellow); }
.discount-icon { font-size: 1rem; }
.discount-box input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: none;
  color: var(--ibz-ink); font-size: .88rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.discount-box input::placeholder { color: var(--ibz-muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.discount-box input.is-invalid { color: var(--ibz-yellow); }
.discount-box > button:not(.btn-discount-remove) {
  background: transparent; border: 1.5px solid var(--ibz-pink); color: var(--ibz-pink);
  border-radius: 999px; font-weight: 800; font-size: .72rem; letter-spacing: .08em;
  padding: .3rem .8rem; transition: all .15s ease; white-space: nowrap;
}
.discount-box > button:not(.btn-discount-remove):hover { background: var(--ibz-pink); color: #fff; }
.discount-box-applied {
  border-style: solid; border-color: rgba(46, 232, 92, .55);
  background: rgba(46, 232, 92, .07);
}
.discount-tag { font-weight: 800; font-size: .82rem; color: var(--ibz-green); letter-spacing: .05em; }
.discount-saving { margin-left: auto; font-weight: 800; color: var(--ibz-green); font-size: .9rem; }
.discount-amount { color: var(--ibz-green); font-weight: 700; }
.btn-discount-remove {
  background: transparent; border: 0; color: var(--ibz-muted); font-size: .8rem; padding: 0 .2rem; line-height: 1;
}
.btn-discount-remove:hover { color: var(--ibz-pink); }

/* ---------- 17e. CONSENSO COOKIE ---------- */
.consent-config-link { color: var(--ibz-cyan); text-decoration: none; font-weight: 700; }
.consent-cat {
  background: var(--ibz-bg-2); border: 1px solid var(--ibz-line);
  border-radius: 12px; padding: .7rem .9rem; margin-bottom: .6rem;
}
.consent-cat p { color: var(--ibz-muted); }
.consent-always { font-size: .72rem; font-weight: 800; color: var(--ibz-green); }
.consent-switch { position: relative; display: inline-block; width: 46px; height: 24px; margin: 0; }
.consent-switch input { opacity: 0; width: 0; height: 0; }
.consent-switch span {
  position: absolute; inset: 0; border-radius: 99px; cursor: pointer;
  background: var(--ibz-line); transition: background .2s ease;
}
.consent-switch span::before {
  content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  left: 3px; top: 3px; background: #fff; transition: transform .2s ease;
}
.consent-switch input:checked + span { background: var(--ibz-green); }
.consent-switch input:checked + span::before { transform: translateX(22px); }

/* combo regalo */
.section-tees { background: var(--ibz-bg-2); }
.bundle-teaser {
  max-width: 44rem; margin: 2.4rem auto 0; text-align: center;
  border: 1.5px dashed rgba(255, 214, 0, .55); border-radius: 16px;
  background: rgba(255, 214, 0, .06);
  padding: 1rem 1.3rem; font-size: .95rem; color: var(--ibz-ink);
}
.bundle-msg {
  margin-top: .6rem; font-size: .82rem; font-weight: 700;
  border: 1px dashed rgba(255, 214, 0, .55); border-radius: 10px;
  background: rgba(255, 214, 0, .07); color: var(--ibz-yellow);
  padding: .5rem .7rem;
}

/* gate PayPal */
.paypal-gate {
  border: 1px dashed var(--ibz-line); border-radius: 12px;
  padding: .9rem 1rem; text-align: center; background: var(--ibz-bg-2);
}
.paypal-gate p { color: var(--ibz-muted); }

/* link LOCA TV in nav */
.nav-link-tv { color: var(--ibz-pink) !important; }

/* ---------- 18b. BADGE BOZZA ADMIN ---------- */
.draft-badge {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  z-index: 3000; background: var(--ibz-yellow); color: #1a1400;
  font-weight: 800; font-size: .78rem; letter-spacing: .08em;
  padding: .35rem 1.1rem; border-radius: 0 0 12px 12px;
  box-shadow: 0 6px 20px rgba(255, 214, 0, .4);
}

/* ---------- 19. RESPONSIVE ---------- */
@media (max-width: 991.98px) {
  .ibz-navbar .navbar-collapse {
    background: rgba(10, 10, 35, .97); border: 1px solid var(--ibz-line);
    border-radius: 14px; padding: .8rem 1rem; margin-top: .7rem;
  }
  .hero { padding-top: 3rem; min-height: auto; }
  .hero-art { order: -1; }
  .hero-logo { width: min(240px, 58vw); }
  .section { padding: 4rem 0; }
}

/* ============ MOBILE PRO (≤ 576px): tutto adattato ============ */
@media (max-width: 575.98px) {
  /* barra annuncio + navbar compatte */
  .announce-bar { font-size: .68rem; letter-spacing: .06em; padding: .4rem .5rem; }
  .ibz-navbar { padding-block: .4rem; }
  .brand-text { font-size: 1.25rem; }
  .brand-frog { width: 38px; height: auto; }
  .btn-cart { width: 42px; height: 42px; font-size: 1.1rem; }
  .lang-btn { font-size: .66rem; padding: .26rem .45rem; }

  /* hero */
  .hero { padding: 2.2rem 0 5rem; min-height: auto; }
  .hero-title { font-size: clamp(2.7rem, 14vw, 3.6rem); }
  .hero-sub { font-size: 1rem; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { width: 100%; text-align: center; }
  .hero-trust { font-size: .8rem; gap: .6rem 1rem !important; }
  .hero-logo { width: min(200px, 52vw); }
  .hero-wave svg { height: 60px; }
  .sparkle { font-size: 1.1rem; }

  .ticker-track span { font-size: .85rem; }
  .section { padding: 3.2rem 0; }
  .section-title { font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
  .section-sub { font-size: .95rem; }

  /* card prodotto */
  .product-media { padding: 1rem .9rem .6rem; }
  .product-body { padding: 1.1rem 1rem 1.2rem; }
  .product-name { font-size: 1.25rem; }
  .size-chip { min-width: 42px; min-height: 42px; }

  /* statistiche storia */
  .stats-grid { grid-template-columns: 1fr 1fr; gap: .7rem; }
  .stat-num { font-size: 2rem; }
  .stat-card { padding: 1.1rem .8rem; }

  /* tabelle e card */
  .size-table thead th { font-size: .7rem; padding: .65rem .6rem; }
  .size-table tbody th, .size-table tbody td { padding: .6rem .6rem; font-size: .88rem; }
  .spec-card, .ship-card { padding: 1.3rem 1.1rem; }

  /* carrello a tutta larghezza */
  .ibz-offcanvas { width: 100vw !important; max-width: 100vw; }
  .cart-thumb { width: 54px; height: 48px; }
  .qty-btn { width: 34px; height: 34px; }

  /* scheda prodotto e checkout: fullscreen (gestito anche dalle classi BS) */
  .sheet-name { font-size: 1.6rem; }
  .sheet-price { font-size: 2rem; }
  .sheet-thumbs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: .3rem; }
  .sheet-thumb { flex: 0 0 64px; height: 56px; }
  .sheet-specs th { width: 40%; font-size: .8rem; }
  .sheet-specs td { font-size: .8rem; }
  .ship-form { padding: .8rem; }
  .ship-form .form-control, .ship-form .form-select { min-height: 44px; }

  /* banner cookie a tutta larghezza in basso */
  .cookie-banner {
    left: 0; right: 0; bottom: 0; max-width: 100%;
    border-radius: 18px 18px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
  }
  .consent-main .btn { flex: 1 1 auto; }

  /* toast e back-to-top */
  #toastZone { left: .8rem; right: .8rem; max-width: none; }
  #backToTop { bottom: 1rem; right: .9rem; width: 44px; height: 44px; }

  /* footer */
  .footer { padding: 2.5rem 0 5.5rem; text-align: center; }
  .footer-logo { max-width: 200px; margin-inline: auto; display: block; }
  .pay-badges { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }

  /* tap target generosi */
  .nav-link, .footer-links a { padding-top: .5rem; padding-bottom: .5rem; }
}

/* schermi molto piccoli */
@media (max-width: 379.98px) {
  .hero-title { font-size: 2.4rem; }
  .brand-text { font-size: 1.1rem; }
  .lang-switch { padding: 2px; }
}

/* ---------- 20. ACCESSIBILITÀ MOVIMENTO ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ===== SEZIONE SERATE (pannello + modale biglietti partner clubtickets) ===== */
.serate-panel {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 2.4rem 1.5rem;
  border-radius: 22px;
  background:
    radial-gradient(130% 130% at 50% 0%, rgba(224, 16, 126, .20), rgba(10, 10, 35, 0) 60%),
    linear-gradient(180deg, #15132a, #0e0c1a);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45);
}
.serate-clubs {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.serate-club {
  font-family: 'Luckiest Guy', cursive;
  letter-spacing: .5px;
  font-size: .9rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
}
.serate-cta { padding-inline: 2rem; }
.serate-note { max-width: 540px; margin-inline: auto; }
.serate-note a { color: #ff2d9b; }
#serateFrame { display: block; }

/* link "Dettagli & taglie" sulle card → pagina prodotto */
.product-page-link {
  display: block;
  text-align: center;
  margin-top: .6rem;
  font-weight: 600;
  font-size: .9rem;
  color: #ff2d9b;
  text-decoration: none;
}
.product-page-link:hover { text-decoration: underline; }
