/* === CUSTOM STYLES FOR GRILLO PIZZERIA === */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #102a43;
}
::-webkit-scrollbar-thumb {
    background: #d4603c;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #b84726;
}

/* Selection color */
::selection {
    background: #d4603c;
    color: white;
}

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(16, 42, 67, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

#navbar.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile menu */
#mobile-menu.open {
    transform: translateX(0);
}

.menu-line:nth-child(1) {
    transform-origin: center;
}
.menu-line:nth-child(2) {
    transform-origin: center;
}
.menu-line:nth-child(3) {
    transform-origin: center;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}
#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Feature cards */
.feature-card {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.feature-card:last-child {
    border-right: none;
}

/* Menu cards */
.menu-card {
    position: relative;
    overflow: hidden;
}
.menu-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d4603c, #e5a84b);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}
.menu-card:hover::before {
    transform: scaleX(1);
}

/* Gallery items */
.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
}
.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16, 42, 67, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.gallery-item:hover::after {
    opacity: 1;
}

/* Testimonial cards */
.testimonial-card {
    position: relative;
}
.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 8rem;
    font-family: 'Playfair Display', serif;
    color: rgba(212, 96, 60, 0.1);
    line-height: 1;
    pointer-events: none;
}

/* Fade-in animations for scroll */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back to top */
#back-to-top.show {
    opacity: 1;
    pointer-events: all;
}

/* Input focus styles */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 96, 60, 0.15);
}

/* Form select arrow */
select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.75rem center;
    background-repeat: no-repeat;
    background-size: 1.25em 1.25em;
    padding-right: 2.5rem;
}

/* Italian flag stripe animation */
@keyframes stripeFlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Responsive typography adjustments */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.2;
    }
}

/* Print styles */
@media print {
    #navbar, #back-to-top, .animate-float, .animate-float-delayed {
        display: none !important;
    }
    body {
        color: #000;
        background: #fff;
    }
}
