/* COLORI PERSONALIZZATI - TEMA ELEGANTE RISTORANTE */
:root {
    --primary-green: #1a472a;
    --secondary-green: #2d5a3d;
    --light-green: #e8f0ea;
    --gold: #d4af37;
    --light-bg: #f8f9f7;
    --text-dark: #333;
    --text-light: #666;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* RESET E STILI GLOBALI */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #fff;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    letter-spacing: 0.5px;
}

/* SEZIONI - PADDING UNIFORME */
section {
    position: relative;
    overflow: hidden;
}

/* HOVER EFFECTS PER BOOTSTRAP BTN */
.btn-outline-success {
    color: var(--secondary-green);
    border-color: var(--secondary-green);
    font-weight: 600;
    transition: all 0.3s ease;
    border-width: 2px;
}

.btn-outline-success:hover {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(45, 90, 61, 0.3);
}

.btn-outline-success.active {
    background-color: var(--secondary-green);
    border-color: var(--secondary-green);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 90, 61, 0.25);
}

/* ANIMAZIONI */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* MENU CARD HOVER */
.menu-card {
    transition: all 0.3s ease !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 12px !important;
}

.menu-card:hover {
    transform: translateY(-10px) !important;
    border-color: var(--gold) !important;
    box-shadow: 0 12px 24px rgba(212, 175, 55, 0.25) !important;
}

.menu-card:hover h5 {
    color: var(--gold) !important;
}

.menu-card img {
    transition: transform 0.3s ease !important;
}

.menu-card:hover img {
    transform: scale(1.08);
}

/* FORM STYLING */
.form-control,
.form-select {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-green);
    box-shadow: 0 0 0 0.3rem rgba(45, 90, 61, 0.15);
}

.form-label {
    color: var(--secondary-green);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

/* NAVBAR PERSONALIZZATO */
.navbar {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(10px);
    background: rgba(26, 71, 42, 0.98) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    color: var(--gold) !important;
    font-size: 1.5rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-brand:hover {
    color: #f0d896 !important;
    transform: scale(1.05);
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    margin: 0 0.5rem;
    position: relative;
}

.nav-link:hover {
    color: var(--gold) !important;
    transform: translateY(-2px);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* HERO SECTION IMPROVEMENTS */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 71, 42, 0.85) 0%, rgba(45, 90, 61, 0.85) 100%);
    z-index: 1;
}

.hero-section > * {
    position: relative;
    z-index: 2;
}

/* GRADIENT BUTTONS */
.btn-gradient {
    background: linear-gradient(135deg, #d4af37 0%, #f0d896 100%);
    color: var(--primary-green);
    border: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 12px 40px;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    color: var(--primary-green);
}

/* CARD ANIMATIONS */
.card {
    animation: slideInUp 0.6s ease;
    border-radius: 12px !important;
    border: none !important;
}

/* CARD SHADOWS */
.card {
    box-shadow: var(--shadow-sm) !important;
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-md) !important;
}

/* SECTION STYLING */
section {
    padding: 60px 0;
}

section h2 {
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary-green), var(--gold), var(--secondary-green));
    border-radius: 10px;
}

/* GALLERY STYLING */
.gallery-img {
    cursor: pointer !important;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease !important;
    border-radius: 15px;
}

.gallery-img:hover {
    transform: scale(1.12);
    filter: brightness(1.15) saturate(1.1);
}

/* TEXT EFFECTS */
.text-muted {
    color: var(--text-light) !important;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: none;
}

/* FOOTER STYLING */
footer {
    background: linear-gradient(135deg, #0f2818 0%, #1a472a 100%);
    transition: all 0.3s ease;
}

footer a {
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8);
}

footer a:hover {
    color: var(--gold) !important;
    transform: translateX(3px);
}

/* RESPONSIVE ADJUSTMENTS */
@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    section h2 {
        font-size: 2rem !important;
    }

    .hero-section {
        min-height: 450px;
    }

    .hero-section h1 {
        font-size: 2rem !important;
    }

    .hero-section p {
        font-size: 1.1rem !important;
    }

    .menu-card {
        margin-bottom: 20px;
    }

    .navbar-brand {
        font-size: 1.3rem !important;
    }

    .btn-gradient {
        padding: 12px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 350px;
    }

    .hero-section h1 {
        font-size: 1.5rem !important;
    }

    .hero-section p {
        font-size: 0.95rem !important;
    }

    section {
        padding: 30px 0;
    }

    .card {
        margin-bottom: 15px;
    }

    .nav-link {
        margin: 0.5rem 0;
    }

    .btn-gradient {
        padding: 10px 25px;
        font-size: 0.95rem;
    }
}

/* SCROLL BEHAVIOR */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--secondary-green);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-green);
}

/* BORDER RADIUS CONSISTENT */
.card,
.form-control,
.form-select,
.btn {
    border-radius: 8px;
}

/* MENU ITEM STYLING */
.menu-item {
    transition: all 0.4s ease;
}

/* ELEMENTO DI EVIDENZIAZIONE */
.highlight {
    color: var(--gold);
    font-weight: 600;
}

/* SEPARATORI ELEGANTI */
hr {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--secondary-green), transparent);
}
