/* ============================================================
   MANBAGA Comics & Games — style.css
   ============================================================ */

/* ============================================================
   RESET & VARIABILI
   ============================================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black:       #0d0d0d;
    --white:       #f5f0e8;
    --red:         #DC2626;
    --red-dark:    #991b1b;
    --yellow:      #FBBF24;
    --gray-mid:    #888;
    --gray-100:    #f3f3f0;
    --gray-900:    #1a1a1a;

    --font-comic:  'Bangers', cursive;
    --font-jp:     'Noto Serif JP', serif;
    --font-body:   'Inter', sans-serif;

    --border-thin: 1px solid rgba(0,0,0,0.18);
    --border:      2px solid var(--black);
    --border-fat:  3px solid var(--black);

    --shadow-sm:   3px 3px 0 rgba(0,0,0,0.55);
    --shadow:      5px 5px 0 rgba(0,0,0,0.6);
    --shadow-lg:   8px 8px 0 rgba(0,0,0,0.65);
    --shadow-red:  5px 5px 0 var(--red);

    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-bounce:   cubic-bezier(0.34, 1.56, 0.64, 1);
    --t:           0.2s ease;

    --max: 1280px;
    --nav-h: 64px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--white);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.is-loading {
    overflow: hidden;
}

.hidden {
    display: none !important;
}

section[id], footer[id] {
    scroll-margin-top: var(--nav-h);
}

/* ============================================================
   LOADING SCREEN
   ============================================================ */
#loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

#loader.exit {
    animation: loaderSlideUp 0.9s var(--ease-out-expo) forwards;
}

@keyframes loaderSlideUp {
    0%   { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(-100%); opacity: 0; }
}

.loader-wrap {
    text-align: center;
    position: relative;
    padding: 40px;
}

/* Kanji di sfondo enorme */
.loader-kanji-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-jp);
    font-size: clamp(160px, 30vw, 300px);
    font-weight: 900;
    color: rgba(255,255,255,0.025);
    pointer-events: none;
    user-select: none;
    line-height: 1;
    white-space: nowrap;
}

/* Logo lettere animate */
.loader-logo {
    font-family: var(--font-comic);
    font-size: clamp(64px, 16vw, 130px);
    letter-spacing: 0.06em;
    color: var(--white);
    display: flex;
    align-items: baseline;
    position: relative;
    z-index: 1;
}

.loader-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px) rotate(-12deg) scale(0.8);
    animation: charDrop 0.55s var(--ease-bounce) forwards;
    animation-delay: calc(var(--i) * 0.07s + 0.25s);
}

.loader-char.accent {
    color: var(--red);
}

@keyframes charDrop {
    to {
        opacity: 1;
        transform: translateY(0) rotate(0deg) scale(1);
    }
}

/* Linea rossa sotto il logo */
.loader-line {
    height: 3px;
    background: var(--red);
    width: 0;
    margin: 12px auto 0;
    animation: lineExpand 0.6s ease forwards;
    animation-delay: 0.9s;
    position: relative;
    z-index: 1;
}

@keyframes lineExpand {
    to { width: 100%; }
}

/* Sottotitolo */
.loader-sub {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-top: 20px;
    opacity: 0;
    position: relative;
    z-index: 1;
    animation: fadeUp 0.5s ease forwards;
    animation-delay: 1.0s;
}

/* Barra di progresso */
.loader-bar-track {
    width: 180px;
    height: 2px;
    background: rgba(255,255,255,0.08);
    margin: 20px auto 0;
    overflow: hidden;
    position: relative;
    z-index: 1;
    opacity: 0;
    animation: fadeUp 0.4s ease forwards;
    animation-delay: 1.1s;
}

.loader-bar-fill {
    height: 100%;
    width: 0%;
    background: var(--red);
    animation: barFill 1.1s ease forwards;
    animation-delay: 1.1s;
}

@keyframes barFill {
    to { width: 100%; }
}

@keyframes fadeUp {
    to { opacity: 1; }
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: var(--nav-h);
    background: rgba(13,13,13,0.96);
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(220,38,38,0.6);
    transition: border-color var(--t);
}

#nav.scrolled {
    border-color: var(--red);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Logo */
.nav-logo {
    font-family: var(--font-comic);
    font-size: 30px;
    letter-spacing: 0.05em;
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    transition: color var(--t);
    flex-shrink: 0;
}

.nav-logo .dot { color: var(--red); }
.nav-logo:hover { color: rgba(255,255,255,0.7); }

/* Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-links a {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    padding: 6px 12px;
    transition: color var(--t);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 1px;
    background: var(--red);
    transform: scaleX(0);
    transition: transform var(--t);
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--red) !important;
    color: var(--white) !important;
    padding: 8px 20px !important;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    letter-spacing: 0.15em !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--white) !important;
    color: var(--black) !important;
}

/* Hamburger */
.nav-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 6px;
    flex-shrink: 0;
}

.nav-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================================
   HERO
   ============================================================ */
#hero {
    min-height: 100vh;
    background: var(--black);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--nav-h) + 40px) 24px 120px;
}

/* Pattern halftone */
.hero-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(220,38,38,0.18) 1px, transparent 1px);
    background-size: 26px 26px;
}

/* Speed lines radiali */
.hero-rays {
    position: absolute;
    inset: -50%;
    background: repeating-conic-gradient(
        from 0deg at 50% 55%,
        transparent 0deg,
        transparent 3deg,
        rgba(255,255,255,0.018) 3deg,
        rgba(255,255,255,0.018) 4deg
    );
    pointer-events: none;
}

/* Striscia diagonale rossa */
.hero-slash {
    position: absolute;
    top: -200px;
    right: -150px;
    width: 600px;
    height: 900px;
    background: var(--red);
    transform: rotate(-18deg);
    opacity: 0.07;
    pointer-events: none;
}

/* Kanji decorativo angolo */
.hero-jp {
    position: absolute;
    bottom: -20px;
    left: -10px;
    font-family: var(--font-jp);
    font-size: clamp(120px, 20vw, 220px);
    font-weight: 900;
    color: rgba(255,255,255,0.025);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* Contenuto */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1100px;
    width: 100%;
}

.hero-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--red);
    border: 1px solid rgba(220,38,38,0.4);
    background: rgba(220,38,38,0.08);
    padding: 7px 22px;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    margin-bottom: 28px;
}

.hero-title {
    font-family: var(--font-comic);
    font-size: clamp(72px, 17vw, 190px);
    line-height: 0.87;
    color: var(--white);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.hero-title .red   { color: var(--red); }
.hero-title .stroke {
    -webkit-text-stroke: 2px var(--white);
    color: transparent;
}

/* Divisore con testo centrale */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 24px 0 40px;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    flex: 1;
    max-width: 140px;
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.hero-divider span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

/* Bottoni */
.hero-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Freccia scroll */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.2);
    font-size: 10px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    font-weight: 600;
    z-index: 2;
    pointer-events: none;
}

.scroll-line {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--red);
    transform: translateY(-100%);
    animation: scrollDown 1.6s ease infinite;
    will-change: transform;
}

@keyframes scrollDown {
    to { transform: translateY(100%); }
}

@media (max-height: 700px) {
    .hero-scroll-hint { display: none; }
}

@media (max-width: 520px) {
    .hero-scroll-hint {
        bottom: 20px;
        gap: 6px;
        font-size: 9px;
    }
    .scroll-line { height: 32px; }
}

/* ============================================================
   BOTTONI UNIVERSALI
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 32px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

.btn-primary {
    background: var(--red);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--white);
    color: var(--black);
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0 rgba(255,255,255,0.15);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.25);
    clip-path: none;
}

.btn-ghost:hover {
    border-color: var(--red);
    color: var(--red);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
    clip-path: none;
    border: var(--border);
    box-shadow: var(--shadow);
}

.btn-dark:hover {
    background: var(--red);
    transform: translate(-2px, -2px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================
   MARQUEE / IDENTITY BAR
   ============================================================ */
.marquee-bar {
    background: var(--red);
    border-top: 3px solid rgba(0,0,0,0.3);
    border-bottom: 3px solid rgba(0,0,0,0.3);
    overflow: hidden;
    padding: 14px 0;
}

.marquee-track {
    display: flex;
    gap: 0;
    width: max-content;
    animation: marqueeRoll 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.marquee-item {
    font-family: var(--font-comic);
    font-size: 20px;
    letter-spacing: 0.08em;
    color: var(--white);
    padding: 0 36px;
    display: flex;
    align-items: center;
    gap: 36px;
    white-space: nowrap;
}

.marquee-item::after {
    content: '★';
    font-size: 14px;
    opacity: 0.6;
}

@keyframes marqueeRoll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   SEZIONE COMMONS
   ============================================================ */
.section {
    padding: 100px 24px;
}

.section--dark {
    background: #0d0d0d;
    color: #f5f0e8;
}

.section-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.section-label {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-comic);
    font-size: clamp(44px, 7vw, 82px);
    line-height: 0.9;
    margin-bottom: 60px;
}

/* ============================================================
   CATALOGO
   ============================================================ */
#catalogo {
    background: #0d0d0d;
}

#catalogo .section-label {
    color: rgba(255,255,255,0.3);
}

#catalogo .section-title {
    color: #f5f0e8;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.07);
    margin-top: 48px;
}

.cat-card {
    position: relative;
    overflow: hidden;
    background: #111;
    padding: 36px 26px 32px;
    cursor: default;
    display: flex;
    flex-direction: column;
    min-height: 360px;
    transition: background 0.4s ease;
}

.cat-card:hover {
    background: #161616;
}

/* Accent line top che si estende al hover */
.cat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
    z-index: 2;
}

.cat-card:hover::before {
    transform: scaleX(1);
}

/* Kanji gigante come sfondo decorativo */
.cat-bg-kanji {
    position: absolute;
    bottom: -20px;
    right: -10px;
    font-size: 160px;
    line-height: 1;
    color: rgba(255,255,255,0.028);
    font-family: serif;
    pointer-events: none;
    user-select: none;
    transition: transform 0.6s var(--ease-out-expo), color 0.5s;
}

.cat-card:hover .cat-bg-kanji {
    transform: scale(1.08) translateY(-10px);
    color: rgba(220,38,38,0.07);
}

/* Badge numero */
.cat-num-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.35em;
    color: var(--red);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-num-badge::after {
    content: '';
    flex: 1;
    max-width: 32px;
    height: 1px;
    background: rgba(220,38,38,0.35);
}

/* Wrapper contenuto */
.cat-content {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Sottotitolo giapponese */
.cat-jp {
    font-size: 10px;
    letter-spacing: 0.28em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 12px;
    font-weight: 400;
    text-transform: uppercase;
}

/* Titolo categoria */
.cat-title {
    font-family: var(--font-comic);
    font-size: clamp(20px, 1.7vw, 28px);
    letter-spacing: 0.02em;
    color: #f5f0e8;
    margin-bottom: 12px;
    line-height: 1.1;
    transition: color 0.3s;
}

/* Descrizione */
.cat-desc {
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255,255,255,0.32);
    flex: 1;
    margin-bottom: 20px;
    transition: color 0.3s;
}

.cat-card:hover .cat-desc {
    color: rgba(255,255,255,0.5);
}

/* Tag sottocategoria */
.cat-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.cat-tag {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 5px 10px;
    transition: color 0.3s, border-color 0.3s, background 0.3s;
}

.cat-card:hover .cat-tag {
    color: rgba(220,38,38,0.9);
    border-color: rgba(220,38,38,0.3);
    background: rgba(220,38,38,0.05);
}

/* ============================================================
   NUOVI ARRIVI — CAROSELLO
   ============================================================ */
#nuovi-arrivi {
    background: var(--black);
    color: var(--white);
}

#nuovi-arrivi .section-title {
    color: var(--white);
}

#nuovi-arrivi .section-label {
    color: rgba(220,38,38,0.8);
}

/* Carosello wrapper */
.carousel-outer {
    margin-bottom: 48px;
}

.carousel-nav-row {
    display: flex;
    align-items: stretch;
    gap: 16px;
}

.carousel-viewport {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.carousel-viewport::before,
.carousel-viewport::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 48px;
    z-index: 3;
    pointer-events: none;
}

.carousel-viewport::before {
    left: 0;
    background: linear-gradient(90deg, var(--black), transparent);
}

.carousel-viewport::after {
    right: 0;
    background: linear-gradient(-90deg, var(--black), transparent);
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.55s var(--ease-out-expo);
    will-change: transform;
}

.carousel-btn {
    width: 52px;
    flex-shrink: 0;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.carousel-btn:hover:not(:disabled) {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
}

.carousel-btn:disabled {
    opacity: 0.2;
    cursor: default;
}

.carousel-dots-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    min-height: 16px;
}

.carousel-dot {
    width: 24px;
    height: 2px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    cursor: pointer;
    transition: background 0.3s ease, opacity 0.3s ease;
    border: none;
    padding: 0;
    flex-shrink: 0;
}

.carousel-dot.active {
    background: var(--red);
    opacity: 1;
}

.carousel-dot:not(.active):hover {
    background: rgba(255,255,255,0.35);
}

/* PRODUCT CARDS */
.product-card {
    background: var(--gray-900);
    border: 2px solid rgba(255,255,255,0.06);
    cursor: pointer;
    transition: all 0.35s ease;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.04) 50%,
        transparent 60%
    );
    z-index: 3;
    pointer-events: none;
    transition: left 0.5s ease;
}

.product-card:hover::before {
    left: 160%;
}

.product-card:hover {
    border-color: var(--red);
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(220,38,38,0.22), 0 4px 12px rgba(0,0,0,0.3);
}

/* Hover colorato per stato */
.product-card[data-badge="PREORDINA"]:hover {
    border-color: #4F46E5;
    box-shadow: 0 20px 50px rgba(79,70,229,0.28), 0 4px 12px rgba(0,0,0,0.3);
}

.product-card[data-badge="IN ARRIVO"]:hover {
    border-color: #D97706;
    box-shadow: 0 20px 50px rgba(217,119,6,0.28), 0 4px 12px rgba(0,0,0,0.3);
}

/* Out of Stock */
.product-card--oos {
    opacity: 0.52;
    filter: grayscale(55%);
    cursor: default;
}

.product-card--oos:hover {
    border-color: #374151;
    transform: none;
    box-shadow: none;
}

.product-card--oos .product-name:hover { color: var(--white); }

.product-badge {
    position: absolute;
    top: 12px;
    left: -5px;
    background: var(--red);
    color: var(--white);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 5px 14px 5px 10px;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    z-index: 2;
    box-shadow: 2px 2px 8px rgba(0,0,0,0.35);
}

/* Badge varianti stato */
.product-badge[data-badge="PREORDINA"]   { background: #4F46E5; }
.product-badge[data-badge="IN ARRIVO"]   { background: #D97706; }
.product-badge[data-badge="OUT OF STOCK"],
.product-badge[data-badge="ESAURITO"]    { background: #374151; }
.product-badge[data-badge="HOT"]         { background: #DC2626; }
.product-badge[data-badge="NOVITÀ"]      { background: #DC2626; }
.product-badge[data-badge="Disponibile"] { background: #15803D; }

.product-img-wrap {
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: radial-gradient(ellipse at 50% 60%, #222 0%, #0d0d0d 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 14px;
    transition: transform 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo);
}

.product-card:hover .product-img {
    transform: scale(1.08);
    padding: 8px;
}

/* Overlay "Scopri di più" */
.product-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13,13,13,0.72) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
    opacity: 0;
    transition: opacity 0.35s;
    pointer-events: none;
}

.product-img-overlay span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.55);
    background: rgba(0,0,0,0.25);
    padding: 9px 22px;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    backdrop-filter: blur(4px);
}

.product-card:hover .product-img-overlay {
    opacity: 1;
}

.product-info {
    padding: 14px 16px 18px;
    border-top: 2px solid rgba(255,255,255,0.06);
    transition: border-color 0.3s;
    position: relative;
}

.product-card:hover .product-info {
    border-color: var(--red);
}

.product-card[data-badge="PREORDINA"]:hover .product-info { border-color: #4F46E5; }
.product-card[data-badge="IN ARRIVO"]:hover .product-info  { border-color: #D97706; }

.product-store-tag {
    font-family: var(--font-body);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--red);
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 0.8;
}

.product-name {
    font-family: var(--font-comic);
    font-size: 20px;
    color: var(--white);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.product-card:hover .product-name {
    color: var(--red);
}

.product-card[data-badge="PREORDINA"]:hover .product-name { color: #818CF8; }
.product-card[data-badge="IN ARRIVO"]:hover .product-name  { color: #FCD34D; }

.product-vol {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* pd-img-wrap — zoom nel modal */
.pd-img-wrap {
    position: relative;
    cursor: zoom-in;
    background: #f7f3ea;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.08);
}

.pd-img-wrap:hover .pd-zoom-hint {
    opacity: 1;
}

.pd-zoom-hint {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(13,13,13,0.85);
    color: rgba(255,255,255,0.7);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    border-left: 2px solid var(--red);
}

/* Lightbox */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 700;
    background: rgba(0,0,0,0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: fadeIn 0.2s ease;
}

.img-lightbox img {
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    cursor: default;
    box-shadow: 0 0 80px rgba(0,0,0,0.8);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: var(--red);
    border-color: var(--red);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.products-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 24px;
    color: rgba(255,255,255,0.2);
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 2;
}

/* ============================================================
   EVENTI
   ============================================================ */
#eventi {
    background: var(--white);
}

.events-wrap {
    border: var(--border-fat);
}

.event-row {
    display: flex;
    border-bottom: var(--border);
    overflow: hidden;
    transition: background 0.3s;
    cursor: default;
}

.event-row:last-child {
    border-bottom: none;
}

.event-row:hover {
    background: var(--black);
}

.event-date-box {
    background: var(--black);
    color: var(--white);
    padding: 32px 20px;
    min-width: 110px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-right: var(--border);
}

.event-day-num {
    font-family: var(--font-comic);
    font-size: 54px;
    line-height: 1;
    color: var(--red);
}

.event-month-txt {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-top: 2px;
}

.event-year-txt {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.2);
    margin-top: 4px;
}

.event-body {
    padding: 28px 32px;
    flex: 1;
}

.event-tag {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: var(--red);
    border: 1px solid rgba(220,38,38,0.35);
    background: rgba(220,38,38,0.07);
    padding: 3px 10px;
    margin-bottom: 10px;
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.event-row:hover .event-tag {
    color: rgba(220,38,38,0.9);
    border-color: rgba(220,38,38,0.5);
    background: rgba(220,38,38,0.12);
}

.event-title {
    font-family: var(--font-comic);
    font-size: 30px;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.event-row:hover .event-title {
    color: var(--white);
}

.event-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.65;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.event-row:hover .event-desc {
    color: rgba(255,255,255,0.5);
}

.event-meta {
    display: flex;
    gap: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--red);
}

.events-empty {
    padding: 60px 24px;
    text-align: center;
    color: #aaa;
    font-size: 14px;
    letter-spacing: 0.08em;
    line-height: 2;
}

/* ============================================================
   INSTAGRAM STRIP
   ============================================================ */
#ig-strip {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a0a0a 60%, #0d0d0d 100%);
    border-top: 1px solid rgba(220,38,38,0.25);
    border-bottom: 1px solid rgba(220,38,38,0.25);
    padding: 64px 24px;
    position: relative;
    overflow: hidden;
}

#ig-strip::before {
    content: '';
    position: absolute;
    left: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220,38,38,0.18) 0%, transparent 70%);
    pointer-events: none;
}

#ig-strip::after {
    content: '';
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, transparent 70%);
    pointer-events: none;
}

.ig-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.ig-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
    margin-bottom: 10px;
}

.ig-title {
    font-family: var(--font-comic);
    font-size: clamp(32px, 5vw, 60px);
    color: #f5f0e8;
    line-height: 0.95;
}

.btn-ig {
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
    padding: 18px 44px;
    border-radius: 2px;
    white-space: nowrap;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.btn-ig:hover {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.6);
}

/* ============================================================
   LOTUS FLOAT — Fiore di loto (collegato a Instagram)
   ============================================================ */
.lotus-float {
    position: fixed;
    right: 22px;
    bottom: 32px;
    z-index: 400;
    width: 62px;
    height: 62px;
    background: rgba(13,13,13,0.92);
    border: 1.5px solid transparent;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(212,119,138,0.3), 0 2px 8px rgba(0,0,0,0.35);
    text-decoration: none;
    backdrop-filter: blur(8px);
    animation: lotusBounce 3.2s var(--ease-bounce) infinite;
    transition: all 0.3s;
    /* Instagram gradient border */
    background-clip: padding-box;
    outline: 1.5px solid transparent;
    background-image: linear-gradient(rgba(13,13,13,0.92), rgba(13,13,13,0.92));
    background-origin: border-box;
    box-shadow: 0 4px 20px rgba(200,80,130,0.3), 0 2px 8px rgba(0,0,0,0.35), inset 0 0 0 1.5px rgba(240,100,160,0.45);
}

.lotus-float:hover {
    animation-play-state: paused;
    transform: scale(1.12);
    box-shadow: 0 8px 32px rgba(200,80,130,0.45), 0 2px 8px rgba(0,0,0,0.4), inset 0 0 0 1.5px rgba(240,100,160,0.9);
}

.lotus-tooltip {
    position: absolute;
    right: calc(100% + 14px);
    top: 50%;
    transform: translateY(-50%);
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    padding: 8px 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s;
    border-right: 3px solid #E1306C;
    clip-path: polygon(5px 0, 100% 0, 100% 100%, 0 100%);
}

.lotus-float:hover .lotus-tooltip {
    opacity: 1;
}

@keyframes lotusBounce {
    0%, 100% { transform: translateY(0) scale(1); }
    18%       { transform: translateY(-13px) scale(1.05); }
    33%       { transform: translateY(-4px) scale(1); }
    50%       { transform: translateY(-8px) scale(1.03); }
    65%       { transform: translateY(-2px) scale(1); }
    82%       { transform: translateY(-5px) scale(1.01); }
}

/* ============================================================
   SEZIONE CONTATTI
   ============================================================ */
/* ============================================================
   CHI SIAMO
   ============================================================ */
#chi-siamo {
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}
.chisiamo-jp-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(60px, 14vw, 160px);
    font-weight: 900;
    color: rgba(255,255,255,0.02);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}
#chi-siamo .section-inner { position: relative; z-index: 1; }
#chi-siamo .section-title  { color: var(--white); }
#chi-siamo .section-label  { color: rgba(220,38,38,0.8); }

/* Intro testo */
.chisiamo-intro {
    max-width: 680px;
    margin: 0 auto 56px;
    text-align: center;
    font-size: 16px;
    line-height: 1.85;
    color: rgba(245,240,232,0.75);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Timeline */
.chisiamo-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 640px;
    margin: 0 auto 64px;
    border-left: 2px solid #2a2a2a;
    padding-left: 0;
}
.chisiamo-step {
    display: flex;
    gap: 24px;
    padding: 0 0 36px 32px;
    position: relative;
}
.chisiamo-step::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #DC2626;
    border: 2px solid var(--black);
}
.chisiamo-step-year {
    font-family: 'Bangers', cursive;
    font-size: 22px;
    color: #DC2626;
    min-width: 52px;
    flex-shrink: 0;
    line-height: 1.2;
}
.chisiamo-step-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.chisiamo-step-body p {
    font-size: 14px;
    color: rgba(245,240,232,0.6);
    line-height: 1.7;
    margin: 0;
}

/* Galleria foto */
.chisiamo-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 12px;
    margin-bottom: 64px;
}
.chisiamo-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    background: #141414;
    aspect-ratio: 4/3;
}
.chisiamo-photo--wide {
    grid-row: span 2;
    aspect-ratio: unset;
}
.chisiamo-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.chisiamo-photo:hover img { transform: scale(1.04); }
.chisiamo-photo-label {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: rgba(245,240,232,0.8);
    background: linear-gradient(transparent, rgba(0,0,0,0.6));
    text-transform: uppercase;
    letter-spacing: .08em;
}
/* Placeholder quando l'immagine non è ancora impostata */
.chisiamo-photo--placeholder {
    border: 2px dashed #2a2a2a;
}
.chisiamo-photo--placeholder img { display: none; }
.chisiamo-photo--placeholder::after {
    content: '📷 Foto non ancora caricata';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #444;
    text-align: center;
    padding: 16px;
}

/* Valori / pillole */
.chisiamo-values {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.chisiamo-value {
    background: #0f0f0f;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    transition: border-color .2s, transform .2s;
}
.chisiamo-value:hover {
    border-color: #333;
    transform: translateY(-3px);
}
.chisiamo-value-icon {
    font-family: 'Noto Serif JP', serif;
    font-size: 40px;
    color: #DC2626;
    margin-bottom: 12px;
    line-height: 1;
}
.chisiamo-value-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 10px;
}
.chisiamo-value p {
    font-size: 13px;
    color: rgba(245,240,232,0.55);
    line-height: 1.7;
    margin: 0;
}

/* Responsive chi siamo */
@media (max-width: 900px) {
    .chisiamo-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .chisiamo-photo--wide { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/7; }
    .chisiamo-values { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .chisiamo-gallery { grid-template-columns: 1fr 1fr; gap: 8px; }
    .chisiamo-values  { grid-template-columns: 1fr; }
    .chisiamo-intro   { font-size: 15px; }
}
@media (max-width: 400px) {
    .chisiamo-gallery { grid-template-columns: 1fr; }
    .chisiamo-photo--wide { grid-column: span 1; }
}

/* ============================================================
   CONTATTI
   ============================================================ */
#contatti {
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-jp-bg {
    position: absolute;
    right: -80px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-jp);
    font-size: clamp(220px, 38vw, 420px);
    font-weight: 900;
    color: rgba(255,255,255,0.018);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

#contatti .section-title { color: var(--white); margin-bottom: 48px; }
#contatti .section-label { color: rgba(220,38,38,0.8); }

.contact-subtitle-jp {
    font-family: var(--font-jp);
    font-size: 0.38em;
    color: rgba(255,255,255,0.13);
    display: block;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.25em;
    margin-top: 6px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 64px;
    align-items: start;
}

.contact-info-col { position: relative; }

.contact-info-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.contact-info-item:first-child { padding-top: 0; }

.contact-info-icon {
    width: 42px;
    height: 42px;
    background: rgba(220,38,38,0.08);
    border: 1px solid rgba(220,38,38,0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    flex-shrink: 0;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
}

.contact-info-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
}

.contact-info-val {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.75;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    transition: color var(--t);
}

.contact-link:hover { color: var(--red); }

.contact-hanko {
    width: 76px;
    height: 76px;
    border: 2px solid rgba(220,38,38,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 36px;
    opacity: 0.35;
    transition: opacity 0.3s;
}

.contact-info-col:hover .contact-hanko { opacity: 0.7; }

.contact-hanko span {
    font-family: var(--font-jp);
    font-size: 38px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.contact-form-wrap {
    border: 1px solid rgba(255,255,255,0.08);
    border-top: 3px solid var(--red);
    background: rgba(255,255,255,0.025);
}

.contact-form-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 28px;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.contact-form-head-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.contact-form-head-jp {
    font-family: var(--font-jp);
    font-size: 17px;
    color: rgba(255,255,255,0.1);
    font-weight: 700;
}

.contact-form-body { padding: 28px; }

.contact-input {
    background: rgba(255,255,255,0.05) !important;
    color: var(--white) !important;
    border-color: rgba(255,255,255,0.1) !important;
}

.contact-input::placeholder { color: rgba(255,255,255,0.2) !important; }

.contact-input:focus {
    border-color: var(--red) !important;
    background: rgba(255,255,255,0.08) !important;
}

textarea.contact-input { min-height: 120px; }

.contact-submit {
    clip-path: none !important;
    width: 100%;
    border-radius: 0;
    margin-top: 8px;
}

/* ============================================================
   FOOTER
   ============================================================ */
#footer {
    background: var(--black);
    color: var(--white);
    padding: 0;
    border-top: 4px solid var(--red);
    position: relative;
    overflow: hidden;
}

.footer-jp-bg {
    position: absolute;
    right: -30px;
    bottom: -40px;
    font-family: var(--font-jp);
    font-size: clamp(180px, 28vw, 300px);
    font-weight: 900;
    color: rgba(255,255,255,0.016);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

.footer-top-bar {
    background: rgba(220,38,38,0.07);
    border-bottom: 1px solid rgba(220,38,38,0.15);
    padding: 14px 24px;
}

.footer-top-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.footer-top-tagline {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    gap: 18px;
}

.footer-jp-deco {
    font-family: var(--font-jp);
    font-size: 15px;
    font-weight: 700;
    color: rgba(220,38,38,0.3);
    letter-spacing: 0.3em;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 64px 24px 40px;
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 44px;
}

.footer-col--brand { position: relative; }

.footer-logo {
    font-family: var(--font-comic);
    font-size: 48px;
    color: var(--white);
    letter-spacing: 0.04em;
    display: block;
    margin-bottom: 14px;
}

.footer-logo .dot { color: var(--red); }

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    line-height: 1.9;
    max-width: 280px;
    margin-bottom: 18px;
}

.footer-brand-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.footer-badge {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(220,38,38,0.7);
    border: 1px solid rgba(220,38,38,0.2);
    background: rgba(220,38,38,0.05);
    padding: 3px 10px;
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.footer-seal {
    width: 68px;
    height: 68px;
    border: 2px solid rgba(220,38,38,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 24px;
    opacity: 0.35;
    transition: opacity 0.4s;
}

.footer-col--brand:hover .footer-seal { opacity: 0.75; }

.footer-seal span {
    font-family: var(--font-jp);
    font-size: 32px;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
}

.footer-col-h {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
    margin-bottom: 22px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(220,38,38,0.3);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.footer-col-h-jp {
    font-family: var(--font-jp);
    font-size: 12px;
    color: rgba(255,255,255,0.14);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: none;
}

.footer-hours { display: flex; flex-direction: column; }

.footer-hours-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.footer-hours-row:last-child { border-bottom: none; }
.footer-hours-closed { color: rgba(255,255,255,0.18) !important; }
.footer-hours-time { color: rgba(255,255,255,0.65); font-weight: 700; }

.footer-open-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(74,222,128,0.7);
    margin-top: 14px;
}

.footer-open-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ADE80;
    box-shadow: 0 0 6px #4ADE80;
    animation: dotPulse 2s ease infinite;
    flex-shrink: 0;
}

@keyframes dotPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.footer-address {
    font-size: 13px;
    font-style: normal;
    color: rgba(255,255,255,0.4);
    line-height: 2;
    margin-bottom: 16px;
}

.footer-map-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    transition: color var(--t);
    margin-top: 4px;
}

.footer-map-link:hover { color: var(--white); }

.footer-social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: all 0.25s;
    flex-shrink: 0;
}

.footer-social-link svg {
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.25s;
}

.footer-social-link:hover svg { opacity: 1; }

.footer-link-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    line-height: 1.2;
}

.footer-link-sub {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: rgba(255,255,255,0.25);
    letter-spacing: 0.03em;
    margin-top: 1px;
}

.footer-social-link:last-child { border-bottom: none; }

.footer-social-link:hover { color: var(--white); }
.footer-social-link--ig:hover { color: #E1306C; }
.footer-social-link--wa:hover { color: #25D366; }
.footer-social-link--mail:hover { color: #60A5FA; }
.footer-social-link--form:hover { color: var(--red); }

.footer-divider {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 48px 0 28px;
}

.footer-divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(220,38,38,0.25), transparent);
}

.footer-divider-mark { font-size: 12px; color: rgba(220,38,38,0.35); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255,255,255,0.15);
    letter-spacing: 0.06em;
    padding-top: 4px;
}

.footer-bottom-jp {
    font-family: var(--font-jp);
    font-size: 18px;
    color: rgba(255,255,255,0.05);
    font-weight: 900;
}

.footer-bottom-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom-heart {
    color: rgba(220,38,38,0.4);
    font-size: 13px;
    animation: heartBeat 2.5s ease infinite;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    14% { transform: scale(1.25); }
    28% { transform: scale(1); }
    42% { transform: scale(1.15); }
    56% { transform: scale(1); }
}

/* ============================================================
   MODALI
   ============================================================ */
.modal-wrap {
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    backdrop-filter: blur(6px);
}

.modal-box {
    background: var(--white);
    border: var(--border-fat);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
    background: var(--black);
    color: var(--white);
    border-bottom: 2px solid var(--red);
    position: sticky;
    top: 0;
    z-index: 2;
}

.modal-head-title {
    font-family: var(--font-comic);
    font-size: 24px;
    letter-spacing: 0.06em;
}

.modal-head-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn-modal-close {
    background: var(--red);
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
    padding: 7px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    cursor: pointer;
    transition: background var(--t);
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
    text-transform: uppercase;
}

.btn-modal-close:hover {
    background: var(--white);
    color: var(--black);
}

.modal-body {
    padding: 32px;
}

/* Admin tabs */
.tab-nav {
    display: flex;
    border-bottom: var(--border);
    margin-bottom: 28px;
}

.tab-btn {
    font-family: var(--font-comic);
    font-size: 18px;
    letter-spacing: 0.06em;
    padding: 10px 28px;
    border: none;
    border-right: var(--border-thin);
    background: white;
    cursor: pointer;
    color: #bbb;
    transition: all var(--t);
}

.tab-btn:last-child { border-right: none; }

.tab-btn.active {
    background: var(--black);
    color: var(--white);
}

.tab-btn:hover:not(.active) {
    background: var(--gray-100);
    color: var(--black);
}

/* Admin grid */
.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.admin-panel {
    border: var(--border);
    padding: 24px;
}

.admin-panel-title {
    font-family: var(--font-comic);
    font-size: 22px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #eee;
}

.admin-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 10px 12px;
    border: 1px solid #eee;
    background: #fafafa;
    gap: 8px;
}

.admin-item-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.admin-item-sub {
    font-size: 11px;
    color: #999;
}

.btn-del {
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--t);
    clip-path: polygon(3px 0%, 100% 0%, calc(100% - 3px) 100%, 0% 100%);
}

.btn-del:hover { background: var(--red); }

/* Form */
.form-row {
    margin-bottom: 14px;
}

.form-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 5px;
}

.form-input {
    width: 100%;
    border: var(--border);
    padding: 10px 13px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    background: white;
    outline: none;
    transition: border-color var(--t);
    appearance: none;
}

.form-input:focus {
    border-color: var(--red);
}

textarea.form-input {
    min-height: 80px;
    resize: vertical;
}

/* Login */
.login-card {
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 20px;
}

.login-title {
    font-family: var(--font-comic);
    font-size: 42px;
    margin-bottom: 8px;
}

.login-sub {
    font-size: 13px;
    color: #aaa;
    margin-bottom: 28px;
}

/* Prodotto detail nel modal */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 32px;
    margin-bottom: 28px;
}

.pd-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: contain;
    display: block;
    padding: 20px;
    transition: transform 0.3s var(--ease-out-expo);
}

.pd-img-wrap {
    align-self: stretch;
}

.pd-img-wrap:hover .pd-img {
    transform: scale(1.03);
}

.pd-badge {
    display: inline-block;
    background: var(--red);
    color: white;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 4px 16px;
    margin-bottom: 14px;
    clip-path: polygon(4px 0%, 100% 0%, calc(100% - 4px) 100%, 0% 100%);
}

.pd-badge[data-badge="PREORDINA"]   { background: #4F46E5; }
.pd-badge[data-badge="IN ARRIVO"]   { background: #B45309; }
.pd-badge[data-badge="OUT OF STOCK"],
.pd-badge[data-badge="ESAURITO"]    { background: #374151; }
.pd-badge[data-badge="Disponibile"] { background: #15803D; }

.pd-title {
    font-family: var(--font-comic);
    font-size: 48px;
    line-height: 0.95;
    margin-bottom: 8px;
}

.pd-vol {
    font-weight: 700;
    color: var(--red);
    font-size: 15px;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.pd-price {
    font-family: var(--font-comic);
    font-size: 42px;
    margin-bottom: 24px;
}

.pd-desc-block {
    border: var(--border);
    padding: 24px;
    background: var(--gray-100);
}

.pd-desc-block h3 {
    font-family: var(--font-comic);
    font-size: 24px;
    margin-bottom: 12px;
}

.pd-desc-block p {
    font-size: 15px;
    line-height: 1.75;
    color: #444;
}

/* ============================================================
   PREORDINE PANEL
   ============================================================ */
.preorder-panel {
    margin-top: 20px;
    border: 2px solid #4F46E5;
    border-top: 4px solid #4F46E5;
    padding: 22px 22px 18px;
    background: rgba(79,70,229,0.04);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.preorder-panel-head {
    font-family: var(--font-comic);
    font-size: 20px;
    letter-spacing: 0.04em;
    color: #4F46E5;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(79,70,229,0.2);
}

.preorder-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 20px;
    text-align: center;
    gap: 10px;
}

.preorder-success-icon {
    width: 56px;
    height: 56px;
    background: #4F46E5;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 900;
}

.preorder-success-title {
    font-family: var(--font-comic);
    font-size: 26px;
    color: #4F46E5;
}

.preorder-success-msg {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
}

/* Prezzo nella card prodotto */
.product-price {
    font-family: var(--font-comic);
    font-size: 18px;
    color: var(--red);
    font-weight: 700;
    margin-top: 4px;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }

    .footer-col--brand {
        grid-column: 1 / -1;
    }

    .contact-grid {
        gap: 40px;
    }

    /* Navbar: hamburger sotto 1024px */
    .nav-links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(13,13,13,0.98);
        backdrop-filter: blur(16px);
        padding: 20px 24px 28px;
        border-bottom: 2px solid rgba(220,38,38,0.5);
        gap: 2px;
        z-index: 999;
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
        list-style: none;
        box-shadow: 0 16px 40px rgba(0,0,0,0.6);
    }

    .nav-links.open {
        display: flex;
        animation: navSlideDown 0.25s cubic-bezier(0.19,1,0.22,1) forwards;
    }

    @keyframes navSlideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: none; }
    }

    .nav-links li { width: 100%; }

    .nav-links a {
        display: block;
        padding: 13px 4px;
        border-bottom: 1px solid rgba(255,255,255,0.07);
        font-size: 14px;
        letter-spacing: 0.12em;
        color: rgba(255,255,255,0.65);
    }

    .nav-links li:last-child a { border-bottom: none; }
    .nav-links a::after { display: none; }

    .nav-links .nav-cta {
        display: block;
        margin-top: 14px;
        padding: 14px !important;
        text-align: center;
        border-radius: 8px;
        clip-path: none !important;
        background: var(--red) !important;
        color: var(--white) !important;
        letter-spacing: 0.18em !important;
        font-size: 13px;
    }
    .nav-links .nav-cta:hover {
        background: var(--white) !important;
        color: var(--black) !important;
    }

    .nav-burger { display: flex; }
}

@media (max-width: 768px) {
    .catalog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cat-card {
        min-height: 280px;
        padding: 28px 20px 24px;
    }

    .cat-bg-kanji {
        font-size: 120px;
    }

    .carousel-btn {
        width: 40px;
        font-size: 15px;
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    /* Modal prodotto su mobile */
    .pd-grid {
        grid-template-columns: 1fr;
    }

    .pd-image-wrap {
        max-height: 260px;
    }

    .product-modal-inner {
        padding: 20px 16px;
        max-height: 90vh;
    }

    .product-modal-close {
        top: 12px;
        right: 12px;
    }

    /* Carousel su mobile */
    .carousel-outer {
        padding: 0 4px;
    }

    /* Instagram strip su mobile */
    .ig-inner {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .btn-ig {
        width: 100%;
        justify-content: center;
        padding: 16px 24px;
    }

    /* Contatti */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .contact-info-item {
        gap: 12px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }

    .footer-bottom-jp { display: none; }

    /* Hero su tablet */
    .hero-btns {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Sezione eventi */
    .event-row {
        flex-direction: column;
    }

    .event-date-box {
        width: 100%;
        padding: 16px 24px;
        flex-direction: row;
        align-items: center;
        gap: 12px;
        border-right: none;
        border-bottom: var(--border);
    }

    .event-day-num {
        font-size: 32px;
    }
}

@media (max-width: 520px) {
    .section { padding: 56px 16px; }

    .section-title { font-size: clamp(28px, 9vw, 48px); }

    .carousel-btn {
        width: 36px;
        font-size: 14px;
    }

    .event-body {
        padding: 20px 18px;
    }

    .hero-title {
        font-size: clamp(58px, 19vw, 120px);
    }

    .hero-divider {
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .hero-btns {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .hero-btns .btn {
        text-align: center;
        justify-content: center;
    }

    /* Product card su mobile */
    .product-card-meta {
        padding: 14px;
    }

    .product-card-title {
        font-size: 14px;
    }

    /* Modal prodotto */
    .pd-title { font-size: clamp(20px, 6vw, 32px); }

    /* Instagram strip */
    #ig-strip { padding: 48px 20px; }

    .ig-title { font-size: clamp(28px, 9vw, 48px); }

    .btn-ig {
        padding: 14px 20px;
        font-size: 13px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-col-h {
        font-size: 10px;
    }

    .footer-hours-row {
        font-size: 12px;
    }

    .lotus-float {
        right: 12px;
        bottom: 20px;
        width: 52px;
        height: 52px;
    }

    .footer-top-tagline {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }

    /* Carousel dots su mobile */
    .carousel-dot {
        width: 18px;
    }
}

/* ============================================================
   CAT-EXPLORE LINK (index.html catalog cards)
   ============================================================ */
.cat-explore-link {
    display: inline-block;
    margin-top: 16px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #DC2626;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.15s ease;
}
.cat-explore-link:hover {
    border-bottom-color: #DC2626;
}

/* ============================================================
   CATALOG PAGE — catalogo.html
   ============================================================ */

/* ---- Hero ---- */
.cp-hero {
    position: relative;
    background: #0d0d0d;
    color: #f5f0e8;
    padding: 80px 0 60px;
    overflow: hidden;
    margin-top: var(--nav-h);
}

.cp-hero-rays {
    position: absolute;
    inset: 0;
    background-image: conic-gradient(
        from 0deg at 50% 110%,
        transparent 0deg,
        rgba(220,38,38,0.06) 10deg,
        transparent 20deg,
        rgba(220,38,38,0.04) 30deg,
        transparent 40deg,
        rgba(220,38,38,0.06) 50deg,
        transparent 60deg,
        rgba(220,38,38,0.04) 70deg,
        transparent 80deg,
        rgba(220,38,38,0.06) 90deg,
        transparent 100deg,
        rgba(220,38,38,0.04) 110deg,
        transparent 120deg,
        rgba(220,38,38,0.06) 130deg,
        transparent 140deg,
        rgba(220,38,38,0.04) 150deg,
        transparent 160deg,
        rgba(220,38,38,0.06) 170deg,
        transparent 180deg
    );
    pointer-events: none;
}

.cp-hero-bg-kanji {
    position: absolute;
    font-family: 'Noto Serif JP', serif;
    font-size: 180px;
    opacity: 0.04;
    color: white;
    top: 50%;
    right: 10%;
    transform: translateY(-50%);
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
    line-height: 1;
}

.cp-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.cp-breadcrumb {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 24px;
}

.cp-bc-link {
    color: rgba(245,240,232,0.5);
    text-decoration: none;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: color 0.15s ease;
}
.cp-bc-link:hover {
    color: #f5f0e8;
}

.cp-bc-sep {
    color: rgba(245,240,232,0.3);
    font-size: 13px;
}

.cp-bc-current {
    color: rgba(245,240,232,0.85);
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.cp-hero-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(52px, 8vw, 96px);
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.cp-hero-title .stroke {
    -webkit-text-stroke: 2px #f5f0e8;
    color: transparent;
}

.cp-hero-sub {
    font-size: 14px;
    color: rgba(245,240,232,0.5);
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* ---- Mobile category tabs ---- */
.cp-mob-tabs {
    display: none;
    overflow-x: auto;
    gap: 0;
    background: #0d0d0d;
    padding: 0 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cp-mob-tabs::-webkit-scrollbar { display: none; }

.cp-mob-tab {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 12px 20px;
    border-bottom: 3px solid transparent;
    color: rgba(245,240,232,0.5);
    transition: all 0.2s ease;
}
.cp-mob-tab.is-active {
    color: #f5f0e8;
    border-bottom-color: #DC2626;
}
.cp-mob-tab-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    line-height: 1;
}
.cp-mob-tab span:last-child {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ---- Main layout wrapper ---- */
.cp-wrap {
    display: flex;
    max-width: 1280px;
    margin: 0 auto;
    padding: 48px 40px;
    gap: 48px;
    align-items: flex-start;
}

/* ---- Sidebar ---- */
.cp-sidebar {
    width: 260px;
    flex-shrink: 0;
    position: sticky;
    top: calc(var(--nav-h) + 24px);
    max-height: calc(100vh - var(--nav-h) - 48px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(220,38,38,0.3) transparent;
}
.cp-sidebar::-webkit-scrollbar { width: 4px; }
.cp-sidebar::-webkit-scrollbar-track { background: transparent; }
.cp-sidebar::-webkit-scrollbar-thumb { background: rgba(220,38,38,0.3); border-radius: 2px; }

.cp-sidebar-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 2px solid #0d0d0d;
    margin-bottom: 8px;
}

.cp-sidebar-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    color: #DC2626;
}

.cp-sidebar-label {
    font-family: 'Inter', sans-serif;
    font-weight: 900;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cp-nav-block {
    border-bottom: 1px solid rgba(0,0,0,0.12);
}

.cp-nav-hd {
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 0;
    text-align: left;
    transition: all 0.2s ease;
}

.cp-nav-num {
    font-family: 'Bangers', cursive;
    font-size: 13px;
    color: #888;
    letter-spacing: 0.05em;
    min-width: 20px;
}

.cp-nav-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    color: #ccc;
    transition: color 0.2s ease;
    line-height: 1;
}

.cp-nav-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cp-nav-name {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cp-nav-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 10px;
    color: #888;
    margin-top: 1px;
}

.cp-nav-arrow {
    font-size: 16px;
    color: #888;
    transition: transform 0.2s ease;
}

.cp-nav-block.is-active .cp-nav-hd {
    border-left: 3px solid #DC2626;
    padding-left: 10px;
}

.cp-nav-block.is-active .cp-nav-kanji {
    color: #DC2626;
}

.cp-nav-block.is-active .cp-nav-arrow {
    transform: rotate(90deg);
    color: #DC2626;
}

.cp-nav-block.is-active .cp-nav-num {
    color: #DC2626;
}

.cp-sub-list {
    display: none;
    list-style: none;
    padding: 0 0 12px 33px;
    margin: 0;
}

.cp-nav-block.is-active .cp-sub-list {
    display: block;
}

.cp-sub-list li {
    padding: 0;
}

.cp-sub-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    padding: 6px 0;
    width: 100%;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.03em;
    transition: color 0.15s ease;
}
.cp-sub-btn:hover {
    color: #0d0d0d;
}

.cp-sub-btn.is-active {
    color: #DC2626;
    font-weight: 700;
}

.cp-cnt {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 700;
    color: #888;
    min-width: 18px;
    text-align: right;
}

/* ---- Pills bar ---- */
.cp-pills-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 24px;
    background: none;
}

.cp-pill {
    background: none;
    border: 1.5px solid rgba(0,0,0,0.2);
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 14px;
    color: #555;
    transition: all 0.15s ease;
}
.cp-pill:hover {
    border-color: #DC2626;
    color: #DC2626;
}

.cp-pill.is-active {
    background: #DC2626;
    border-color: #DC2626;
    color: white;
}

.cp-pill-cnt {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.75;
}

/* ---- Main content area ---- */
.cp-main {
    flex: 1;
    min-width: 0;
}

.cp-content-hd {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-bottom: 20px;
    border-bottom: 2px solid #0d0d0d;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}

.cp-content-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 11px;
    color: #DC2626;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.cp-content-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(32px, 5vw, 52px);
    letter-spacing: 0.02em;
    line-height: 1;
}

.cp-sub-active-label {
    font-size: 0.65em;
    color: #888;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0;
}

.cp-result-count {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #888;
}

.cp-sort {
    background: #f5f0e8;
    border: 2px solid #0d0d0d;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    cursor: pointer;
    text-transform: uppercase;
}

/* ---- Product grid ---- */
.cp-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ---- Catalog product cards ---- */
.cp-card {
    background: #0d0d0d;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.25s ease;
}
.cp-card:hover {
    border-color: #DC2626;
    transform: translateY(-4px);
}

.cp-card--oos {
    opacity: 0.55;
}

.cp-card-img-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
}

.cp-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cp-card:hover .cp-card-img {
    transform: scale(1.05);
}

.cp-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(220,38,38,0.85), transparent);
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 16px;
}
.cp-card:hover .cp-card-overlay {
    opacity: 1;
}

.cp-card-overlay span {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: white;
}

.cp-card-body {
    padding: 12px;
    border-top: 2px solid rgba(255,255,255,0.06);
}

.cp-card-store {
    font-family: 'Bangers', cursive;
    font-size: 10px;
    letter-spacing: 0.15em;
    color: #DC2626;
    margin-bottom: 4px;
}

.cp-card-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 12px;
    color: #f5f0e8;
    line-height: 1.3;
    margin-bottom: 2px;
}

.cp-card-vol {
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    color: rgba(245,240,232,0.5);
    margin-bottom: 4px;
    line-height: 1.3;
}

.cp-card-price {
    font-family: 'Bangers', cursive;
    font-size: 16px;
    color: #FBBF24;
    letter-spacing: 0.03em;
}

/* ---- Skeleton loading ---- */
/* translateX shimmer — compositor-only, no repaint */
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX( 200%); }
}
.cp-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.cp-skeleton-card {
    background: #111;
    border-radius: 6px;
    overflow: hidden;
}
.cp-skeleton-img,
.cp-skeleton-line {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
}
.cp-skeleton-img::after,
.cp-skeleton-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, #2e2e2e 50%, transparent 100%);
    animation: shimmer 1.4s infinite linear;
    will-change: transform;
}
.cp-skeleton-img {
    width: 100%;
    aspect-ratio: 3/4;
}
.cp-skeleton-body {
    padding: 10px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cp-skeleton-line {
    height: 11px;
    border-radius: 4px;
}
.cp-skeleton-line.short { width: 55%; }
.cp-skeleton-line.xshort { width: 35%; margin-top: 4px; }

/* ---- Empty state ---- */
.cp-empty {
    text-align: center;
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.cp-empty-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 120px;
    color: #ddd;
    line-height: 1;
    margin-bottom: 8px;
}

.cp-empty-title {
    font-family: 'Bangers', cursive;
    font-size: 28px;
    letter-spacing: 0.04em;
    color: #0d0d0d;
}

.cp-empty-msg {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.7;
}

/* ---- Price disclaimer ---- */
.cp-disclaimer {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 18px;
    margin: 0 0 20px;
    background: rgba(220,38,38,.10);
    border: 1px solid rgba(220,38,38,.35);
    border-left: 3px solid #DC2626;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(245,240,232,.8);
    line-height: 1.5;
}
.cp-disclaimer svg { color: #DC2626; flex-shrink: 0; }
.cp-disclaimer strong { color: #f5f0e8; font-weight: 700; }

/* ---- Pagination ---- */
.cp-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 32px 0 8px;
}
.cp-pag-info {
    font-size: 12px;
    color: #666;
    font-family: 'Inter', sans-serif;
}
.cp-pag-btns {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
}
.cp-pag-btn {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #2a2a2a;
    background: #141414;
    color: #aaa;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.cp-pag-btn:hover:not(:disabled) {
    background: #1e1e1e;
    border-color: #444;
    color: #f5f0e8;
}
.cp-pag-btn.is-active {
    background: #DC2626;
    border-color: #DC2626;
    color: #fff;
    font-weight: 700;
}
.cp-pag-btn:disabled {
    opacity: .3;
    cursor: default;
}
.cp-pag-num {
    min-width: 36px;
    padding: 7px 8px;
    text-align: center;
}
.cp-pag-ellipsis {
    color: #555;
    font-size: 13px;
    padding: 0 4px;
}

/* ---- Stagger fade-in animation ---- */
@keyframes cpCardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cp-card {
    animation: cpCardIn 0.35s ease both;
}

/* ---- Catalog responsive breakpoints ---- */
@media (max-width: 1100px) {
    .cp-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .cp-sidebar {
        display: none;
    }
    .cp-mob-tabs {
        display: flex;
    }
    .cp-wrap {
        flex-direction: column;
        padding: 0 0 48px;
    }
    .cp-main {
        width: 100%;
    }
    .cp-content-hd {
        padding: 16px 20px;
        border-bottom-width: 2px;
        margin-bottom: 0;
    }
    .cp-pills-bar {
        padding: 16px 20px;
        background: rgba(245,240,232,0.5);
    }
    .cp-main .cp-grid {
        padding: 16px 20px;
    }
    .cp-hero-inner {
        padding: 0 20px;
    }
    .cp-hero-bg-kanji {
        font-size: 100px;
        right: 5%;
    }
}

@media (max-width: 768px) {
    .cp-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .cp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}


/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
    position: fixed;
    top: calc(var(--nav-h) + 16px);
    right: 20px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: 380px;
    width: calc(100vw - 40px);
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #111;
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: #f5f0e8;
    pointer-events: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.55), 0 2px 8px rgba(0,0,0,0.3);
    animation: toastSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    border-left: 3px solid rgba(255,255,255,0.15);
    letter-spacing: 0.02em;
    line-height: 1.4;
}

.toast.toast--exit {
    animation: toastSlideOut 0.28s ease forwards;
}

.toast--success { border-left-color: #22c55e; }
.toast--error   { border-left-color: #DC2626; }
.toast--info    { border-left-color: #3b82f6; }
.toast--warn    { border-left-color: #f59e0b; }

.toast-icon {
    font-size: 17px;
    flex-shrink: 0;
    line-height: 1;
}

@keyframes toastSlideIn {
    from { transform: translateX(calc(100% + 24px)); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}
@keyframes toastSlideOut {
    from { transform: translateX(0); opacity: 1; max-height: 80px; margin-bottom: 0; }
    to   { transform: translateX(calc(100% + 24px)); opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; }
}


/* ============================================================
   SEZIONE TAVOLI
   ============================================================ */
.tavoli-section {
    position: relative;
    overflow: hidden;
}

.tavoli-bg-kanji {
    position: absolute;
    top: 50%;
    right: -30px;
    transform: translateY(-50%);
    font-family: var(--font-jp);
    font-size: clamp(200px, 26vw, 360px);
    font-weight: 900;
    color: rgba(255,255,255,0.018);
    pointer-events: none;
    user-select: none;
    line-height: 1;
}

/* Titolo sezione in dark mode */
.tavoli-section .section-title {
    color: #f5f0e8;
}
.tavoli-section .section-label {
    color: rgba(220,38,38,0.8);
}

/* ——— Auth card ——— */
.tavoli-auth-card {
    max-width: 420px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(220,38,38,0.2);
    border-radius: 6px;
}

.tavoli-auth-head {
    text-align: center;
    margin-bottom: 28px;
}

.tavoli-auth-sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 10px;
}

.tavoli-auth-logo {
    font-family: var(--font-comic);
    font-size: 32px;
    color: #f5f0e8;
    letter-spacing: 0.06em;
}

.tavoli-auth-logo-dot {
    color: var(--red);
}

.tavoli-auth-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Override form-input for dark section */
.tavoli-auth-card .form-input,
.tav-modal-box .form-input {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    color: #f5f0e8;
    border-radius: 3px;
    font-size: 14px;
}

.tavoli-auth-card .form-input::placeholder,
.tav-modal-box .form-input::placeholder {
    color: rgba(255,255,255,0.25);
}

.tavoli-auth-card .form-input:focus,
.tav-modal-box .form-input:focus {
    border-color: var(--red);
    outline: none;
    background: rgba(255,255,255,0.08);
}

.tavoli-auth-toggle {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 4px 0;
    transition: color var(--t);
    text-align: center;
}

.tavoli-auth-toggle:hover {
    color: var(--red);
}

/* ——— App container ——— */
.tavoli-app-inner {
    max-width: 900px;
    margin: 0 auto;
}

/* ——— User bar ——— */
.tavoli-user-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 4px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.tavoli-user-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
}

.tavoli-stats {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tav-stat {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 5px 13px;
    border-radius: 30px;
}

.tav-stat::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.tav-stat--libero {
    background: rgba(34,197,94,0.1);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.2);
}

.tav-stat--libero::before { background: #22c55e; box-shadow: 0 0 6px #22c55e; }

.tav-stat--occupato {
    background: rgba(220,38,38,0.1);
    color: var(--red);
    border: 1px solid rgba(220,38,38,0.2);
}

.tav-stat--occupato::before { background: var(--red); box-shadow: 0 0 6px var(--red); }

.tav-logout-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.35);
    font-family: var(--font-body);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 3px;
    cursor: pointer;
    transition: all var(--t);
}

.tav-logout-btn:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ——— Tabs ——— */
.tavoli-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 28px;
}

.tav-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 22px 13px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all var(--t);
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tav-tab:hover { color: rgba(255,255,255,0.65); }

.tav-tab.active {
    color: #f5f0e8;
    border-bottom-color: var(--red);
}

.tav-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 18px;
    padding: 0 6px;
    background: var(--red);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 10px;
    line-height: 1;
}

/* ——— Table grid ——— */
.tavoli-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

/* ——— Table card ——— */
.tavolo-card {
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.07);
    padding: 18px 12px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.25s ease;
    background: rgba(255,255,255,0.03);
    min-height: 165px;
    justify-content: space-between;
}

.tavolo-card--libero {
    cursor: pointer;
}

.tavolo-card--libero:hover {
    border-color: rgba(34,197,94,0.4);
    background: rgba(34,197,94,0.05);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(34,197,94,0.12), 0 0 0 1px rgba(34,197,94,0.15);
}

.tavolo-card--occupato {
    border-color: rgba(220,38,38,0.25);
    background: rgba(220,38,38,0.04);
}

/* Icona tavolo top-view */
.tavolo-shape {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.chair-row {
    display: flex;
    gap: 14px;
    justify-content: center;
}

.chair {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    transition: background 0.25s, box-shadow 0.25s;
}

.tavolo-card--libero:hover .chair {
    background: rgba(34,197,94,0.5);
    box-shadow: 0 0 6px rgba(34,197,94,0.4);
}

.tavolo-card--occupato .chair {
    background: rgba(220,38,38,0.35);
}

.tavolo-top {
    width: 68px;
    height: 44px;
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s;
    position: relative;
}

.tavolo-card--libero:hover .tavolo-top {
    background: rgba(34,197,94,0.1);
    border-color: rgba(34,197,94,0.3);
}

.tavolo-card--occupato .tavolo-top {
    background: rgba(220,38,38,0.1);
    border-color: rgba(220,38,38,0.3);
}

.tavolo-num {
    font-family: var(--font-comic);
    font-size: 24px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.4);
    line-height: 1;
    transition: color 0.25s;
}

.tavolo-card--libero:hover .tavolo-num {
    color: #22c55e;
}

.tavolo-card--occupato .tavolo-num {
    color: var(--red);
}

/* Status badge piccolo */
.tavolo-status-badge {
    position: absolute;
    top: -9px;
    right: -9px;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 10px;
}

.badge--libero {
    background: rgba(34,197,94,0.15);
    color: #22c55e;
    border: 1px solid rgba(34,197,94,0.3);
}

.badge--occupato {
    background: rgba(220,38,38,0.2);
    color: var(--red);
    border: 1px solid rgba(220,38,38,0.4);
}

/* Info sotto il tavolo */
.tavolo-info {
    text-align: center;
    width: 100%;
}

.tavolo-guest-name {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: 0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.tavolo-guest-time {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
}

.tavolo-cta {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.2);
    transition: color 0.25s;
}

.tavolo-card--libero:hover .tavolo-cta {
    color: #4ade80;
}

/* ——— Lista prenotazioni ——— */
.tav-lista-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.tav-pren-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-left: 3px solid var(--red);
    border-radius: 4px;
    transition: background var(--t);
}

.tav-pren-item:hover {
    background: rgba(255,255,255,0.05);
}

.tav-pren-main {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.tav-pren-table {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--red);
}

.tav-pren-name {
    font-size: 17px;
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: 0.02em;
}

.tav-pren-time {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.35);
}

.tav-cancel-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 4px;
    border: 1px solid rgba(220,38,38,0.25);
    background: rgba(220,38,38,0.08);
    color: var(--red);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--t);
    font-weight: 700;
}

.tav-cancel-btn:hover {
    background: var(--red);
    color: #fff;
    transform: scale(1.05);
}

.tav-empty-msg {
    text-align: center;
    padding: 60px 0;
    color: rgba(255,255,255,0.18);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-transform: uppercase;
}

/* ——— Modal prenotazione ——— */
.tav-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: rgba(0,0,0,0.82);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.tav-modal-box {
    width: 100%;
    max-width: 390px;
    background: #0f0f0f;
    border: 1px solid rgba(220,38,38,0.22);
    border-radius: 8px;
    overflow: hidden;
    animation: tavModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes tavModalIn {
    from { transform: scale(0.88) translateY(20px); opacity: 0; }
    to   { transform: scale(1) translateY(0); opacity: 1; }
}

.tav-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 22px 24px 18px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: rgba(220,38,38,0.05);
}

.tav-modal-sub {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.45em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 5px;
}

.tav-modal-title-text {
    font-family: var(--font-comic);
    font-size: 28px;
    color: #f5f0e8;
    letter-spacing: 0.05em;
    line-height: 1;
}

.tav-modal-close {
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 16px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    margin-top: 4px;
    transition: color var(--t);
    border-radius: 2px;
}

.tav-modal-close:hover {
    color: var(--red);
}

.tav-modal-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tav-modal-body .form-label {
    color: rgba(255,255,255,0.45);
    font-size: 10px;
    letter-spacing: 0.2em;
}

.tav-modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.tav-modal-actions .btn {
    flex: 1;
    justify-content: center;
}

/* Ghost button for dark backgrounds */
.btn-ghost-white {
    background: none !important;
    border: 2px solid rgba(255,255,255,0.12) !important;
    color: rgba(255,255,255,0.45) !important;
    clip-path: none !important;
    border-radius: 3px !important;
    transition: all var(--t) !important;
}

.btn-ghost-white:hover {
    border-color: rgba(255,255,255,0.3) !important;
    color: #f5f0e8 !important;
}

/* ——— Responsive ——— */
@media (max-width: 640px) {
    .tavoli-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .tavoli-user-bar {
        gap: 10px;
        padding: 12px 16px;
    }

    .tavolo-card {
        min-height: 145px;
        padding: 14px 10px 12px;
    }

    .tav-tab {
        padding: 10px 14px 13px;
        font-size: 10px;
    }
}

@media (max-width: 400px) {
    .tavoli-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tavoli-stats {
        gap: 6px;
    }
}

/* ============================================================
   RECENSIONI — sezione fiori di loto
   ============================================================ */

/* Header titolo + bottone */
.reviews-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}
.reviews-header .section-title { margin-bottom: 0; }

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

/* Skeleton loader */
.review-skeleton {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
    height: 200px;
    animation: rv-skeleton 1.6s ease infinite;
}
@keyframes rv-skeleton {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

/* Review modal — sfondo scuro per visibilità stelle */
#review-modal .modal-box {
    background: #111;
    border-color: rgba(244,114,182,.25);
    color: #f5f0e8;
}
#review-modal .modal-head {
    background: rgba(244,114,182,.07);
    border-bottom-color: rgba(255,255,255,.08);
}
#review-modal .modal-head-title { color: #f5f0e8; }
#review-modal .btn-modal-close {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.55);
}
#review-modal .btn-modal-close:hover { background: var(--red); color: #fff; border-color: var(--red); }
#review-modal .form-label { color: rgba(255,255,255,.55); }
#review-modal .form-input {
    background: rgba(255,255,255,.06);
    border: 2px solid rgba(255,255,255,.12);
    color: #f5f0e8;
}
#review-modal .form-input::placeholder { color: rgba(255,255,255,.22); }
#review-modal .form-input:focus { border-color: #F472B6; background: rgba(244,114,182,.06); }

/* Form recensione nel modal */
.review-form-inner { display: flex; flex-direction: column; gap: 20px; }

/* Stelle interattive nel form */
.rv-stars {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
}
.rv-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 36px;
    line-height: 1;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(220,38,38,0.25);
    transition: color .15s, transform .15s, opacity .15s;
}
.rv-star-btn:hover { transform: scale(1.2); }

.rv-star-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255,255,255,.4);
    margin-top: 6px;
    letter-spacing: .04em;
    min-height: 18px;
    transition: color .2s;
}

.rv-charcount {
    font-size: 11px;
    color: rgba(255,255,255,.28);
    text-align: right;
    margin-top: 4px;
    display: block;
}

.rv-error {
    font-size: 13px;
    font-weight: 600;
    color: #f87171;
    background: rgba(220,38,38,.08);
    border: 1px solid rgba(220,38,38,.2);
    border-radius: 6px;
    padding: 10px 14px;
}

.review-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 16px;
    padding: 28px 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: border-color .25s, transform .25s;
    position: relative;
    overflow: hidden;
}
.review-card::before {
    content: '口';
    position: absolute;
    top: -10px; right: 10px;
    font-family: 'Noto Serif JP', serif;
    font-size: 80px;
    color: rgba(244,114,182,0.04);
    pointer-events: none;
    line-height: 1;
}
.review-card:hover {
    border-color: rgba(244,114,182,0.22);
    transform: translateY(-3px);
}

.review-lotus {
    display: flex;
    gap: 5px;
    align-items: center;
}

.lotus-star {
    width: 22px;
    height: 22px;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    filter: drop-shadow(0 0 4px rgba(244,114,182,0.45));
    transition: transform .2s;
}
.lotus-star--dim {
    opacity: 0.25;
    filter: none;
}
.lotus-star--lg {
    width: 32px;
    height: 32px;
    font-size: 32px;
    filter: drop-shadow(0 0 8px rgba(244,114,182,0.6));
}

.review-text {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,0.7);
    font-style: italic;
    flex: 1;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #f472b6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    flex-shrink: 0;
    letter-spacing: -.02em;
}

.review-name {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,0.9);
    letter-spacing: .02em;
}

.review-sub {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    margin-top: 2px;
    letter-spacing: .04em;
}

.reviews-footer {
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.reviews-score {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(244,114,182,0.06);
    border: 1px solid rgba(244,114,182,0.14);
    border-radius: 50px;
    padding: 10px 24px;
}

.reviews-score-num {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -.04em;
    color: #fff;
}

.reviews-score-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    letter-spacing: .04em;
}

@media (max-width: 768px) {
    .reviews-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .review-card {
        padding: 22px 20px 20px;
    }
}

/* ============================================================
   MOBILE — MIGLIORAMENTI COMPLETI
   ============================================================ */

/* ---- Loading screen: overflow e centratura su mobile ---- */
@media (max-width: 480px) {
    .loader-wrap {
        padding: 24px 16px;
        width: 100%;
    }
    .loader-sub {
        letter-spacing: 0.12em;
        font-size: 10px;
        padding: 0 8px;
        word-break: break-word;
    }
    .loader-logo {
        justify-content: center;
    }
    .loader-logo {
        font-size: clamp(54px, 15vw, 100px);
    }
}

/* ---- Nav inner padding su telefoni ---- */
@media (max-width: 480px) {
    .nav-inner {
        padding: 0 16px;
    }
    .nav-logo {
        font-size: 26px;
    }
}

/* ---- Hero su schermi molto piccoli (<380px) ---- */
@media (max-width: 380px) {
    .hero-tag {
        letter-spacing: 0.18em;
        padding: 6px 12px;
        font-size: 9px;
    }
    .hero-title {
        font-size: clamp(46px, 18vw, 80px);
    }
    .hero-title .stroke {
        -webkit-text-stroke: 1.5px var(--white);
    }
    .hero-divider span {
        letter-spacing: 0.12em;
        font-size: 10px;
    }
}

/* ---- Section padding ridotto su mobile ---- */
@media (max-width: 480px) {
    .section {
        padding: 52px 16px;
    }
}

/* ---- Carousel migliorato su mobile ---- */
@media (max-width: 520px) {
    .carousel-nav-row {
        gap: 6px;
    }
    .carousel-btn {
        width: 32px;
        font-size: 13px;
    }
    .carousel-viewport::before,
    .carousel-viewport::after {
        width: 16px;
    }
}

/* ---- Modal come bottom-sheet su mobile ---- */
@media (max-width: 640px) {
    .modal-wrap {
        padding: 0;
        align-items: flex-end;
    }
    .modal-box {
        max-width: 100%;
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        position: relative;
    }
    /* Drag handle visivo */
    .modal-box::before {
        content: '';
        display: block;
        width: 36px;
        height: 4px;
        background: rgba(255,255,255,0.18);
        border-radius: 2px;
        position: absolute;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 3;
    }
    .modal-head {
        padding: 22px 20px 16px;
    }
    .modal-head-title {
        font-size: 20px;
    }
    .modal-body {
        padding: 20px 16px 40px;
    }
}

/* ---- Recensioni: header stacked su mobile ---- */
@media (max-width: 560px) {
    .reviews-header {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-bottom: 28px;
    }
    .reviews-header .btn {
        width: 100%;
        justify-content: center;
    }
    .reviews-grid {
        gap: 12px;
    }
}

/* ---- Stelle recensione su schermi piccoli ---- */
@media (max-width: 380px) {
    .rv-star-btn {
        font-size: 26px;
        padding: 1px;
    }
    .rv-stars {
        gap: 4px;
    }
}

/* ---- Score medio reviews footer mobile ---- */
@media (max-width: 480px) {
    .reviews-score {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 8px;
        padding: 12px 20px;
    }
}

/* ---- Sezione contatti ---- */
@media (max-width: 480px) {
    .contact-form-head {
        padding: 14px 16px;
    }
    .contact-form-body {
        padding: 20px 16px;
    }
    #contatti .section-title {
        font-size: clamp(30px, 10vw, 52px);
    }
    .contact-hanko {
        display: none;
    }
}

/* ---- Footer compatto su mobile ---- */
@media (max-width: 480px) {
    .footer-inner {
        padding: 40px 16px 28px;
    }
    .footer-logo {
        font-size: 36px;
    }
    .footer-top-bar {
        padding: 10px 16px;
    }
    .footer-tagline {
        font-size: 12px;
        line-height: 1.7;
    }
    .footer-bottom-right {
        flex-direction: column;
        gap: 4px;
        text-align: center;
        align-items: center;
    }
}

/* ---- Instagram strip ---- */
@media (max-width: 480px) {
    #ig-strip {
        padding: 40px 16px;
    }
}

/* ---- Prodotto detail modal su mobile ---- */
@media (max-width: 480px) {
    .pd-title {
        font-size: clamp(22px, 7vw, 36px);
    }
    .pd-price {
        font-size: 32px;
    }
    .pd-desc-block {
        padding: 18px 16px;
    }
    .pd-grid {
        gap: 16px;
    }
}

/* ---- Catalog page su mobile ---- */
@media (max-width: 480px) {
    .cp-hero {
        padding: 52px 0 40px;
    }
    .cp-hero-inner {
        padding: 0 16px;
    }
    .cp-hero-title {
        font-size: clamp(36px, 11vw, 68px);
    }
    .cp-main .cp-grid {
        padding: 12px 16px;
        gap: 10px;
    }
    .cp-pills-bar {
        padding: 12px 16px;
        gap: 6px;
    }
    .cp-content-hd {
        padding: 14px 16px;
    }
}

/* ---- Grid 1 colonna su telefoni molto piccoli ---- */
@media (max-width: 360px) {
    .cp-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
}

/* ---- Toast notifications su mobile ---- */
@media (max-width: 480px) {
    .toast-container {
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* ---- Lotus float su schermi molto piccoli ---- */
@media (max-width: 380px) {
    .lotus-float {
        right: 10px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }
    .lotus-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ---- Sezione eventi su mobile ---- */
@media (max-width: 480px) {
    .event-title {
        font-size: clamp(18px, 5vw, 26px);
    }
    .event-body {
        padding: 16px;
    }
    .event-meta {
        gap: 10px;
        flex-wrap: wrap;
        font-size: 12px;
    }
}

/* ============================================================
   CATALOG SECTION — intro + CTA row
   ============================================================ */
.catalog-intro {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    text-align: center;
    margin: -8px 0 36px;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

.catalog-cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 52px;
}

.catalog-cta-btn {
    clip-path: none !important;
    border-radius: 0 !important;
    padding: 16px 44px !important;
    font-size: 13px !important;
    letter-spacing: 0.18em !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.catalog-cta-hint {
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.06em;
}

/* ============================================================
   FOOTER — nuove classi post-pulizia
   ============================================================ */
.footer-nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 20px;
}
.footer-nav-links a {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav-links a:hover { color: #F472B6; }

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.footer-bottom-link {
    color: rgba(245,240,232,0.35);
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    transition: color 0.2s;
}
.footer-bottom-link:hover { color: #F472B6; }
.footer-cookie-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
}
.footer-bottom-sep {
    color: rgba(255,255,255,0.12);
    font-size: 12px;
}

@media (max-width: 480px) {
    .catalog-cta-btn { padding: 14px 28px !important; }
    .footer-bottom-links { flex-direction: column; gap: 4px; }
}

/* ============================================================
   CATALOG PAGE — inline search (nella riga header)
   ============================================================ */
.cp-hd-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cp-search-inline {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f0e8;
    border: 2px solid #0d0d0d;
    padding: 0 10px;
    color: #555;
    transition: border-color 0.2s;
}
.cp-search-inline:focus-within {
    border-color: #DC2626;
    color: #0d0d0d;
}

.cp-search-input-inline {
    background: none;
    border: none;
    outline: none;
    color: #0d0d0d;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    padding: 7px 0;
    width: 150px;
    transition: width 0.25s;
}
.cp-search-input-inline:focus { width: 210px; }
.cp-search-input-inline::placeholder { color: #999; font-weight: 500; }
.cp-search-input-inline::-webkit-search-cancel-button { display: none; }

.cp-search-clear {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 12px;
    padding: 2px 0;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}
.cp-search-clear:hover { color: #DC2626; }

.cp-search-scope {
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(220,38,38,0.7);
}

@media (max-width: 640px) {
    .cp-hd-right { width: 100%; }
    .cp-search-input-inline { width: 120px; }
    .cp-search-input-inline:focus { width: 160px; }
}

/* ============================================================
   EVENTI — bottone link iscrizione
   ============================================================ */
.event-link-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 20px;
    background: var(--red, #DC2626);
    color: #fff;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background 0.2s, transform 0.15s;
}
.event-link-btn:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

/* Nasconde kanji categoria nel titolo catalogo */
.cp-content-jp { display: none; }

/* ============================================================
   GESTIONALE — badge checkbox pills
   ============================================================ */
.badge-check-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}
.badge-check {
    cursor: pointer;
    user-select: none;
}
.badge-check input { display: none; }
.badge-check span {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.4);
    transition: all 0.15s;
}
.badge-check:hover span {
    border-color: rgba(255,255,255,0.35);
    color: rgba(255,255,255,0.7);
}
.badge-check[data-badge="NOVITÀ"] input:checked + span   { background: #16a34a; border-color: #16a34a; color: #fff; }
.badge-check[data-badge="HOT"] input:checked + span       { background: #dc2626; border-color: #dc2626; color: #fff; }
.badge-check[data-badge="PREORDINA"] input:checked + span { background: #7c3aed; border-color: #7c3aed; color: #fff; }
.badge-check[data-badge="IN ARRIVO"] input:checked + span { background: #d97706; border-color: #d97706; color: #fff; }
.badge-check[data-badge="OUT OF STOCK"] input:checked + span { background: #374151; border-color: #374151; color: #9ca3af; }
.badge-check[data-badge="ESAURITO"] input:checked + span  { background: #1f2937; border-color: #374151; color: #6b7280; }

.form-hint {
    font-size: 10px;
    font-weight: 400;
    color: var(--muted);
    margin-left: 6px;
    font-style: italic;
    letter-spacing: 0;
    text-transform: none;
}

.badges-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

/* ============================================================
   EVENTI — Tab system (Competizioni / Eventi / Community)
   ============================================================ */

.ev-tabs {
    display: flex;
    border-bottom: 2px solid #0d0d0d;
    margin-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: 40px;
}
.ev-tabs::-webkit-scrollbar { display: none; }

.ev-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 14px 28px;
    background: none;
    border: none;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    position: relative;
}
.ev-tab:hover { color: #0d0d0d; }
.ev-tab.is-active { color: #0d0d0d; border-bottom-color: #DC2626; }
.ev-tab.is-active[data-type="community"] { border-bottom-color: #8B5CF6; }
.ev-tab svg { flex-shrink: 0; }

/* ---- Competition cards ---- */
.event-row--comp { cursor: pointer; }
.event-row--comp:hover { background: #0d0d0d; }

.ev-comp-hd {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.ev-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 20px;
}
.ev-status--in-arrivo  { background: rgba(251,191,36,0.12); color: #D97706; border: 1px solid rgba(251,191,36,0.3); }
.ev-status--in-corso   { background: rgba(34,197,94,0.12);  color: #16A34A; border: 1px solid rgba(34,197,94,0.3); }
.ev-status--in-corso::before {
    content: '';
    width: 6px; height: 6px;
    background: #16A34A; border-radius: 50%;
    animation: ev-pulse 1.5s infinite;
    flex-shrink: 0;
}
@keyframes ev-pulse { 0%,100% { opacity:1; } 50% { opacity:.3; } }
.ev-status--completato { background: rgba(148,163,184,0.12); color: #94A3B8; border: 1px solid rgba(148,163,184,0.3); }

/* TCG badge inside date box */
.ev-tcg-badge {
    margin-top: 10px;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    white-space: nowrap;
}
.ev-tcg--onepiece   { background: rgba(220,38,38,0.18); color: #DC2626; }
.ev-tcg--pokemon    { background: rgba(234,179,8,0.18);  color: #B45309; }
.ev-tcg--yugioh     { background: rgba(168,85,247,0.18); color: #9333EA; }
.ev-tcg--magic      { background: rgba(59,130,246,0.18); color: #2563EB; }
.ev-tcg--dragonball { background: rgba(249,115,22,0.18); color: #EA580C; }
.ev-tcg--naruto     { background: rgba(251,146,60,0.18); color: #C2410C; }
.ev-tcg--altri      { background: rgba(148,163,184,0.18); color: #64748B; }

.ev-comp-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.ev-ranking-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(220,38,38,0.07);
    border: 1px solid rgba(220,38,38,0.28);
    color: #DC2626;
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    transition: all 0.2s;
}
.ev-ranking-btn:hover { background: #DC2626; color: #fff; transform: translateY(-1px); }
.ev-ranking-btn--live { background: rgba(34,197,94,0.07); border-color: rgba(34,197,94,0.28); color: #16A34A; }
.ev-ranking-btn--live:hover { background: #16A34A; color: #fff; }

/* Community tag tint */
.event-tag--community { color: #8B5CF6; border-color: rgba(139,92,246,0.35); background: rgba(139,92,246,0.07); }

/* ============================================================
   TORNEO PAGE — Hero, Info, Ranking table
   ============================================================ */

.torneo-hero {
    background: #0d0d0d;
    color: #f5f0e8;
    padding: calc(var(--nav-h) + 64px) 24px 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.torneo-hero-rays {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(220,38,38,0.2) 0%, transparent 65%);
    pointer-events: none;
}
.torneo-tcg-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 18px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    border-radius: 20px;
    margin-bottom: 20px;
}
.torneo-hero-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(34px, 7vw, 68px);
    letter-spacing: 0.03em;
    line-height: 1;
    margin-bottom: 16px;
}
.torneo-hero-meta {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    color: rgba(245,240,232,0.5);
    font-size: 13px;
    font-weight: 600;
}
.torneo-hero-meta-item { display: flex; align-items: center; gap: 6px; }

.torneo-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: 20px;
}
.torneo-status--in-arrivo  { background: rgba(251,191,36,0.15); color: #D97706; }
.torneo-status--in-corso   { background: rgba(34,197,94,0.15);  color: #16A34A; }
.torneo-status--completato { background: rgba(148,163,184,0.15); color: #94A3B8; }

/* Info cards */
.torneo-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.torneo-info-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 16px;
    margin-bottom: 48px;
}
.torneo-info-card {
    background: #f5f0e8;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 24px 16px;
    text-align: center;
}
.torneo-info-val {
    font-family: 'Bangers', cursive;
    font-size: 38px;
    letter-spacing: 0.03em;
    color: #DC2626;
    line-height: 1;
    margin-bottom: 6px;
}
.torneo-info-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #888;
}

/* Ranking section */
.torneo-ranking-hd {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 2px solid #0d0d0d;
}
.torneo-ranking-title {
    font-family: 'Bangers', cursive;
    font-size: 30px;
    letter-spacing: 0.04em;
}

.torneo-table { width: 100%; border-collapse: collapse; font-family: 'Inter', sans-serif; }
.torneo-table thead th {
    font-size: 9px; font-weight: 800; letter-spacing: 0.18em;
    text-transform: uppercase; color: #888;
    padding: 10px 16px; text-align: left;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}
.torneo-table thead th:not(:first-child):not(:nth-child(2)) { text-align: center; }
.torneo-table tbody tr { border-bottom: 1px solid rgba(0,0,0,0.07); transition: background 0.15s; }
.torneo-table tbody tr:hover  { background: rgba(0,0,0,0.03); }
.torneo-table tbody tr:last-child { border-bottom: none; }
.torneo-table tbody td { padding: 14px 16px; font-size: 14px; }
.torneo-table tbody td:not(:first-child):not(:nth-child(2)) { text-align: center; color: #666; font-weight: 600; }

.trn-rank { font-family: 'Bangers', cursive; font-size: 22px; color: #ccc; width: 44px; }
.trn-rank--1 { color: #F59E0B; }
.trn-rank--2 { color: #94A3B8; }
.trn-rank--3 { color: #B45309; }
.trn-name { font-weight: 700; }
.trn-pts  { font-weight: 900 !important; font-size: 16px !important; color: #DC2626 !important; }

.trn-empty {
    text-align: center; padding: 60px 24px;
    color: #888; font-size: 14px;
    font-weight: 600; letter-spacing: 0.05em;
}

.torneo-reg-box {
    background: #0d0d0d; color: #f5f0e8;
    border-radius: 8px; padding: 32px;
    text-align: center; margin-top: 40px;
}
.torneo-reg-title { font-family: 'Bangers', cursive; font-size: 26px; letter-spacing: 0.04em; margin-bottom: 8px; }
.torneo-reg-sub   { font-size: 13px; color: rgba(245,240,232,0.5); margin-bottom: 20px; }

@media (max-width: 600px) {
    .torneo-table thead th:nth-child(4),
    .torneo-table thead th:nth-child(5),
    .torneo-table thead th:nth-child(4),
    .torneo-table thead th:nth-child(5),
    .torneo-table tbody td:nth-child(4),
    .torneo-table tbody td:nth-child(5) { display: none; }
    .torneo-wrap { padding: 28px 16px 60px; }
}

/* ============================================================
   DECK LIST MODAL (torneo.html)
   ============================================================ */

.trn-deck-btn {
    background: none; border: none; cursor: pointer;
    font-size: 15px; padding: 2px 5px;
    border-radius: 4px; transition: background 0.15s;
    opacity: 0.55; vertical-align: middle; margin-left: 6px;
}
.trn-deck-btn:hover { background: rgba(0,0,0,0.08); opacity: 1; }

#trn-deck-modal {
    display: none; position: fixed; inset: 0;
    background: rgba(13,13,13,0.7);
    z-index: 9000; align-items: center; justify-content: center;
    padding: 20px;
}
#trn-deck-modal.is-open { display: flex; }

.trn-deck-modal-inner {
    background: #f5f0e8;
    border-radius: 12px; padding: 24px 24px 20px;
    max-width: 720px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    position: relative;
}
.trn-deck-modal-close {
    position: absolute; top: 14px; right: 16px;
    background: none; border: none;
    font-size: 20px; cursor: pointer;
    color: #888; line-height: 1; padding: 4px;
}
.trn-deck-modal-close:hover { color: #0d0d0d; }
.trn-deck-modal-name {
    font-family: 'Bangers', cursive;
    font-size: 26px; letter-spacing: 0.03em;
    color: #0d0d0d; margin-bottom: 2px; padding-right: 32px;
}
.trn-deck-modal-sub {
    font-size: 9px; font-weight: 800; letter-spacing: 0.18em;
    text-transform: uppercase; color: #888; margin-bottom: 6px;
}
.trn-deck-modal-count {
    font-size: 11px; font-weight: 700; color: #DC2626;
    letter-spacing: 0.06em; margin-bottom: 18px;
}

/* Card grid */
.trn-deck-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
}
.trn-deck-card {
    position: relative; text-align: center;
}
.trn-deck-card img {
    width: 100%; display: block;
    border-radius: 6px;
    aspect-ratio: 63 / 88;
    object-fit: cover;
    background: #ddd;
    transition: transform 0.15s;
}
.trn-deck-card img:hover { transform: scale(1.04); }
.trn-deck-card.no-img img {
    background: rgba(0,0,0,0.08);
    object-fit: none;
}
.trn-deck-card-qty {
    position: absolute; top: 4px; left: 4px; z-index: 1;
    background: #0d0d0d; color: #f5f0e8;
    font-size: 10px; font-weight: 800;
    padding: 1px 6px; border-radius: 10px;
    line-height: 1.6; pointer-events: none;
}
.trn-deck-card-id {
    display: none; font-size: 9px; font-weight: 700;
    color: #666; margin-top: 4px; letter-spacing: .04em;
}
.trn-deck-card.no-img .trn-deck-card-id { display: block; }

.trn-deck-empty {
    text-align: center; padding: 40px 24px;
    color: #888; font-size: 13px; font-weight: 600;
}

@media (max-width: 600px) {
    #trn-deck-modal { align-items: flex-end; padding: 0; }
    .trn-deck-modal-inner {
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        padding: 20px 16px 32px;
    }
    .trn-deck-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; }
}

/* ============================================================
   CRONOLOGIA TORNEI PAGE
   ============================================================ */

.crono-hero {
    background: #0d0d0d;
    color: #f5f0e8;
    padding: calc(var(--nav-h) + 60px) 24px 56px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.crono-hero-rays {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 100%, rgba(220,38,38,0.15) 0%, transparent 65%);
    pointer-events: none;
}
.crono-hero-label {
    font-size: 10px; font-weight: 900; letter-spacing: 0.2em;
    text-transform: uppercase; color: rgba(245,240,232,0.4);
    margin-bottom: 16px;
}
.crono-hero-title {
    font-family: 'Bangers', cursive;
    font-size: clamp(36px, 8vw, 72px);
    letter-spacing: 0.03em; line-height: 1;
    margin-bottom: 12px;
}
.crono-hero-sub {
    font-size: 14px; color: rgba(245,240,232,0.5);
    font-weight: 600;
}
.crono-wrap {
    max-width: 980px; margin: 0 auto;
    padding: 56px 24px 100px;
}
.crono-year-label {
    font-family: 'Bangers', cursive;
    font-size: 17px; letter-spacing: 0.12em;
    color: #DC2626; margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
}
.crono-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px; margin-bottom: 48px;
}
.crono-card {
    background: #f5f0e8;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 10px; overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex; flex-direction: column;
}
.crono-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.12); }
.crono-card-header { padding: 20px 20px 14px; flex: 1; }
.crono-card-tcg {
    display: inline-flex; align-items: center;
    padding: 3px 12px; border-radius: 20px;
    font-size: 9px; font-weight: 900;
    letter-spacing: 0.18em; text-transform: uppercase;
    margin-bottom: 12px;
}
.crono-card-title {
    font-family: 'Bangers', cursive;
    font-size: 22px; letter-spacing: 0.03em;
    line-height: 1.1; margin-bottom: 8px; color: #0d0d0d;
}
.crono-card-meta {
    font-size: 12px; color: #666; font-weight: 600;
    display: flex; gap: 14px; flex-wrap: wrap;
}
.crono-card-podium {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding: 12px 20px;
    display: flex; flex-direction: column; gap: 5px;
}
.crono-podium-row {
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; color: #333;
}
.crono-podium-pts {
    margin-left: auto; font-size: 11px;
    color: #DC2626; font-weight: 800;
}
.crono-card-footer { padding: 0 20px 16px; }
.crono-view-btn {
    display: block; width: 100%; text-align: center;
    padding: 10px; background: #0d0d0d; color: #f5f0e8;
    font-size: 11px; font-weight: 800; letter-spacing: 0.1em;
    text-transform: uppercase; text-decoration: none;
    border-radius: 6px; transition: background 0.15s;
}
.crono-view-btn:hover { background: #DC2626; color: #f5f0e8; }
.crono-empty {
    text-align: center; padding: 80px 24px;
    color: #888; font-size: 14px; font-weight: 600;
    letter-spacing: 0.05em;
}
.crono-loading {
    text-align: center; padding: 60px 24px;
    color: rgba(245,240,232,0.4); font-size: 13px; font-weight: 600;
}

@media (max-width: 600px) {
    .crono-grid { grid-template-columns: 1fr; }
    .crono-wrap { padding: 32px 16px 80px; }
}

/* ============================================================
   GESTIONALE — Event type selector + Competition form
   ============================================================ */

.ev-type-selector {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}
.ev-type-btn {
    flex: 1; padding: 11px 8px;
    background: none; border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 11px; font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--muted);
    transition: all 0.2s;
    display: flex; align-items: center;
    justify-content: center; gap: 5px;
}
.ev-type-btn:not(:last-child) { border-right: 1px solid var(--border); }
.ev-type-btn.is-active { background: var(--accent); color: #fff; }
.ev-type-btn[data-type="community"].is-active { background: #8B5CF6; }

/* Competition player management */
.comp-players-section {
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}
.comp-players-hd {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.comp-players-title {
    font-size: 10px; font-weight: 800;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--muted);
}
.comp-sort-btn {
    font-size: 10px; font-weight: 700;
    padding: 4px 10px; border-radius: 4px;
    background: rgba(220,38,38,0.1);
    border: 1px solid rgba(220,38,38,0.25);
    color: var(--accent); cursor: pointer;
    letter-spacing: 0.08em;
}
.comp-player-header {
    display: grid;
    grid-template-columns: 1fr 46px 46px 46px 56px 32px;
    gap: 6px; padding: 0 0 8px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 8px;
}
.comp-col-lbl {
    font-size: 9px; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--muted); text-align: center;
}
.comp-col-lbl:first-child { text-align: left; }
.comp-player-row {
    display: grid;
    grid-template-columns: 1fr 46px 46px 46px 56px 32px;
    gap: 6px; align-items: center;
    padding: 5px 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.comp-player-row:last-child { border-bottom: none; }
.comp-player-row input {
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border); border-radius: 4px;
    color: var(--fg); padding: 6px 8px;
    font-family: 'Inter', sans-serif; font-size: 12px;
    width: 100%; text-align: center;
}
.comp-player-row input:first-child { text-align: left; }
.comp-player-row input:focus { outline: none; border-color: var(--accent); }
.comp-player-pts {
    font-family: 'Bangers', cursive; font-size: 20px;
    color: var(--accent); text-align: center; line-height: 1;
}
.comp-del-btn {
    width: 30px; height: 30px;
    border: 1px solid rgba(220,38,38,0.3);
    border-radius: 4px; background: rgba(220,38,38,0.07);
    color: var(--accent); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 15px; transition: all 0.2s; margin: 0 auto;
}
.comp-del-btn:hover { background: var(--accent); color: #fff; }
.comp-add-btn {
    margin-top: 10px; width: 100%; padding: 8px;
    background: rgba(255,255,255,0.03);
    border: 1px dashed var(--border); border-radius: 6px;
    color: var(--muted); font-family: 'Inter', sans-serif;
    font-size: 12px; font-weight: 600;
    cursor: pointer; transition: all 0.2s;
}
.comp-add-btn:hover { border-color: var(--accent); color: var(--fg); }

/* ============================================================
   MOBILE POLISH — adattamenti responsivi aggiuntivi
   ============================================================ */

/* ── Hero: bottom padding eccessivo su mobile ── */
@media (max-width: 768px) {
    #hero {
        padding-bottom: 90px;
    }
}
@media (max-width: 520px) {
    #hero {
        padding-bottom: 72px;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ── Section label: letter-spacing ridotto su schermi piccoli ── */
@media (max-width: 480px) {
    .section-label {
        letter-spacing: 0.22em;
        font-size: 9px;
        max-width: 100%;
        white-space: normal;
        text-align: center;
    }
}

/* ── Category cards: versione compatta a 2 colonne su mobile ── */
@media (max-width: 560px) {
    .cat-card {
        min-height: 230px;
        padding: 20px 16px 18px;
    }
    .cat-bg-kanji {
        font-size: 90px;
        bottom: -10px;
        right: -5px;
    }
    .cat-num-badge {
        margin-bottom: 10px;
        font-size: 9px;
    }
    .cat-jp {
        font-size: 9px;
        margin-bottom: 8px;
        letter-spacing: 0.18em;
    }
    .cat-title {
        font-size: 17px !important;
        margin-bottom: 8px;
    }
    .cat-desc {
        display: none; /* nascosto in 2-col: troppo testo in poco spazio */
    }
    .cat-tags {
        gap: 4px;
        margin-top: 8px;
    }
    .cat-tag {
        font-size: 7.5px;
        padding: 3px 7px;
    }
    .cat-explore-link {
        font-size: 10px;
        margin-top: 10px;
    }
}

/* ── Category grid: 1 colonna su telefoni molto piccoli ── */
@media (max-width: 400px) {
    .catalog-grid {
        grid-template-columns: 1fr;
    }
    .cat-card {
        min-height: auto;
        padding: 24px 20px 20px;
    }
    .cat-desc {
        display: block; /* rivisibile in layout a 1 colonna */
    }
    .cat-title {
        font-size: 20px !important;
    }
}

/* ── Events tabs: più compatti su mobile ── */
@media (max-width: 520px) {
    .ev-tabs {
        margin-top: 24px;
        gap: 0;
    }
    .ev-tab {
        font-size: 11px;
        padding: 10px 14px;
        gap: 5px;
        flex-shrink: 0;
    }
    .ev-tab svg {
        width: 11px;
        height: 11px;
    }
}

/* ── Event card date box: più compatta su mobile ── */
@media (max-width: 480px) {
    .event-date-box {
        padding: 12px 16px;
        gap: 8px;
    }
    .event-day-num {
        font-size: 26px;
    }
    .event-day-name,
    .event-month {
        font-size: 9px;
        letter-spacing: 0.1em;
    }
    .event-row {
        border-radius: 0;
    }
}

/* ── Inputs e textarea: font-size 16px su mobile ──
   Previene lo zoom automatico su iOS al focus        ── */
@media (max-width: 768px) {
    .contact-input,
    .form-input,
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="search"],
    textarea {
        font-size: 16px;
    }
}

/* ── Contact form: touch target e spacing ── */
@media (max-width: 480px) {
    .contact-input,
    .form-input {
        min-height: 46px;
        padding: 10px 14px;
    }
    textarea.contact-input,
    textarea.form-input {
        min-height: 110px;
    }
    .form-label {
        font-size: 11px;
        margin-bottom: 6px;
    }
    .form-row {
        margin-bottom: 16px;
    }
}

/* ── Carousel: margine bottom ridotto su mobile ── */
@media (max-width: 520px) {
    .carousel-outer {
        margin-bottom: 28px;
    }
    .carousel-track {
        gap: 12px;
    }
}

/* ── Reviews grid: 1 colonna su mobile piccolo ── */
@media (max-width: 480px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Product card nel carosello su mobile ── */
@media (max-width: 520px) {
    .product-card-meta {
        padding: 12px;
    }
    .product-card-title {
        font-size: 13px;
        line-height: 1.3;
    }
    .product-card-price {
        font-size: 14px;
    }
}

/* ── Modal bottom-sheet: handle più visibile ── */
@media (max-width: 640px) {
    .modal-box {
        max-height: 95vh;
    }
}

/* ── Footer: padding extra-small ── */
@media (max-width: 360px) {
    .footer-inner {
        padding: 32px 12px 24px;
    }
    .footer-logo {
        font-size: 30px;
    }
    .footer-grid {
        gap: 24px;
    }
}

/* ── Lotus float button: più piccolo su mobile piccolo ── */
@media (max-width: 480px) {
    .lotus-float {
        right: 12px;
        bottom: 16px;
        width: 50px;
        height: 50px;
    }
}

/* ── Catalog CTA row: bottone full-width su mobile ── */
@media (max-width: 520px) {
    .catalog-cta-btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
    .catalog-cta-hint {
        font-size: 10px;
        text-align: center;
        padding: 0 16px;
    }
}
