/* ============================================
   RESET & BASE STYLES
============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: #c62828;
    --light-beige: #fbe9e7;
    --dark-text: #2c2c2c;
    --white: #ffffff;
    --shadow: rgba(198, 40, 40, 0.2);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

img {
    max-width: 100%;
    display: block;
}

/* ============================================
   NAVIGATION
============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: transparent;
    box-shadow: none;
    z-index: 1000;
    transition: opacity 0.3s ease, background 0.4s ease, box-shadow 0.4s ease;
    transform: none !important;
}

.navbar.scrolled {
    background: #c62828;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    opacity: 1 !important;
    visibility: visible !important;
}

.navbar.scrolled .nav-content {
    padding: 0.75rem 0;
}

.logo {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

.navbar.scrolled .logo {
    height: 80px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links li {
    opacity: 1 !important;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    position: relative;
    opacity: 1 !important;
    visibility: visible !important;
}

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

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

.nav-links a:not(.btn-menu)::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c62828;
    transition: width 0.3s ease;
}

.nav-links a:not(.btn-menu):hover::after {
    width: 100%;
}

/* Menu button styled like other nav links */
.btn-menu {
    background: none;
    color: var(--white);
    padding: 0;
    border-radius: 0;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.btn-menu:hover {
    background: none;
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.btn-menu::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c62828;
    transition: width 0.3s ease;
}

.btn-menu:hover::after {
    width: 100%;
}

.navbar.scrolled .btn-menu {
    color: var(--white);
}

/* Language Switch */
.lang-switch {
    background: none;
    border: none;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    position: relative;
    transition: color 0.3s ease;
}

.lang-switch::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c62828;
    transition: width 0.3s ease;
}

.lang-switch:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    transition: all 0.3s ease;
}

.navbar.scrolled .hamburger span {
    background: var(--white);
}

/* ============================================
   HERO SECTION
============================================ */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    /* Maximum video stabilization effect */
    transform: scale(1.35);
    filter: blur(1.5px) brightness(0.95);
    transition: filter 0.3s ease;
    pointer-events: none !important;
}

.hero-video video:hover {
    filter: blur(1px) brightness(0.95);
}

/* Hide video controls completely on all browsers */
.hero-video video::-webkit-media-controls {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-video video::-webkit-media-controls-enclosure {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-video video::-webkit-media-controls-panel {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-video video::-webkit-media-controls-play-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-video video::-webkit-media-controls-start-playback-button {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.hero-video-click-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: default;
}

.hero-image-mobile {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

.hero-mobile-img {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    object-fit: cover;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.45), rgba(44, 44, 44, 0.50));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 2rem;
}

.hero-title {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(50px);
    letter-spacing: 2px;
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 300;
    margin-bottom: 2rem;
    letter-spacing: 3px;
    opacity: 0;
    transform: translateY(50px);
}

.btn-primary {
    display: inline-block;
    background: transparent;
    color: var(--white);
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    border: 2px solid var(--white);
    border-radius: 30px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    left: -100%;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transition: left 0.5s ease;
    z-index: -1;
    border-radius: 30px;
}

.btn-primary:hover::before {
    left: 0;
}

.btn-primary:hover {
    color: #2c2c2c;
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--white);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ============================================
   SECTION STYLES
============================================ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
}

/* Gallery section has light background, so title is red */
.galleria .section-title {
    color: #c62828;
}

.galleria .title-underline {
    background: #c62828;
}

.galleria .section-subtitle {
    color: #666;
    opacity: 1;
}

.title-underline {
    width: 100px;
    height: 4px;
    background: #c62828;
    margin: 0 auto;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--white);
    margin-top: 1rem;
    opacity: 0.9;
}

/* ============================================
   CHI SIAMO SECTION
============================================ */
.chi-siamo {
    padding: 100px 0;
    background: #c62828;
}

.chi-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.chi-siamo-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.text-block {
    opacity: 0;
    transform: translateX(-50px);
}

.text-block h3 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.text-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--white);
}

.chi-siamo-images {
    display: grid;
    gap: 2rem;
}

.image-card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    transform: translateX(50px);
}

.image-card img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-card:hover img {
    transform: scale(1.1);
}

/* ============================================
   GALLERIA SECTION
============================================ */
.galleria {
    padding: 100px 0;
    background: #fbe9e7;
}

.pizza-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
}

.pizza-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.pizza-card {
    min-width: 250px;
    max-width: 250px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.pizza-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.pizza-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 1rem;
}

.pizza-carousel-dots .carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(198, 40, 40, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.pizza-carousel-dots .carousel-dot.active {
    background: #c62828;
    transform: scale(1.2);
}

/* ============================================
   BIRRE ARTIGIANALI SECTION
============================================ */
.birre-artigianali {
    padding: 100px 0;
    background: #fbe9e7;
}

.birre-artigianali .section-title {
    color: #c62828;
}

.birre-artigianali .title-underline {
    background: #c62828;
}

.birre-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.birre-text h3 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 1.75rem;
    color: #c62828;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0;
}

.birre-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    opacity: 0;
}

.birre-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.birre-logo img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .birre-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   RECENSIONI SECTION
============================================ */
.recensioni {
    padding: 100px 0;
    background: #c62828;
}

.reviews-carousel-wrapper {
    position: relative;
    overflow: hidden;
    padding-bottom: 3rem;
}

.reviews-carousel {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s ease;
}

.review-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: calc(33.333% - 1.333rem);
    min-width: calc(33.333% - 1.333rem);
    max-width: calc(33.333% - 1.333rem);
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

@media (max-width: 968px) {
    .review-card {
        min-width: calc(50% - 1rem);
    }
}

@media (max-width: 600px) {
    .review-card {
        min-width: 100%;
    }
}

.review-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(198, 40, 40, 0.15);
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #c62828;
}

.carousel-dot.active {
    background: #c62828;
    transform: scale(1.3);
}

.stars {
    color: #c62828;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.review-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author strong {
    color: #c62828;
    font-size: 1.1rem;
}

.review-author span {
    color: #666;
    font-size: 0.9rem;
}

/* ============================================
   PRENOTA SECTION
============================================ */
.prenota {
    padding: 100px 0;
    background: #c62828;
    text-align: center;
    overflow: visible;
}

.prenota-content {
    max-width: 700px;
    margin: 0 auto;
}

.prenota-title {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--white);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 2px;
}

.prenota-text {
    font-size: 1.3rem;
    color: var(--white);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.prenota-buttons {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-prenota {
    display: inline-flex !important;
    align-items: center;
    gap: 0.8rem;
    background: var(--light-beige);
    color: #c62828;
    padding: 0.8rem 2rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    opacity: 1 !important;
    visibility: visible !important;
}

.btn-prenota:hover {
    background: var(--white);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================
   DOVE SIAMO SECTION
============================================ */
.dove-siamo {
    padding: 100px 0;
    background: #fbe9e7;
}

.dove-siamo .section-title {
    color: #c62828;
}

.dove-siamo .title-underline {
    background: #c62828;
}

.dove-siamo-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: start;
}

.dove-siamo-info h3 {
    font-family: 'Special Gothic Expanded One', sans-serif;
    font-size: 2rem;
    color: #c62828;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.indirizzo {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--dark-text);
    margin-bottom: 2rem;
}

.indirizzo strong {
    color: #c62828;
    font-size: 1.3rem;
}

.info-block {
    margin-bottom: 2rem;
}

.info-block h4 {
    font-size: 1.3rem;
    color: #c62828;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.info-block p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

.info-block a {
    color: #c62828;
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-block a:hover {
    color: #a02020;
}

.dove-siamo-map {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 968px) {
    .dove-siamo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ============================================
   FOOTER
============================================ */
.footer {
    background: #1a1a1a;
    color: var(--white);
    padding: 4rem 0 2rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #c62828;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 90px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: brightness(0) invert(1);
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-family: 'Special Gothic Expanded One', sans-serif;
    letter-spacing: 1px;
}

.footer-section p {
    line-height: 1.8;
    color: var(--white);
    opacity: 0.9;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.social-links a:hover {
    background: var(--white);
    color: #c62828;
    transform: translateY(-5px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
    color: var(--light-beige);
    opacity: 0.8;
    font-size: 0.85rem;
}

/* ============================================
   RESPONSIVE DESIGN
============================================ */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        position: relative;
    }

    .container {
        padding: 0 20px;
        max-width: 100%;
    }

    .navbar {
        width: 100%;
        max-width: 100%;
    }

    .navbar .container {
        padding: 0 20px;
        max-width: 100%;
    }

    .nav-content {
        padding: 1rem 0;
        max-width: 100%;
    }

    .navbar.scrolled .nav-content {
        padding: 0.75rem 0;
    }

    .logo {
        height: 60px;
        filter: brightness(0) invert(1) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5)) !important;
        opacity: 1 !important;
    }

    .navbar.scrolled .logo {
        height: 50px;
    }

    /* Hide video and show static image on mobile */
    .hero-video {
        display: none !important;
    }

    .hero {
        height: 100vh;
        min-height: 100vh;
        max-height: 100vh;
        position: relative;
        overflow: hidden;
    }

    .hero-image-mobile {
        display: block !important;
    }

    .hero-mobile-img {
        transform: translate(-50%, -50%) scale(1.001) !important;
        -webkit-transform: translate(-50%, -50%) scale(1.001) !important;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    .hero-overlay {
        z-index: 1;
    }

    .hero-content {
        z-index: 2;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -280px;
        flex-direction: column;
        background: #c62828;
        width: 280px;
        height: 100vh;
        padding: 100px 2rem 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.3s ease;
        align-items: flex-start;
        z-index: 999;
        gap: 2rem;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        color: var(--white);
        font-size: 1.2rem;
    }

    .nav-links li {
        opacity: 1;
        transform: none;
        width: 100%;
    }

    .btn-menu {
        background: none !important;
        color: var(--white) !important;
        padding: 0;
        border-radius: 0;
        display: inline-block;
        width: auto;
    }

    .btn-menu:hover {
        background: none !important;
        color: var(--white) !important;
        transform: none !important;
    }

    .lang-switch {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
        position: relative;
        padding: 10px;
        border-radius: 5px;
        transition: all 0.3s ease;
    }

    .hamburger.active {
        background: rgba(0, 0, 0, 0.3);
    }

    .chi-siamo-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .reviews-container {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-logo {
        margin: 0 auto 1rem;
    }

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

    .pizza-card {
        min-width: 250px;
        flex-shrink: 0;
    }

    .prenota {
        overflow: visible;
    }

    .prenota-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-prenota {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .review-card {
        min-width: 90%;
        flex-shrink: 0;
    }

    .birre-text p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .logo {
        height: 60px;
    }

    .navbar.scrolled .logo {
        height: 50px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-primary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

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