/* Root Variables */
:root {
    --primary-color: #8B0000;
    --primary-dark: #6B0000;
    --secondary-color: #D4AF37;
    --light-bg: #F8F7F4;
    --text-dark: #2C2C2C;
    --text-light: #666;
}

/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar Styles */
.navbar {
    background-color: var(--text-dark) !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.8rem;
    color: var(--secondary-color) !important;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
}

.nav-link {
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover {
    color: #ffcd57 !important;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 600px;
    background: url('../img/pollo.jpeg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7));
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    letter-spacing: 1px;
}

.btn-danger {
    background-color: var(--secondary-color) !important;
    color: var(--text-dark) !important;
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background-color: #ffcd57 !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Section Titles */
.section-title {
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
    position: relative;
    display: inline-block;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Chi Siamo Section */
#chi-siamo {
    background-color: var(--light-bg);
}

#chi-siamo .lead {
    color: var(--text-light);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
}

#chi-siamo p {
    color: var(--text-light);
    font-size: 1.05rem;
}

.feature-image {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-image:hover {
    transform: scale(1.02);
}

/* Specialità Section */
.specialita-section {
    background: linear-gradient(135deg, #f5f5f5 0%, #fff 100%);
}

.specialty-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid transparent;
}

.specialty-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-top-color: var(--secondary-color);
}

.specialty-icon {
    font-size: 3rem;
    color: var(--primary-color);
}

.specialty-title {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.specialty-text {
    color: var(--text-light);
    line-height: 1.8;
}

/* Menu Section */
#menu {
    background-color: var(--light-bg);
}

.menu-tabs {
    border-bottom: 2px solid #ddd;
    margin-bottom: 2rem;
}

.menu-tabs .nav-link {
    color: var(--text-dark);
    border: none;
    font-weight: 700;
    padding: 0.75rem 1.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.menu-tabs .nav-link:hover {
    color: var(--primary-color);
    border: none;
}

.menu-tabs .nav-link.active {
    color: var(--primary-color);
    background: none;
    border: none;
    border-bottom: 3px solid var(--secondary-color);
}

.menu-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border-left: 4px solid var(--secondary-color);
}

.menu-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
    transform: translateX(5px);
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 0.5rem;
}

.menu-item-title {
    color: var(--primary-color);
    font-weight: 900;
    margin: 0;
    font-size: 1.1rem;
}

.menu-item-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.1rem;
    white-space: nowrap;
    margin-left: 1rem;
}

.menu-item-description {
    color: var(--text-dark);
    font-size: 0.95rem;
    margin: 0;
    font-style: italic;
    font-weight: 500;
}

/* Prodotti Section */
.prodotti-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    position: relative;
    overflow: hidden;
}

.prodotti-section .section-title {
    color: white;
}

.prodotti-section .section-title::after {
    background: var(--secondary-color);
}

.prodotti-section p {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.prodotti-section .lead {
    color: white;
}

.prodotti-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: transparent;
    border-radius: 50%;
    z-index: 0;
}

.prodotti-section .container {
    position: relative;
    z-index: 1;
}

/* Contatti Section */
#contatti {
    background-color: var(--light-bg);
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.contact-card h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

.contact-item i {
    font-size: 1.3rem;
}

.contact-item a {
    color: var(--primary-color);
    font-weight: 600;
}

.contact-item a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    color: white;
    font-size: 1rem;
}

.social-btn.facebook {
    background-color: #1877F2;
}

.social-btn.facebook:hover {
    background-color: #0a66c2;
    transform: translateY(-3px);
}

.social-btn.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-btn.instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(224, 102, 255, 0.4);
}

.payment-methods {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--text-dark);
    border-top: 3px solid var(--secondary-color);
}

footer p {
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-title::after {
        width: 60px;
    }

    .menu-item-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .menu-item-price {
        margin-left: 0;
    }

    .social-links {
        flex-direction: column;
    }

    .social-btn {
        justify-content: center;
    }

    .nav-link {
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 400px;
    }

    .hero-content h1 {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-danger {
        padding: 0.6rem 1.5rem;
        font-size: 0.95rem;
    }
}


.bg-light {
    background-color: var(--light-bg) !important;
}

/* Tab Pane Animations */
.tab-pane {
    animation: fadeIn 0.5s ease;
}

/* Smooth transitions for all interactive elements */
a,
button {
    transition: all 0.3s ease;
}

/* Focus states for accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Gallery Section Styles */
.gallery-container {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.gallery-scroll {
    display: flex;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.gallery-scroll:hover {
    animation-play-state: paused;
}

.gallery-item {
    width: 350px;
    height: 250px;
    margin: 0 15px;
    border-radius: 15px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    z-index: 10;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .gallery-item {
        width: 280px;
        height: 200px;
        margin: 0 10px;
    }
}