@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-display-700.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Inter';
    src: url('fonts/inter-bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Colors */
    --primary: #008C45; /* Italian Green */
    --secondary: #CD212A; /* Italian Red */
    --accent: #D4AF37; /* Gold */
    --background: #FDFCF8; /* Warm Off-white */
    --text: #1A1A1A;
    --text-muted: #555;
    --white: #FFFFFF;
    
    /* Typography */
    --font-heading: 'Bebas Neue', sans-serif; /* Back to original impact font */
    --font-body: 'Inter', sans-serif;
    
    /* Spacing */
    --spacer: 0.75rem; /* Tighter basis */
    --section-padding: 4rem 1.5rem; /* More compact global padding */
    
    /* Transitions */
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); /* Smoother premium easing */

    /* Mobile Specific */
    --section-padding-mobile: 2.5rem 1.25rem;
}

/* Screen Reader Only - visually hidden but accessible */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Skip Link for Accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    font-weight: 600;
    z-index: 10000;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

.hide-mobile {
    display: block;
}

@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 0.95; /* Tighter for Bebas */
    letter-spacing: 0.5px; /* Slight spacing for readability */
    margin-bottom: 0.4em; /* Standardized tighter proximity */
}

h1 {
    letter-spacing: 1px; /* Slightly more for big titles */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default to cover to prevent distortion if dimensions are forced */
}

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

/* Sections */
section {
    padding: var(--section-padding);
}

@media (max-width: 768px) {
    section {
        padding: 2.5rem 1.25rem; /* Reduced mobile padding for faster rhythm */
    }
}

.tight-section {
    padding: 4rem 0;
}

@media (max-width: 768px) {
    .tight-section {
        padding: 2.5rem 0;
    }
}

.no-padding-bottom {
    padding-bottom: 0 !important;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.grid-3-col > div {
    text-align: center;
}

.grid-3-col > div p {
    margin-left: auto;
    margin-right: auto;
    max-width: 90%;
}

@media (max-width: 992px) {
    .grid-3-col {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.about-image {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9; /* Standardize most about images */
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .about-image {
        max-height: 250px;
        object-fit: cover;
    }
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: block;
    color: var(--secondary);
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Standardized Large Section Headings */
.section-title h2, 
.about-content h2,
.formats-container h2 {
    font-size: 3.5rem; /* Large, but smaller than Hero (5rem) */
    line-height: 0.9;
    margin-bottom: 1.5rem; /* Tighter */
}

/* Hero Heading Override */
.hero h1 {
    font-size: 5rem;
    line-height: 1;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .section-title h2, 
    .about-content h2,
    .formats-container h2 {
        font-size: 2.25rem; /* Better density */
        margin-bottom: 1rem;
    }
    
    .section-title {
        margin-bottom: 1.5rem;
    }

    .hero-subpage .h1-hero {
        font-size: 3rem; /* Tighter for mobile */
    }
}

/* Footer Social Icons */
.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    fill: white;
    transition: var(--transition);
    opacity: 0.8;
}

.formats-container, .about-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

@media (max-width: 992px) {
    .formats-container, .about-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .formats-container, .about-container {
        gap: 2rem;
    }
}

.formats-list {
    margin-top: 2rem;
}

.format-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    transition: var(--transition);
}

.format-item:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .format-item {
        padding: 1.25rem 0;
    }
    .format-item .format-content h3 {
        font-size: 1.5rem;
    }
}

.format-item .format-content h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
    transition: var(--transition);
}

.format-item .format-content p {
    color: var(--text-muted);
    font-size: 1rem;
}

.format-item .plus-icon {
    font-size: 1.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.format-item:hover {
    padding-left: 1rem;
}

.format-item:hover .format-content h3 {
    color: var(--secondary);
}

.format-item:hover .plus-icon {
    transform: rotate(90deg);
}

@media (max-width: 992px) {
    /* Handled in .formats-container block */
}

.social-icon:hover {
    opacity: 1;
    fill: var(--secondary);
    transform: translateY(-3px);
}

/* Footer Grid Design */
footer {
    background: #0A0A0A; /* Deeper black */
    color: var(--white);
    padding: 6rem 0 0 0;
    text-align: left; /* Align left for columns */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 2rem;
}

.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255,255,255,0.4);
    margin-bottom: 2rem;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 1rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 2rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.4);
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: inherit;
    transition: var(--transition);
}

.footer-legal-links a:hover {
    color: var(--white);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-mission {
        grid-column: span 2;
        margin-bottom: 1.5rem;
    }
    .footer-office {
        grid-column: span 2;
        margin-bottom: 0.5rem;
    }
    
    /* Two-column layout for office section on mobile */
    .footer-office-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
        align-items: start;
    }
    
    /* Ensure clickable links have proper touch targets */
    .footer-office-contact a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    
    /* Tighter label spacing on mobile too */
    .footer-office-contact strong,
    .footer-office-address strong {
        margin-bottom: 0.15rem !important;
    }
    
    .footer-office-contact a:hover {
        color: var(--secondary) !important;
        text-decoration: underline;
    }
    
    .footer-links-col {
        grid-column: 1;
    }
    .footer-social {
        grid-column: 2;
    }
}

/* Desktop: Tighter label spacing, more space between sections */
@media (min-width: 769px) {
    .footer-office-grid {
        display: block;
    }
    
    /* Tighter spacing between label and value on desktop */
    .footer-office-contact strong {
        margin-bottom: 0.15rem !important;
    }
    
    .footer-office-contact p {
        margin-bottom: 0.5rem !important;
    }
    
    /* More space between address and contact info */
    .footer-office-contact {
        margin-top: 1.5rem;
    }
    
    .footer-office-contact a:hover {
        color: var(--secondary) !important;
        text-decoration: underline;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        gap: 1.5rem;
    }
    .footer-col h4 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem; /* Standardized */
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-align: center;
    gap: 0.5rem;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(205, 33, 42, 0.2);
}

.btn-primary:hover {
    background-color: #b01a22;
    box-shadow: 0 10px 25px rgba(205, 33, 42, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
/* Header */
#header {
    background: transparent;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.7); /* More transparent */
    backdrop-filter: blur(15px) saturate(180%); /* Enhanced glassmorphism */
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    padding: 0.75rem 0; /* Slightly tighter on scroll */
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative; /* Anchor for absolute mobile toggle */
}

.logo {
    display: block;
    line-height: 0;
}

.logo img {
    height: 60px;
    width: auto;
    transition: height 0.3s ease;
}

#header.scrolled .logo img {
    height: 50px;
}

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

.nav-links li {
    position: relative;
}

.nav-links a {
    font-weight: 600;
    color: var(--text);
    font-size: 1rem;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

/* Mega Menu Dropdown */
.dropdown-content {
    display: block;
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--white);
    min-width: 380px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    border-radius: 20px;
    padding: 1rem;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrow pointer */
.dropdown-content::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid var(--white);
}

.dropdown:hover .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    margin-left: 6px;
    transition: transform 0.3s ease;
}

.dropdown:hover > a::after {
    transform: rotate(-135deg) translateY(0);
}

.dropdown-content li {
    display: block;
    width: 100%;
}

.dropdown-content li + li {
    margin-top: 0.25rem;
}

/* Mega Menu Item */
.mega-menu-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1rem;
    border-radius: 12px;
    color: var(--text) !important;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mega-menu-item:hover {
    background: linear-gradient(135deg, rgba(205, 33, 42, 0.08) 0%, rgba(205, 33, 42, 0.03) 100%);
    transform: translateX(4px);
}

.mega-menu-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary) 0%, #e63946 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 12px rgba(205, 33, 42, 0.25);
    transition: all 0.2s ease;
}

.mega-menu-icon svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    fill: white !important;
    display: block;
    flex-shrink: 0;
}

.mega-menu-item:hover .mega-menu-icon {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(205, 33, 42, 0.35);
}

.mega-menu-text {
    flex: 1;
}

.mega-menu-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 0.15rem;
    display: block;
}

.mega-menu-item:hover .mega-menu-title {
    color: var(--secondary);
}

.mega-menu-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
    display: block;
}

/* Active state for mega menu items */
.mega-menu-item.active {
    background: linear-gradient(135deg, rgba(205, 33, 42, 0.1) 0%, rgba(205, 33, 42, 0.05) 100%);
}

.mega-menu-item.active .mega-menu-title {
    color: var(--secondary);
}

/* Navigation Links Hover Effect */
.nav-links > li > a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--secondary);
    transition: width 0.3s ease;
}

.nav-links > li > a:hover::before,
.nav-links > li > a.active::before {
    width: 100%;
}

/* Exclude hover line for dropdown items if desired, or keep it */
.dropdown-content a::before {
    display: none;
}

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

@media (max-width: 992px) {
    .hero .container, .about .container, #contact .container {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }
    .hero-content {
        order: 2;
    }
    .hero-image {
        order: 1;
    }
    .hero h1 {
        font-size: 3rem !important;
    }
    .hero {
        padding-top: 6rem !important;
        padding-bottom: 3rem !important;
        min-height: auto !important;
    }
    .hero .container {
        gap: 2rem !important;
    }
    .about-content {
        order: 2;
    }
    .about-images {
        order: 1;
    }
    .hero-image img {
        max-height: 250px;
        width: 100%;
        object-fit: cover;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .stats .container > div {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* Card Hover */
.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

/* Form focus */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 140, 69, 0.1);
}

/* Micro-animations */
@keyframes float {
    0% { transform: translateY(0px) rotate(2deg); }
    50% { transform: translateY(-10px) rotate(2deg); }
    100% { transform: translateY(0px) rotate(2deg); }
}

.hero-image {
    position: relative;
    animation: heroImageEntrance 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
}

@keyframes heroImageEntrance {
    0% {
        opacity: 0;
        transform: translate3d(30px, 20px, 0) rotate(2deg);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0) rotate(-2deg);
    }
}

.hero-image img {
    animation: float 6s ease-in-out infinite;
    animation-delay: 1.2s; /* Start floating after entrance */
    width: 100%;
    height: auto;
    aspect-ratio: 4/3; /* Standardize hero image aspect ratio */
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15);
}

/* Scroll Indicator */
.hero {
    position: relative !important;
    overflow: hidden;
    padding: 8rem 0 4rem 0; /* Standardized desktop hero padding */
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(0, 140, 69, 0.05), transparent 40%);
}

.hero-subpage {
    padding: 8rem 0 3rem 0; /* Slightly tighter for subpages */
    min-height: auto;
}

@media (max-width: 768px) {
    .hero {
        padding: 6rem 0 2rem 0;
    }
    .hero-subpage {
        padding: 5rem 0 1.5rem 0;
    }
}


.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 10;
    cursor: pointer;
    transition: var(--transition);
}

.scroll-indicator:hover {
    bottom: 1.5rem;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid var(--text);
    border-radius: 20px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--secondary);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-wheel 2s ease-out infinite;
}

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

@media (max-width: 768px) {
    .scroll-indicator {
        display: none; /* Hide on small mobile to avoid overlapping */
    }
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.team-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    height: 400px; /* Fixed height for consistency */
}

@media (max-width: 768px) {
    .team-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    .team-card {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}

.team-image {
    width: 100%;
    height: 100%;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

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

.team-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(205, 33, 42, 0.9); /* var(--secondary) with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-info {
    text-align: center;
    color: var(--white);
    transform: translateY(30px); /* Start from below */
    opacity: 0;
    transition: all 0.4s ease 0.1s; /* Delay for nice effect */
}

.team-card:hover .team-info {
    transform: translateY(0);
    opacity: 1;
}

.team-info h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.team-role {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
}
/* Previous Slider CSS Removed */

/* Pizza Slider Final (Consolidated) */
.slider-container {
    padding: 5rem 0; /* Max width usage */
    background: var(--background);
    text-align: center;
    overflow: hidden;
}

.slider-wrapper {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding: 2rem 1.0rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-behavior: smooth;
}

.slider-wrapper::-webkit-scrollbar {
    display: none;
}

.pizza-card {
    /* Mobile: 1 item partial */
    flex: 0 0 85%;
    scroll-snap-align: center;
    text-align: center;
    position: relative;
    padding: 1rem;
    transition: var(--transition);
}

.pizza-card img {
    width: 100%;
    /* Max size mobile */
    max-width: 400px;
    aspect-ratio: 1/1;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.4s ease;
}

.pizza-card:hover img {
    transform: rotate(5deg) scale(1.05);
}

.pizza-card h3 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.pizza-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}

/* Tablet */
@media (min-width: 600px) {
    .pizza-card {
        flex: 0 0 calc(50% - 1rem);
    flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .slider-container {
        padding: 1.5rem 0;
    }
    .slider-container .section-title {
        margin-bottom: 0.75rem;
    }
    .slider-wrapper {
        margin-bottom: 0.25rem;
    }
}

/* Desktop: 3 items, FULL SIZE images */
@media (min-width: 900px) {
    .slider-container {
        padding: 4rem 2rem;
    }
    .slider-wrapper {
        gap: 1rem;
        padding: 1.5rem 0;
    }
    .pizza-card {
        /* 3 items */
        flex: 0 0 calc(33.333% - 0.66rem);
    }
    .pizza-card img {
        /* DOUBLED SIZE logic: Allow full container width */
        max-width: 100%; 
        /* Ensure they can reach 500px+ if container allows */
        width: 100%; 
    }
}

/* Large Desktop */
@media (min-width: 1200px) {
    .pizza-card img {
        /* Cap only at a very large size */
        max-width: 500px;
    }
}

/* Slider Controls (Dots) */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.slider-dot {
    width: 10px;
    height: 10px;
    background-color: #ddd;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-dot.active {
    background-color: var(--secondary);
    width: 30px; /* Pill shape */
}

/* Hero Background Scrolling Text */
.hero-bg-text {
    position: absolute;
    bottom: 5rem; /* "Position effect... at lower edge of section" */
    left: 0;
    width: 100%;
    /* Removed top: 50% / transform center */
    z-index: 1; 
    pointer-events: none; 
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Tighter gap */
}

.bg-text-row {
    font-family: var(--font-heading);
    letter-spacing: 2px;
    /* Responsive Font Size: clamp(min, pref, max) */
    /* "Adjust font size depending on screensize" -> Reduced */
    font-size: clamp(3rem, 12vw, 10rem); 
    font-weight: 400; 
    color: rgba(0, 0, 0, 0.02); /* Reduced contrast (was 0.03) */
    white-space: nowrap;
    line-height: 0.85;
    text-transform: uppercase;
    will-change: transform;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .bg-text-row {
        /* On mobile, maybe clamp handles it, but ensures safety */
        line-height: 0.9;
    }
    .hero-bg-text {
        bottom: 2rem;
    }
}

/* Morphing Mobile Menu Round 2 (Links-as-Lines) */
#mobile-toggle {
    position: absolute;
    left: -100vw;
    top: -100vh;
}

.toggle-container {
    display: none;
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2100;
    width: 30px;
    height: 30px;
}

.button-toggle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 25px;
    height: 25px;
    z-index: 2101;
}

.button-toggle:before, .button-toggle:after {
    position: absolute;
    content: '';
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--secondary);
    border-radius: 5px;
    transition: 0.5s;
}

.button-toggle:before { transform: translateY(-50%) rotate(45deg) scale(0); }
.button-toggle:after { transform: translateY(-50%) rotate(-45deg) scale(0); }

#mobile-toggle:checked ~ .toggle-container .button-toggle:before { transform: translateY(-50%) rotate(45deg) scale(1.2); }
#mobile-toggle:checked ~ .toggle-container .button-toggle:after { transform: translateY(-50%) rotate(-45deg) scale(1.2); }

/* The Menu Overlay (Box on Top) */
.nav-morph {
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 30px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2050;
    pointer-events: none;
    background-color: transparent;
}

#mobile-toggle:checked ~ .nav-morph {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    height: 100vh; /* Full height immersive box */
    justify-content: center;
    align-items: center;
    background-color: #0A0A0A; /* Premium dark background */
    backdrop-filter: blur(10px);
    pointer-events: auto;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.nav-item-morph {
    position: relative;
    display: block;
    color: transparent;
    font-family: var(--font-heading);
    font-size: 2rem;
    letter-spacing: -6.2px;
    height: 7px;
    line-height: normal;
    text-transform: uppercase;
    white-space: nowrap;
    transform: scaleY(0.2);
    transition: 0.5s, opacity 1s;
    margin: 0; /* No margin when closed to form hamburger */
    text-decoration: none;
    text-align: right;
}

/* The "Lines" in the Header */
.nav-item-morph:before {
    position: absolute;
    content: '';
    top: 50%;
    right: 0; /* Align lines to right */
    width: 30px; 
    height: 3px;
    background-color: var(--primary); /* Site primary color (green) */
    transform: translateY(-50%) scaleY(1);
    transition: 0.5s;
    border-radius: 2px;
}

/* Adjusting widths for the hamburger look */
.nav-item-morph:nth-child(1) { letter-spacing: -8px; }
.nav-item-morph:nth-child(2) { letter-spacing: -7px; }
.nav-item-morph:nth-child(n + 4) { opacity: 0; pointer-events: none; } /* Hide 4th+ links when closed */

/* Transition Delays for Closing (Reverse order) */
.nav-item-morph:nth-child(1), .nav-item-morph:nth-child(1):before { transition-delay: 0s; }
.nav-item-morph:nth-child(2), .nav-item-morph:nth-child(2):before { transition-delay: 0.05s; }
.nav-item-morph:nth-child(3), .nav-item-morph:nth-child(3):before { transition-delay: 0.1s; }
.nav-item-morph:nth-child(4), .nav-item-morph:nth-child(4):before { transition-delay: 0.15s; }
.nav-item-morph:nth-child(5), .nav-item-morph:nth-child(5):before { transition-delay: 0.2s; }

/* Open State Styles */
#mobile-toggle:checked ~ .nav-morph .nav-item-morph {
    color: var(--white);
    letter-spacing: 2px;
    height: auto;
    opacity: 1;
    transform: scaleY(1);
    margin: 1.5rem 0; /* More spacing when open */
    text-align: center;
    pointer-events: auto; /* Ensure clickable when open */
}

#mobile-toggle:checked ~ .nav-morph .nav-item-morph:hover {
    color: var(--secondary); /* Red highlight on hover */
}

#mobile-toggle:checked ~ .nav-morph .nav-item-morph:before {
    opacity: 0;
}

/* Transition Delays for Opening (Forward order) */
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(1),
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(1):before { transition-delay: 0.2s; }
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(2),
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(2):before { transition-delay: 0.15s; }
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(3),
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(3):before { transition-delay: 0.1s; }
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(4),
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(4):before { transition-delay: 0.05s; }
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(5),
#mobile-toggle:checked ~ .nav-morph .nav-item-morph:nth-child(5):before { transition-delay: 0s; }

@media (min-width: 993px) {
    .toggle-container,
    .nav-morph {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
    }
    #ctaHeader {
        display: inline-flex !important;
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none !important;
    }
    .toggle-container {
        display: block;
    }
    #ctaHeader {
        display: none;
    }
    
    /* Ensure the morphing nav is visible but only occupies the header space when closed */
    .nav-morph {
        display: flex;
    }
}


/* FAQ Accordion (CSS-only details/summary) */
.faq-accordion {
    max-width: 800px;
    margin: 4rem auto 0;
}

details.faq-item {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

details.faq-item:first-of-type {
    border-top: none;
}

details.faq-item summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 0;
    cursor: pointer;
    list-style: none;
    outline: none;
}

/* Hide default arrow */
details.faq-item summary::-webkit-details-marker {
    display: none;
}

details.faq-item summary h4 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    transition: color 0.3s ease;
}

details.faq-item:hover summary h4 {
    color: var(--secondary);
}

/* Arrow Icon */
.faq-arrow {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--text);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.3s ease;
}

details.faq-item[open] .faq-arrow {
    transform: rotate(45deg);
    stroke: var(--secondary);
}

.faq-answer {
    padding-bottom: 2.5rem;
    color: var(--text-muted);
    line-height: 1.8;
    font-size: 1.15rem;
    max-width: 90%;
    animation: faqFadeIn 0.5s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    details.faq-item summary h4 {
        font-size: 1.5rem;
        padding-right: 1rem;
    }
    
    details.faq-item summary {
        padding: 2rem 0;
    }
}

/* Modern Gallery & Lightbox 2026 */
.filter-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0,0,0,0.1);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(0, 140, 69, 0.2);
}


.gallery-grid-masonry,
.gallery-grid-premium {
    columns: 3 300px;
    column-gap: 1.5rem;
    width: 100%;
}

@media (max-width: 768px) {
    .gallery-grid-masonry,
    .gallery-grid-premium {
        columns: 2 200px;
        column-gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid-masonry,
    .gallery-grid-premium {
        columns: 1;
    }
}

.gallery-item-premium {
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    background: #eee;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item-premium img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.6s ease;
    display: block;
}

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

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.item-overlay span {
    color: var(--white);
    font-weight: 600;
    font-size: 1rem;
    transform: translateY(10px);
    transition: transform 0.4s ease;
}

.gallery-item-premium:hover .item-overlay {
    opacity: 1;
}

.gallery-item-premium:hover .item-overlay span {
    transform: translateY(0);
}

/* Filtering Animations */
.gallery-item-premium.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.8);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    animation: zoomIn 0.4s ease;
}

#lightbox-caption {
    color: var(--white);
    margin-top: 1.5rem;
    font-size: 1.25rem;
    font-family: var(--font-heading);
    letter-spacing: 1px;
}

.close-lightbox {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
}

.prev-lightbox, .next-lightbox {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    padding: 2rem;
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
}

.prev-lightbox:hover, .next-lightbox:hover {
    color: var(--primary);
}

.prev-lightbox { left: 2rem; }
.next-lightbox { right: 2rem; }

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
    .gallery-grid-masonry {
        columns: 2 200px;
    }
    .close-lightbox { right: 1.5rem; top: 1.5rem; }
    .prev-lightbox, .next-lightbox { display: none; }
}

@media (max-width: 480px) {
    .gallery-grid-masonry {
        columns: 1;
    }
}

/* Premium List Styling 2026 */
.premium-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.premium-list li {
    position: relative;
    padding-left: 1.75rem;
    margin-bottom: 0.75rem;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start; /* Better for multi-line */
    text-align: left;
}

.premium-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--primary);
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
}

/* --- WhatsApp Floating Button & Modal (Premium 2026) --- */
.whats-float {
    position: fixed;
    bottom: 5%;
    right: 2%;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.whats-float:hover {
    transform: scale(1.1) rotate(10deg);
    background-color: #20ba5a;
}

.whats-float svg {
    width: 35px;
    height: 35px;
    fill: currentColor;
}

/* WhatsApp Tooltip */
.whats-float::after {
    content: "Schreib uns via WhatsApp";
    position: absolute;
    right: 75px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.whats-float:hover::after {
    opacity: 1;
    transform: translateX(0);
}

/* DSGVO Modal */
.dsgvo-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.dsgvo-modal.active {
    display: flex;
}

.dsgvo-content {
    background: var(--white);
    padding: 3rem;
    border-radius: 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.dsgvo-content h3 {
    margin-bottom: 1.5rem;
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.75rem;
}

.dsgvo-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
}

.dsgvo-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
    .whats-float {
        bottom: 2rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
    .whats-float svg {
        width: 28px;
        height: 28px;
    }
    .whats-float::after {
        display: none; /* Hide tooltip on small mobile */
    }
    .dsgvo-content {
        padding: 2rem;
    }
    .dsgvo-actions {
        flex-direction: column;
    }
}

/* --- Typography Utility Classes (2026 Standard) --- */
.h1-hero {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.h2-section {
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.h3-card {
    font-size: 2rem;
    line-height: 1.1;
    margin-bottom: 1rem;
}

/* Mobile Typography - Clear Hierarchy */
@media (max-width: 768px) {
    .h1-hero {
        font-size: 2.75rem !important;
        margin-bottom: 1rem;
    }
    
    .h2-section {
        font-size: 2rem !important;
        margin-bottom: 1.5rem;
    }
    
    .h3-card {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
}

/* --- Inquiry / Anfrage Tabs & 2-Step UI --- */
.inquiry-tabs {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tab-btn:hover:not(.active) {
    background: rgba(205, 33, 42, 0.05);
}

.inquiry-content-area {
    position: relative;
}

/* Form grid layout */
#pizzaForm {
    grid-template-columns: 1fr 1fr;
}

/* Mobile: Make form single-column */
@media (max-width: 768px) {
    form#pizzaForm,
    #pizzaForm {
        grid-template-columns: 1fr !important;
    }
    
    /* Reset all grid-column spans on mobile */
    #pizzaForm > *,
    #pizzaForm div,
    #pizzaForm select,
    #pizzaForm textarea,
    #pizzaForm button {
        grid-column: 1 / -1 !important;
    }
    
    .inquiry-content-area {
        padding: 0 1rem;
    }
}

/* Contact Page Grid - Mobile Responsive */
#contact-grid {
    display: grid;
}

@media (max-width: 992px) {
    #contact-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    /* Reverse order: form first, then contact info */
    #contact-grid > div:first-child {
        order: 2;
    }
    
    #contact-grid > div:last-child {
        order: 1;
    }
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.hidden {
    display: none !important;
}

/* --- Simplified Contact Card --- */
.contact-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    text-align: center;
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.08);
}

.contact-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
}

/* Color Helpers */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }

@media (max-width: 768px) {
    .h1-hero { font-size: 3.5rem; }
    .h2-section { font-size: 2.75rem; }
}

/* --- Stats Section --- */
.stats-section {
    padding: 2rem 0;
    background: var(--light);
}

@media (max-width: 768px) {
    .stats-section {
        padding: 1.5rem 0;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item .stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
}

/* Premium Dividers for Desktop */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1), transparent);
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .stats-grid {
        gap: 0;
    }
    .stat-item {
        padding: 1.5rem 1rem;
    }
    .stat-item::after {
        top: 20%;
        height: 60%;
    }
    .stat-item .stat-number {
        font-size: 2rem;
    }
    .stat-item .stat-label {
        font-size: 0.8125rem;
    }
}

@media (max-width: 576px) {
    .stat-item:nth-child(odd)::after {
        /* Keep divider between columns in 2x2 */
        display: block;
    }
}

.stat-item .stat-label {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
}

.team-section {
    background: var(--background);
}

.premium-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

@media (max-width: 768px) {
    .premium-list {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .final-cta {
        padding: 4rem 1.5rem !important;
    }
}


/* --- Final CTA --- */
.final-cta {
    padding: 5rem 0;
    background-color: #fbf9f4; /* Subtle warm contrast */
    text-align: center;
}

/* --- Wedding Mood Grid (Editorial Style) --- */
.wedding-mood-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 100px;
    gap: 2rem;
    margin-top: 4rem;
}

.mood-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.mood-item:hover {
    transform: translateY(-10px);
}

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

.mood-item:hover img {
    transform: scale(1.02);
}

.mood-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
    color: var(--white);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.mood-overlay h4 {
    color: var(--white);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.mood-overlay p {
    color: rgba(255,255,255,0.9);
    font-size: 0.95rem;
    max-width: 90%;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

/* Asymmetric Layout */
.mood-item-1 { grid-column: 1 / 8; grid-row: 1 / 5; }
.mood-item-2 { grid-column: 8 / 13; grid-row: 1 / 4; }
.mood-item-3 { grid-column: 8 / 13; grid-row: 4 / 7; }
.mood-item-4 { grid-column: 1 / 8; grid-row: 5 / 7; }

@media (max-width: 992px) {
    .wedding-mood-grid {
        grid-template-columns: 1fr 1fr;
        grid-auto-rows: 300px;
    }
    .mood-item-1, .mood-item-2, .mood-item-3, .mood-item-4 {
        grid-column: span 1;
        grid-row: span 1;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .wedding-mood-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 400px;
    }
}

/* --- Final CTA --- */
.final-cta {
    padding: 5rem 0;
    background: #fbf9f4;
    text-align: center;
}

.final-cta h2 {
    font-size: clamp(2.25rem, 4.5vw, 3.25rem);
    margin-bottom: 1.5rem;
}

.final-cta p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Legal Pages (Impressum & Datenschutz) --- */
.impressum-section,
.datenschutz-section {
    padding: 10rem 0 6rem 0;
    background: var(--background);
}

.impressum-content,
.datenschutz-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.impressum-content h1,
.datenschutz-content h1 {
    font-size: 3.5rem;
    color: var(--text);
    margin-bottom: 3rem;
    line-height: 1;
}

.impressum-content h2,
.datenschutz-content h2 {
    font-size: 2rem;
    color: var(--text);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.impressum-content h3,
.datenschutz-content h3 {
    font-size: 1.5rem;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.impressum-content h4,
.datenschutz-content h4 {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.impressum-content p,
.datenschutz-content p {
    margin-bottom: 1rem;
    color: var(--text);
    font-size: 1rem;
}

.impressum-content ul,
.datenschutz-content ul {
    margin: 1rem 0 1.5rem 2rem;
    list-style: disc;
}

.impressum-content li,
.datenschutz-content li {
    margin-bottom: 0.5rem;
    color: var(--text);
}

.impressum-content a,
.datenschutz-content a {
    color: var(--secondary);
    text-decoration: underline;
    transition: var(--transition);
}

.impressum-content a:hover,
.datenschutz-content a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .impressum-section,
    .datenschutz-section {
        padding: 8rem 0 4rem 0;
    }
    
    .impressum-content h1,
    .datenschutz-content h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .impressum-content h2,
    .datenschutz-content h2 {
        font-size: 1.75rem;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }
    
    .impressum-content h3,
    .datenschutz-content h3 {
        font-size: 1.25rem;
        margin-top: 1.5rem;
    }
    
    .impressum-content ul,
    .datenschutz-content ul {
        margin-left: 1.25rem;
    }
}

/* --- Gallery & Lightbox Premium Redesign --- */
.gallery-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item-premium {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4/5;
    cursor: pointer;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.gallery-item-premium img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.gallery-item-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

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

.item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 140, 69, 0.85), transparent 70%); /* Italian Green Gradient */
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item-premium:hover .item-overlay {
    opacity: 1;
}

.item-overlay span {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item-premium:hover .item-overlay span {
    transform: translateY(0);
}

/* Lightbox Redesign */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 1000px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.lightbox.active .lightbox-content {
    transform: scale(1);
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 3px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption-area {
    margin-top: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 3rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

#lightbox-caption {
    color: var(--white);
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

#lightbox-caption::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--primary); /* Italian Green */
    border-radius: 50%;
    margin-right: 15px;
    box-shadow: 0 0 10px var(--primary);
}

#lightbox-caption::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    background: var(--secondary); /* Italian Red */
    border-radius: 50%;
    margin-left: 15px;
    box-shadow: 0 0 10px var(--secondary);
}

/* Navigation Controls */
.close-lightbox, .prev-lightbox, .next-lightbox {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    backdrop-filter: blur(5px);
}

.close-lightbox {
    top: -80px;
    right: 0;
    font-size: 2.5rem;
}

.prev-lightbox {
    left: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.next-lightbox {
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
}

.close-lightbox:hover, .prev-lightbox:hover, .next-lightbox:hover {
    background: var(--white);
    color: var(--text);
    transform: scale(1.1);
}

.prev-lightbox:hover { transform: translateY(-50%) translateX(-5px) scale(1.1); }
.next-lightbox:hover { transform: translateY(-50%) translateX(5px) scale(1.1); }

@media (max-width: 1200px) {
    .prev-lightbox { left: 1rem; }
    .next-lightbox { right: 1rem; }
    .close-lightbox { top: 1rem; right: 1rem; }
}

@media (max-width: 768px) {
    .lightbox { padding: 1rem; }
    .lightbox-caption-area { padding: 0.75rem 1.5rem; }
    #lightbox-caption { font-size: 1.1rem; }
    .prev-lightbox, .next-lightbox {
        width: 44px;
        height: 44px;
        background: rgba(0,0,0,0.5);
    }
}
