/* ============================================
   Ta'Pins by Peccati di Brace - Main Stylesheet
   Light Theme | Red & Gold Accents
   ============================================ */

:root {
    --bg-body: #ffffff;
    --bg-section: #f5f5f5;
    --bg-section-alt: #fafafa;
    --bg-card: #ffffff;
    --bg-card-hover: #fdfdfd;
    --bg-input: #f8f8f8;
    --bg-dark-section: #f0f0f0;
    --bg-darker: #eaeaea;
    --red: #C41E3A;
    --red-dark: #9E1830;
    --red-light: #E02248;
    --gold: #D4AF37;
    --gold-light: #E6C44D;
    --gold-dark: #B8962E;
    --text-heading: #1a1a1a;
    --text-body: #444444;
    --text-muted: #888888;
    --text-dark-muted: #aaaaaa;
    --text-white: #ffffff;
    --border-color: #e0e0e0;
    --border-light: #ebebeb;
    --font-heading: 'Lato', -apple-system, sans-serif;
    --font-body: 'Lato', -apple-system, sans-serif;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius: 8px;
    --radius-lg: 16px;
}

/* ============================================
   RESET & BASE
   ============================================ */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-body);
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-heading);
    font-weight: 600;
}

a {
    color: var(--red);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--red-dark); }

img { max-width: 100%; height: auto; }

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

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gold { color: var(--gold) !important; }
.text-red { color: var(--red) !important; }
.text-muted-custom { color: var(--text-muted) !important; }
.bg-section { background-color: var(--bg-section); }
.bg-darker { background-color: var(--bg-darker); }

.section-padding { padding: 100px 0; }

.section-header {
    text-align: center;
    margin-bottom: 60px;
}
.section-header .section-subtitle {
    font-family: var(--font-heading);
    color: var(--red);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}
.section-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-heading);
    position: relative;
}
.section-header p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.05rem;
}
.section-header .section-line {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    margin: 15px auto 0;
    border-radius: 2px;
}

.gold-separator {
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 15px 0;
    display: inline-block;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-red {
    background: var(--red);
    color: #fff;
    border: 2px solid var(--red);
    padding: 12px 32px;
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.btn-red:hover {
    background: var(--red-dark);
    border-color: var(--red-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(196, 30, 58, 0.3);
}

.btn-gold {
    background: transparent;
    color: var(--gold-dark);
    border: 2px solid var(--gold);
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius);
    letter-spacing: 0.5px;
    transition: var(--transition);
}
.btn-gold:hover {
    background: var(--gold);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212, 175, 55, 0.25);
}

.btn-outline-light-custom {
    border: 2px solid var(--border-color);
    color: var(--text-body);
    padding: 10px 28px;
    border-radius: var(--radius);
    transition: var(--transition);
}
.btn-outline-light-custom:hover {
    border-color: var(--red);
    color: var(--red);
}

/* ============================================
   TOP BAR
   ============================================ */
.top-bar {
    background-color: var(--bg-section);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85rem;
}
.top-bar-info a, .top-bar-info span {
    color: var(--text-muted);
}
.top-bar-info a:hover { color: var(--red); }
.top-bar-social a {
    color: var(--text-muted);
    margin-left: 12px;
    font-size: 0.9rem;
}
.top-bar-social a:hover { color: var(--red); }

/* ============================================
   NAVBAR
   ============================================ */
#mainNavbar {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition);
    z-index: 1050;
}
#mainNavbar.scrolled {
    padding: 8px 0;
    background-color: rgba(255, 255, 255, 0.99);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar-logo {
    height: 50px;
    width: auto;
    transition: var(--transition);
}
#mainNavbar.scrolled .navbar-logo { height: 40px; }

.navbar-nav .nav-link {
    color: var(--text-body);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: var(--transition);
    position: relative;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--red);
}
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

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

.dropdown-menu {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.dropdown-menu .dropdown-item {
    color: var(--text-body);
    padding: 10px 20px;
    transition: var(--transition);
}
.dropdown-menu .dropdown-item:hover {
    background: var(--red);
    color: #fff;
}

.cart-icon-nav {
    position: relative;
    color: var(--text-heading);
    font-size: 1.2rem;
}
.cart-icon-nav:hover { color: var(--red); }
.cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--red);
    color: #fff;
    font-size: 0.65rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ============================================
   HERO SLIDER (Home)
   ============================================ */
.hero-slider {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
}
.hero-slider .swiper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.hero-slider .swiper-wrapper {
    height: 100%;
}
.hero-slider .swiper-slide {
    height: 100%;
    width: 100%;
}
.hero-slide {
    position: relative;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 0;
}
.hero-slide::before {
    display: none;
}
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.15) 0%,
        rgba(0, 0, 0, 0.25) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 1;
}
.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 2;
    padding: 0 20px;
}
.hero-slide-content h1 {
    font-size: 4rem;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 4px 10px rgba(0,0,0,0.4);
    margin-bottom: 15px;
}
.hero-slide-content h1 span { color: var(--red); }
.hero-slide-content p {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}
.hero-slide-content .hero-badge {
    display: inline-block;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 3px;
    margin-bottom: 15px;
}

.swiper-pagination-bullet {
    background: rgba(255,255,255,0.5);
    width: 12px;
    height: 12px;
    opacity: 0.5;
}
.swiper-pagination-bullet-active {
    background: var(--gold);
    opacity: 1;
}

/* ============================================
   PAGE HERO (Inner pages)
   ============================================ */
.page-hero {
    position: relative;
    padding: 120px 0 80px;
    background-color: var(--bg-section);
    background-size: cover;
    background-position: center;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(245, 245, 245, 0.92) 0%,
        rgba(196, 30, 58, 0.05) 50%,
        rgba(245, 245, 245, 0.95) 100%
    );
}
.page-hero-content {
    position: relative;
    z-index: 2;
}
.page-hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-heading);
}
.page-hero .breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}
.page-hero .breadcrumb-item a { color: var(--red); }
.page-hero .breadcrumb-item.active { color: var(--text-muted); }
.page-hero .breadcrumb-item + .breadcrumb-item::before { color: var(--text-muted); }

/* ============================================
   CARDS
   ============================================ */
.tp-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.tp-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-color);
    box-shadow: var(--shadow-lg);
}
.tp-card .card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.tp-card .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tp-card:hover .card-img-wrapper img {
    transform: scale(1.08);
}
.tp-card .card-img-overlay-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--red);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}
.tp-card .card-body {
    padding: 20px;
}
.tp-card .card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-heading);
}
.tp-card .card-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}
.tp-card .card-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--red);
    font-family: var(--font-heading);
}
.tp-card .card-allergens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}
.tp-card .allergen-badge {
    background: rgba(196, 30, 58, 0.08);
    color: var(--red);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    border: 1px solid rgba(196, 30, 58, 0.15);
}

/* ============================================
   MENU FILTERS
   ============================================ */
.menu-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
}
.menu-filter-btn {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 24px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.menu-filter-btn:hover,
.menu-filter-btn.active {
    border-color: var(--red);
    color: #fff;
    background: var(--red);
}

/* ============================================
   FORMS
   ============================================ */
.tp-form .form-label {
    color: var(--text-heading);
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 6px;
}
.tp-form .form-control,
.tp-form .form-select {
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    color: var(--text-heading);
    padding: 12px 16px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
}
.tp-form .form-control:focus,
.tp-form .form-select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.1);
    background-color: #fff;
    color: var(--text-heading);
}
.tp-form .form-control::placeholder { color: var(--text-dark-muted); }
.tp-form textarea.form-control { min-height: 120px; }

/* ============================================
   ABOUT / INFO SECTIONS
   ============================================ */
.about-section { position: relative; }
.about-img-wrapper {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.about-img-wrapper img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}
.about-img-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid var(--gold);
    border-radius: var(--radius-lg);
    pointer-events: none;
    opacity: 0.3;
}
.about-text h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
}
.about-text p { color: var(--text-muted); }
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 25px;
}
.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}
.about-feature i {
    color: var(--red);
    font-size: 1.4rem;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--bg-section);
}
.about-feature span {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-heading);
}

/* ============================================
   CTA SECTIONS
   ============================================ */
.cta-section {
    position: relative;
    padding: 80px 0;
    background: var(--bg-section-alt);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.cta-overlay {
    display: none;
}
.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
.cta-content h2 {
    font-size: 2.5rem;
    color: var(--text-heading);
    margin-bottom: 15px;
}
.cta-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

/* ============================================
   OPENING HOURS
   ============================================ */
.hours-widget {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: var(--shadow-card);
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.95rem;
}
.hours-list li:last-child { border-bottom: none; }
.hours-list .day { color: var(--text-heading); font-weight: 500; }
.hours-list .time { color: var(--red); font-weight: 500; }

/* ============================================
   GALLERY
   ============================================ */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 250px;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: rgba(196, 30, 58, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}
.gallery-item:hover .gallery-item-overlay { opacity: 1; }
.gallery-item-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* ============================================
   MAP
   ============================================ */
.map-container {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    height: 400px;
    box-shadow: var(--shadow-card);
}
.map-container-large { height: 500px; }

/* ============================================
   STATS / COUNTERS
   ============================================ */
.stat-box {
    text-align: center;
    padding: 30px 15px;
}
.stat-box .stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-box .stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================
   CART
   ============================================ */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--bg-card);
    z-index: 2000;
    transition: right 0.4s ease;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border-color);
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.cart-sidebar.open { right: 0; }
.cart-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.cart-sidebar-header h4 { margin: 0; color: var(--red); }
.cart-close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
}
.cart-close-btn:hover { color: var(--red); }
.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}
.cart-item {
    display: flex;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}
.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-name { font-weight: 600; font-size: 0.9rem; color: var(--text-heading); }
.cart-item-price { color: var(--red); font-weight: 600; }
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}
.cart-item-qty button {
    width: 26px;
    height: 26px;
    border: 1px solid var(--border-color);
    background: var(--bg-section);
    color: var(--text-heading);
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cart-item-qty button:hover { border-color: var(--red); color: var(--red); }
.cart-item-qty span { min-width: 20px; text-align: center; color: var(--text-heading); }
.cart-item-remove {
    color: var(--text-muted);
    cursor: pointer;
    align-self: flex-start;
    font-size: 0.8rem;
}
.cart-item-remove:hover { color: var(--red); }
.cart-sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-light);
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-heading);
}
.cart-total .total-price { color: var(--red); }
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1999;
    display: none;
}
.cart-overlay.show { display: block; }

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--text-muted);
}
.cart-empty i { font-size: 3rem; margin-bottom: 15px; display: block; }

/* ============================================
   FOOTER (Light Theme)
   ============================================ */
.site-footer {
    background-color: #ffffff;
    border-top: 3px solid var(--red);
}
.footer-top { padding: 60px 0; }
.footer-logo-img {
    height: 55px;
    width: auto;
}
.footer-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}
.footer-social a {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-muted);
    margin-right: 8px;
    transition: var(--transition);
}
.footer-social a:hover {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.footer-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--text-heading);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--red);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: var(--transition);
}
.footer-links a:hover {
    color: var(--red);
    padding-left: 5px;
}
.footer-hours {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-hours li {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--border-light);
}
.footer-hours li:last-child { border-bottom: none; }
.footer-hours .day { color: var(--text-body); }
.footer-hours .time { color: var(--red); }

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 0.9rem;
}
.footer-contact li i { margin-top: 3px; width: 16px; text-align: center; color: var(--red); }
.footer-contact li a, .footer-contact li span { color: var(--text-muted); }
.footer-contact li a:hover { color: var(--red); }

.footer-bottom {
    padding: 20px 0;
    border-top: 1px solid var(--border-light);
}
.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--red);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}
.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.back-to-top:hover {
    background: var(--gold);
    transform: translateY(-3px);
}

/* ============================================
   CHECKOUT
   ============================================ */
.checkout-summary {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-card);
}
.checkout-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-light);
    font-size: 0.9rem;
    color: var(--text-body);
}
.checkout-item:last-of-type { border-bottom: none; }
.checkout-total {
    display: flex;
    justify-content: space-between;
    padding: 15px 0 0;
    border-top: 2px solid var(--red);
    margin-top: 10px;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-heading);
}
.checkout-total .price { color: var(--red); }

.payment-method {
    padding: 20px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}
.payment-method:hover,
.payment-method.selected {
    border-color: var(--red);
}
.payment-method i { font-size: 2rem; color: var(--red); }
.payment-method h6 { color: var(--text-heading); }
.payment-method small { color: var(--text-muted); }

/* ============================================
   FESTA (Event) page
   ============================================ */
.event-type-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.event-type-card:hover {
    border-color: var(--red);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}
.event-type-card i {
    font-size: 2.5rem;
    color: var(--red);
    margin-bottom: 15px;
}
.event-type-card h5 { margin-bottom: 10px; color: var(--text-heading); }
.event-type-card p { color: var(--text-muted); font-size: 0.85rem; }

/* ============================================
   ALERTS OVERRIDE
   ============================================ */
.alert { border-radius: var(--radius); }

/* ============================================
   LOADING SPINNER
   ============================================ */
.spinner-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255,255,255,0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}
.spinner-overlay.active { display: flex; }
.spinner-overlay .spinner-border { color: var(--red); width: 3rem; height: 3rem; }

/* ============================================
   PLACEHOLDER SVGs
   ============================================ */
.placeholder-img {
    background: linear-gradient(135deg, var(--bg-section) 0%, var(--bg-card) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--border-color);
    font-size: 3rem;
}

/* ============================================
   INFO BOXES (light variant for inner pages)
   ============================================ */
.info-box-light {
    background: var(--bg-section);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 25px;
}

/* ============================================
   ASporto CTA Section (Pink Background)
   ============================================ */
.asporto-cta-section {
    background: linear-gradient(135deg, #fef7f7 0%, #fef5f7 50%, #fef2f5 100%);
    padding: 80px 0;
    border-top: 1px solid rgba(196, 30, 58, 0.08);
    border-bottom: 1px solid rgba(196, 30, 58, 0.08);
}
.asporto-cta-section .section-subtitle {
    color: var(--red);
}
.asporto-cta-section h2 {
    color: var(--text-heading);
}
.asporto-cta-section .section-line {
    background: linear-gradient(90deg, var(--red), var(--gold));
}
.asporto-cta-section p {
    color: var(--text-body);
}

/* ============================================
   PROMO STRIP (Homepage Services)
   ============================================ */
.promo-strip {
    padding: 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.promo-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    text-decoration: none;
    color: var(--text-body);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow);
    height: 100%;
}
.promo-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    color: var(--text-body);
    border-color: transparent;
}
.promo-card--laurea:hover { border-bottom: 3px solid var(--red); }
.promo-card--eventi:hover { border-bottom: 3px solid var(--gold); }
.promo-card--tavolo:hover { border-bottom: 3px solid var(--red); }

.promo-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 20px;
    transition: var(--transition);
}
.promo-card--laurea .promo-card-icon {
    background: rgba(196, 30, 58, 0.08);
    color: var(--red);
}
.promo-card--eventi .promo-card-icon {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-dark);
}
.promo-card--tavolo .promo-card-icon {
    background: rgba(196, 30, 58, 0.08);
    color: var(--red);
}
.promo-card:hover .promo-card-icon {
    transform: scale(1.1);
}

.promo-card-body h4 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-heading);
}
.promo-card-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.promo-card-cta {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--red);
    transition: var(--transition);
    margin-top: auto;
    display: inline-block;
}
.promo-card--eventi .promo-card-cta { color: var(--gold-dark); }
.promo-card:hover .promo-card-cta { letter-spacing: 0.5px; }
.promo-card-cta i { transition: transform 0.3s ease; }
.promo-card:hover .promo-card-cta i { transform: translateX(4px); }

.promo-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    opacity: 0;
    transition: var(--transition);
}
.promo-card--laurea .promo-card-accent { background: linear-gradient(90deg, var(--red), var(--red-light)); }
.promo-card--eventi .promo-card-accent { background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); }
.promo-card--tavolo .promo-card-accent { background: linear-gradient(90deg, var(--red), var(--gold)); }
.promo-card:hover .promo-card-accent { opacity: 1; }

/* ============================================
   EVENTS SHOWCASE (Homepage)
   ============================================ */
.events-showcase {
    background: var(--bg-section);
    margin-top: 40px;
}

.events-showcase-title {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.events-showcase-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.events-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.events-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}
.events-feature-item:hover {
    border-color: var(--red);
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.08);
    transform: translateX(5px);
}

.events-feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(196, 30, 58, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.events-feature-item h6 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-heading);
}
.events-feature-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.5;
}

/* Events visual grid */
.events-visual-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
    position: relative;
}

.events-visual-item {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.events-visual-item--main {
    grid-row: 1 / 3;
    min-height: 380px;
}
.events-visual-item--main img,
.events-visual-item--main .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.events-visual-item--side {
    height: 200px;
}
.events-visual-item--side img,
.events-visual-item--side .placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-visual-item--accent {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
    min-height: 160px;
}

.events-visual-label {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    color: var(--gold);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.events-visual-stat {
    text-align: center;
    color: #fff;
}
.events-stat-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}
.events-stat-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.85;
}
