/* --- CSS Variables: Dark Blue / White Theme --- */
:root {
    --bg-dark: #07101E;
    /* Midnight Blue profondo */
    --bg-darker: #040A14;
    --bg-light: #F8FAFC;
    --text-light: #E2E8F0;
    --text-primary: #FFFFFF;
    --accent: #3B82F6;
    /* Blu acceso per piccoli dettagli */
    --accent-red: #E11D48;
    /* Da usare con molta parsimonia per richiamo "pizza/pomodoro" */

    --font-main: 'Outfit', sans-serif;

    --transition: all 0.3s ease-in-out;
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* --- Splash Screen --- */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    animation: fadeOutSplash 1s forwards;
    animation-delay: 2s;
    /* L'intro resta visibile per 2 secondi interi */
    pointer-events: none;
    /* Permette di non bloccare il sito mentre sfuma */
}

.splash-content {
    animation: scaleUp 2.5s ease-in-out forwards;
}

.splash-logo {
    width: 250px;
    height: auto;
    margin: 0 auto 20px;
    object-fit: contain;
}

.splash-text {
    font-size: 2rem;
    color: #94A3B8;
    letter-spacing: 2px;
    font-weight: 300;
}

.splash-text span {
    font-weight: 700;
}

@keyframes fadeOutSplash {
    0% {
        opacity: 1;
        visibility: visible;
        pointer-events: all;
    }

    99% {
        opacity: 0;
        visibility: visible;
        pointer-events: none;
    }

    100% {
        opacity: 0;
        visibility: hidden;
        display: none;
    }
}

@keyframes scaleUp {
    0% {
        transform: scale(0.85);
        opacity: 0;
    }

    15% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.05);
    }
}

html {
    scroll-behavior: smooth;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

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

.const-width {
    max-width: 1000px;
}

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

.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
    font-weight: 700;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.text-center.section-title::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: #94A3B8;
    margin-bottom: 3rem;
}

/* --- Navbar (Glassmorphism effect) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 20px 0;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(7, 16, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 60px;
    /* Ottima grandezza per i loghi trasparenti */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.5));
    /* Aggiunge un tocco di spessore al logo sulla barra blu */
}

.logo-text {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-links {
    font-weight: 400;
    font-size: 1.05rem;
    position: relative;
    transition: var(--transition);
}

.nav-links:hover {
    color: var(--text-primary);
}

.nav-links::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

.nav-links:hover::after {
    width: 100%;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* --- Hero Section --- */
.hero {
    height: 100vh;
    background-color: #f0ece4;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center 40%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    /* Animazioni rimosse come richiesto */
}

/* Effetto luce a scorrimento (shimmer) sopra il logo */
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%
    );
    z-index: 2;
    /* Animazione shimmer rimossa */
    pointer-events: none;
}

@keyframes heroZoomIn {
    0%   { background-size: 70%; opacity: 0.3; }
    60%  { background-size: 95%; opacity: 1; }
    80%  { background-size: 87%; }
    100% { background-size: 90%; opacity: 1; }
}

@keyframes heroPulse {
    0%   { background-size: 90%; }
    50%  { background-size: 93%; }
    100% { background-size: 90%; }
}

@keyframes shimmerSweep {
    0%   { left: -100%; }
    40%  { left: 120%; }
    100% { left: 120%; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(240, 236, 228, 0) 0%,
        rgba(7, 16, 30, 0.7) 85%,
        rgba(7, 16, 30, 0.97) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 4rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: var(--navy); /* Testo scuro per contrasto con lo sfondo chiaro */
    opacity: 1;
}

.hero h2 {
    font-size: 2rem;
    color: rgba(7, 16, 30, 0.7);
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 1;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: rgba(7, 16, 30, 0.6);
    opacity: 1;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    color: var(--bg-dark);
    background-color: var(--text-primary);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 30px;
    transition: var(--transition);
    border: 2px solid var(--text-primary);
}

.cta-button:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.cta-button.outline {
    background-color: transparent;
    color: var(--text-primary);
}

.cta-button.outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-dark);
}

/* --- Sections Common --- */
.section-padding {
    padding: 100px 0;
}

.border-bottom {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

/* --- About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.about-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.menu-category h4 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.item-details {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.item-desc {
    font-size: 0.95rem;
    color: #94A3B8;
    margin-top: 5px;
}

/* --- Quality Section --- */
.quality-section {
    background-color: var(--bg-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    text-align: center;
}

.quality-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.quality-card:hover {
    transform: translateY(-10px);
    background: rgba(59, 130, 246, 0.05);
    border-color: var(--accent);
}

.quality-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.quality-card h4 {
    margin-bottom: 15px;
    font-size: 1.3rem;
    color: var(--text-primary);
}

.quality-card p {
    font-size: 1rem;
    color: #94A3B8;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-item {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 4/3;
}

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

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

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.info-block {
    margin-bottom: 30px;
}

.info-block h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.phone-link {
    display: inline-block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: 10px;
}

.dark-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-card h4 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    text-align: center;
    color: var(--text-primary);
}

.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hours-list li:last-child {
    border-bottom: none;
}

.text-highlight {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Footer --- */
footer {
    background-color: #030712;
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    margin-bottom: 20px;
}

.footer-logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo p {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 5px;
}

@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        width: 100%;
        height: 100vh;
        top: 0;
        left: -100%;
        background-color: var(--bg-dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        font-size: 1.5rem;
    }

    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .menu-toggle {
        z-index: 1001;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* --- Contest Banner --- */
.contest-banner {
    position: fixed;
    bottom: -120px; /* Parte nascosto */
    left: 0;
    width: 100%;
    z-index: 9998;
    animation: slideUpBanner 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 3s forwards;
}

.contest-banner-inner {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #1a1200, #2d1f00, #1a1200);
    border-top: 2px solid #C9A84C;
    padding: 14px 25px;
    flex-wrap: nowrap;
}

.contest-banner-icon {
    font-size: 1.8rem;
    animation: trophyPulse 1.5s ease-in-out infinite;
    flex-shrink: 0;
}

.contest-banner-text {
    flex: 1;
    min-width: 0;
}

.contest-banner-text strong {
    display: block;
    color: #C9A84C;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-family: 'Outfit', sans-serif;
}

.contest-banner-text span {
    color: #E2E8F0;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
}

.contest-banner-btn {
    display: inline-block;
    padding: 9px 22px;
    background: linear-gradient(135deg, #C9A84C, #F0D080, #C9A84C);
    color: #07101E;
    font-weight: 700;
    font-size: 0.88rem;
    border-radius: 25px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(201,168,76,0.4);
}

.contest-banner-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201,168,76,0.6);
}

.contest-banner-close {
    background: transparent;
    border: 1px solid rgba(201,168,76,0.4);
    color: #94A3B8;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.75rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contest-banner-close:hover {
    border-color: #C9A84C;
    color: #C9A84C;
}

@keyframes slideUpBanner {
    from { bottom: -120px; }
    to   { bottom: 0; }
}

@keyframes trophyPulse {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25%  { transform: scale(1.2) rotate(-5deg); }
    75%  { transform: scale(1.2) rotate(5deg); }
}

@media screen and (max-width: 768px) {
    .contest-banner-inner {
        padding: 12px 15px;
        gap: 10px;
    }
    .contest-banner-text span { display: none; } /* Nasconde la descrizione lunga su mobile */
    .contest-banner-text strong { font-size: 0.78rem; }
}