/* ============================================
   AXELYNE SPORT — Fresh Ice Theme
   Per pattinaggio artistico, target 5-20 anni
   Palette: Ghiaccio luminoso, Azzurro, Rosa soft, Notte soft
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --ice-white: #f8fbfc;
    --ice-light: #e8f4f8;
    --ice-blue: #c5e3ec;
    --ice-deep: #7eb8c9;
    --night: #1a2332;
    --night-soft: #243447;
    --rose-soft: #e8b4b8;
    --rose-gold: #d4a5a5;
    --silver: #8fa3b0;
    --silver-dim: #6b7d8a;
    --text-main: #2c3e50;
    --text-muted: #5a6c7a;
    --glass: rgba(255, 255, 255, 0.72);
    --glass-border: rgba(126, 184, 201, 0.25);
    --accent: #7eb8c9;
}

* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(180deg, var(--ice-white) 0%, var(--ice-light) 30%, #f0f7fa 100%);
    background-attachment: fixed;
    color: var(--text-main);
    min-height: 100vh;
    line-height: 1.6;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    background: rgba(248, 251, 252, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: 0.8rem 0;
    box-shadow: 0 2px 20px rgba(126, 184, 201, 0.08);
}

.navbar-brand {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.7rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--night) !important;
    position: relative;
}

.navbar-brand::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--ice-deep);
    transition: width 0.4s ease;
    border-radius: 1px;
}

.navbar-brand:hover::after { width: 100%; }

.nav-link {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--silver-dim) !important;
    margin: 0 0.4rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link:hover { color: var(--ice-deep) !important; }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--ice-deep);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 1px;
}

.nav-link:hover::after { width: 70%; }

.dropdown-menu {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(126, 184, 201, 0.15);
}

.dropdown-item {
    color: var(--text-muted);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
    border-radius: 4px;
    margin: 2px 6px;
    padding: 0.5rem 1rem;
    width: auto;
}

.dropdown-item:hover {
    background: rgba(126, 184, 201, 0.12);
    color: var(--ice-deep);
}

.badge.bg-danger {
    background: var(--rose-soft) !important;
    color: #fff;
    font-weight: 600;
    font-size: 0.65rem;
    border-radius: 10px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero-section {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: 
        radial-gradient(ellipse at 30% 20%, rgba(197, 227, 236, 0.5) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 80%, rgba(232, 180, 184, 0.2) 0%, transparent 50%),
        linear-gradient(180deg, var(--ice-white) 0%, var(--ice-light) 60%, #e0f0f5 100%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path d="M0,300 Q300,200 600,300 T1200,300" fill="none" stroke="rgba(126,184,201,0.08)" stroke-width="2"/></svg>');
    background-size: cover;
    opacity: 0.6;
    pointer-events: none;
}

.hero-section h1 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--night);
    margin-bottom: 1rem;
    position: relative;
}

.hero-section h1 span {
    display: block;
    font-size: 0.35em;
    letter-spacing: 10px;
    color: var(--ice-deep);
    margin-top: 0.8rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
}

.hero-section .tagline-top {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--silver);
    margin-bottom: 1.2rem;
    font-weight: 600;
}

.hero-section .lead {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    font-weight: 400;
    font-style: italic;
    color: var(--silver-dim);
    letter-spacing: 1px;
    margin-bottom: 2rem;
}

/* ============================================
   BOTTONI
   ============================================ */
.btn {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.85rem 2.2rem;
    border-radius: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--ice-deep) 0%, #5a9aaa 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(126, 184, 201, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(126, 184, 201, 0.45);
    color: #fff;
}

.btn-outline-primary {
    background: transparent;
    border: 2px solid var(--ice-deep);
    color: var(--ice-deep);
}

.btn-outline-primary:hover {
    background: var(--ice-deep);
    color: #fff;
    transform: translateY(-2px);
}

.btn-outline-secondary {
    background: transparent;
    border: 2px solid var(--silver);
    color: var(--silver);
}

.btn-outline-secondary:hover {
    border-color: var(--night-soft);
    color: var(--night-soft);
    transform: translateY(-2px);
}

.btn-success {
    background: linear-gradient(135deg, #7bc8a0 0%, #5aa882 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(123, 200, 160, 0.35);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(123, 200, 160, 0.45);
    color: #fff;
}

.btn-danger {
    background: linear-gradient(135deg, #e8a5a5 0%, #d48484 100%);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    color: #fff;
}

.btn-warning {
    background: linear-gradient(135deg, #f0d78c 0%, #e0c060 100%);
    color: var(--night);
}

.btn-warning:hover {
    transform: translateY(-2px);
    color: var(--night);
}

.btn-sm {
    padding: 0.45rem 1.2rem;
    font-size: 0.7rem;
    border-radius: 20px;
}

.btn-lg {
    padding: 1rem 2.8rem;
    font-size: 0.8rem;
}

/* ============================================
   CARD PRODOTTI
   ============================================ */
.product-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(126, 184, 201, 0.08);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(126, 184, 201, 0.2);
    border-color: rgba(126, 184, 201, 0.4);
}

.product-card .card-img-top {
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .card-img-top {
    transform: scale(1.04);
}

.product-card .card-body {
    padding: 1.5rem;
    background: transparent;
}

.product-card .card-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--night);
    letter-spacing: 0.5px;
    margin-bottom: 0.4rem;
}

.product-card .card-text {
    color: var(--silver-dim);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.6;
}

.product-card .h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    color: var(--ice-deep);
    font-weight: 600;
}

.product-card .text-muted {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver) !important;
    font-weight: 600;
}

/* ============================================
   TITOLI SEZIONE
   ============================================ */
h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    letter-spacing: 1px;
    color: var(--night);
}

h2 {
    font-size: 2rem;
    position: relative;
    display: inline-block;
    margin-bottom: 2.5rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: var(--ice-deep);
    border-radius: 1px;
}

/* ============================================
   FORM & INPUT
   ============================================ */
.form-control, .form-select {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(126, 184, 201, 0.2);
    border-radius: 10px;
    color: var(--text-main);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus, .form-select:focus {
    background: #fff;
    border-color: var(--ice-deep);
    box-shadow: 0 0 0 4px rgba(126, 184, 201, 0.15);
    color: var(--text-main);
}

.form-control::placeholder {
    color: var(--silver);
    font-weight: 400;
}

.form-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--silver-dim);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

/* ============================================
   TABELLE
   ============================================ */
.table {
    color: var(--text-main);
    border-color: rgba(126, 184, 201, 0.15);
}

.table thead th {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--silver-dim);
    border-bottom: 2px solid rgba(126, 184, 201, 0.2);
    padding: 1rem;
    background: rgba(232, 244, 248, 0.5);
}

.table tbody td {
    padding: 1rem;
    border-bottom: 1px solid rgba(126, 184, 201, 0.1);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.table-hover tbody tr:hover {
    background: rgba(126, 184, 201, 0.04);
}

/* ============================================
   ALERT
   ============================================ */
.alert {
    border-radius: 10px;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    padding: 1rem 1.2rem;
}

.alert-info { background: rgba(126, 184, 201, 0.12); color: #4a8fa0; }
.alert-success { background: rgba(123, 200, 160, 0.15); color: #3a8a60; }
.alert-danger { background: rgba(232, 180, 184, 0.2); color: #a05050; }
.alert-warning { background: rgba(240, 215, 140, 0.2); color: #8a7a30; }

/* ============================================
   BADGE STATO ORDINI
   ============================================ */
.badge-pending {
    background: rgba(240, 215, 140, 0.2) !important;
    color: #8a7a30 !important;
    border: 1px solid rgba(240, 215, 140, 0.4);
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-paid {
    background: rgba(123, 200, 160, 0.2) !important;
    color: #3a8a60 !important;
    border: 1px solid rgba(123, 200, 160, 0.4);
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-shipped {
    background: rgba(126, 184, 201, 0.2) !important;
    color: #4a8fa0 !important;
    border: 1px solid rgba(126, 184, 201, 0.4);
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.badge-cancelled {
    background: rgba(232, 180, 184, 0.2) !important;
    color: #a05050 !important;
    border: 1px solid rgba(232, 180, 184, 0.4);
    font-weight: 600;
    padding: 0.35rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
    background: linear-gradient(180deg, var(--ice-light) 0%, #e0f0f5 100%) !important;
    border-top: 1px solid var(--glass-border);
    padding: 3rem 0 2rem;
    color: var(--text-muted);
}

footer h5 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--night);
    margin-bottom: 0.8rem;
}

footer h6 {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--silver-dim);
    margin-bottom: 1rem;
    font-weight: 600;
}

footer a {
    color: var(--silver-dim);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.85rem;
}

footer a:hover {
    color: var(--ice-deep);
}

footer p {
    color: var(--silver-dim);
    font-weight: 400;
    font-size: 0.85rem;
    line-height: 1.7;
}

/* ============================================
   CARD GENERICHE
   ============================================ */
.card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    box-shadow: 0 4px 15px rgba(126, 184, 201, 0.06);
}

.card-header {
    background: rgba(232, 244, 248, 0.6);
    border-bottom: 1px solid var(--glass-border);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 1px;
    padding: 1.2rem 1.5rem;
    color: var(--night);
    border-radius: 12px 12px 0 0 !important;
}

.card-body { padding: 1.5rem; }

.list-group-item {
    background: transparent;
    border-color: rgba(126, 184, 201, 0.1);
    color: var(--text-main);
    font-size: 0.9rem;
}

/* ============================================
   PRODOTTO DETTAGLIO
   ============================================ */
.img-fluid.rounded.shadow {
    border-radius: 12px !important;
    box-shadow: 0 15px 40px rgba(126, 184, 201, 0.15) !important;
    border: 1px solid var(--glass-border);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ice-light); }
::-webkit-scrollbar-thumb { background: var(--ice-blue); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--ice-deep); }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--glass-border);
    padding: 1.2rem 0;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -5px 30px rgba(126, 184, 201, 0.1);
}

.cookie-banner.show { transform: translateY(0); }

.cookie-banner p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.cookie-banner a {
    color: var(--ice-deep);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cookie-banner a:hover { color: var(--night-soft); }

.cookie-banner .btn-cookie {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.6rem 1.5rem;
    border: 2px solid;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    border-radius: 20px;
}

.cookie-banner .btn-cookie-accept {
    border-color: var(--ice-deep);
    color: var(--ice-deep);
}

.cookie-banner .btn-cookie-accept:hover {
    background: var(--ice-deep);
    color: #fff;
}

.cookie-banner .btn-cookie-reject {
    border-color: var(--silver);
    color: var(--silver);
    margin-right: 0.8rem;
}

.cookie-banner .btn-cookie-reject:hover {
    border-color: var(--text-muted);
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .cookie-banner .d-flex {
        flex-direction: column !important;
        gap: 1rem;
    }
    .cookie-banner .btn-group {
        width: 100%;
        display: flex;
        gap: 0.5rem;
    }
    .cookie-banner .btn-cookie {
        flex: 1;
        text-align: center;
    }
}

/* ============================================
   ANIMAZIONE ENTRATA
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container .row > div {
    animation: fadeInUp 0.6s ease forwards;
}

.container .row > div:nth-child(1) { animation-delay: 0.05s; }
.container .row > div:nth-child(2) { animation-delay: 0.1s; }
.container .row > div:nth-child(3) { animation-delay: 0.15s; }
.container .row > div:nth-child(4) { animation-delay: 0.2s; }

/* ============================================
   SEZIONE ABOUT (homepage)
   ============================================ */
.about-section {
    background: linear-gradient(180deg, transparent 0%, rgba(232, 244, 248, 0.6) 50%, transparent 100%);
    padding: 4rem 0;
}

.about-section h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.about-section h2::after {
    left: 0;
    transform: none;
}

.about-section p {
    color: var(--text-muted);
    font-weight: 400;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-quote {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(126, 184, 201, 0.1);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.2rem;
        letter-spacing: 3px;
    }
    .navbar-brand { font-size: 1.3rem; letter-spacing: 2px; }
    .product-card .card-img-top { height: 200px; }
    h2 { font-size: 1.5rem; }
    .btn { padding: 0.7rem 1.5rem; }
}
