/*
Theme Name: L'Anima del Borgo
Theme URI: https://animadelborgo.it
Author: L'Anima del Borgo
Author URI: https://animadelborgo.it
Description: Tema elegante e moderno per il ristorante toscano "L'Anima del Borgo". Include demo content con import automatico, chatbot AI sommelier per suggerimenti vini, e design premium responsive.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: anima-del-borgo
Tags: restaurant, food, one-column, custom-menu, featured-images, theme-options, translation-ready

L'Anima del Borgo - Ristorante Toscano WordPress Theme
Tradizione e Eleganza nel cuore della Toscana
*/

/* =========================================
   CSS RESET & BASE
   ========================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #fafaf9;
    color: #1c1917;
    overflow-x: hidden;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

h1, h2, h3, h4, h5, h6, .font-serif {
    font-family: 'Playfair Display', Georgia, serif;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =========================================
   CSS VARIABLES (Design Tokens)
   ========================================= */

:root {
    /* Colors - Emerald */
    --color-emerald-50: #ecfdf5;
    --color-emerald-100: #d1fae5;
    --color-emerald-200: #a7f3d0;
    --color-emerald-300: #6ee7b7;
    --color-emerald-400: #34d399;
    --color-emerald-500: #10b981;
    --color-emerald-800: #065f46;
    --color-emerald-900: #064e3b;
    --color-emerald-950: #022c22;
    
    /* Colors - Stone */
    --color-stone-50: #fafaf9;
    --color-stone-100: #f5f5f4;
    --color-stone-200: #e7e5e4;
    --color-stone-300: #d6d3d1;
    --color-stone-400: #a8a29e;
    --color-stone-500: #78716c;
    --color-stone-600: #57534e;
    --color-stone-700: #44403c;
    --color-stone-800: #292524;
    --color-stone-900: #1c1917;
    --color-stone-950: #0c0a09;
    
    /* Spacing */
    --spacing-1: 0.25rem;
    --spacing-2: 0.5rem;
    --spacing-3: 0.75rem;
    --spacing-4: 1rem;
    --spacing-6: 1.5rem;
    --spacing-8: 2rem;
    --spacing-10: 2.5rem;
    --spacing-12: 3rem;
    --spacing-16: 4rem;
    --spacing-20: 5rem;
    --spacing-24: 6rem;
    
    /* Typography */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 1.875rem;
    --text-4xl: 2.25rem;
    --text-5xl: 3rem;
    --text-6xl: 3.75rem;
    --text-7xl: 4.5rem;
    --text-8xl: 6rem;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-3xl: 3rem;
    --radius-full: 9999px;
}

/* =========================================
   UTILITY CLASSES
   ========================================= */

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-6);
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.uppercase { text-transform: uppercase; }
.italic { font-style: italic; }
.font-light { font-weight: 300; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.tracking-ultra { letter-spacing: 0.3em; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* =========================================
   NAVBAR
   ========================================= */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    transition: all var(--transition-base);
    padding: var(--spacing-6) 0;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-4) 0;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-logo {
    font-family: 'Playfair Display', serif;
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.025em;
    cursor: pointer;
    color: white;
    transition: color var(--transition-base);
}

.navbar.scrolled .navbar-logo {
    color: var(--color-emerald-900);
}

.navbar-menu {
    display: none;
    align-items: center;
    gap: var(--spacing-10);
    list-style: none;
}

@media (min-width: 768px) {
    .navbar-menu {
        display: flex;
    }
}

.navbar-link {
    font-size: var(--text-sm);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: white;
    transition: opacity var(--transition-base);
}

.navbar-link:hover {
    opacity: 0.7;
}

.navbar.scrolled .navbar-link {
    color: var(--color-stone-800);
}

.navbar-cta {
    padding: var(--spacing-2) var(--spacing-6);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
    background: white;
    color: var(--color-emerald-900);
    box-shadow: var(--shadow-lg);
}

.navbar-cta:hover {
    background: var(--color-stone-100);
}

.navbar.scrolled .navbar-cta {
    background: var(--color-emerald-800);
    color: white;
}

.navbar.scrolled .navbar-cta:hover {
    background: var(--color-emerald-900);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: white;
    font-size: var(--text-2xl);
    cursor: pointer;
}

.navbar.scrolled .navbar-toggle {
    color: var(--color-stone-800);
}

@media (min-width: 768px) {
    .navbar-toggle {
        display: none;
    }
}

/* Mobile Menu */
.navbar-mobile {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: var(--shadow-xl);
    transform: scaleY(0);
    transform-origin: top;
    opacity: 0;
    transition: all var(--transition-base);
}

.navbar-mobile.active {
    transform: scaleY(1);
    opacity: 1;
}

.navbar-mobile-inner {
    display: flex;
    flex-direction: column;
    padding: var(--spacing-6);
    gap: var(--spacing-4);
}

.navbar-mobile-link {
    color: var(--color-stone-800);
    font-size: var(--text-lg);
    font-weight: 500;
    padding-bottom: var(--spacing-2);
    border-bottom: 1px solid var(--color-stone-100);
}

.navbar-mobile-cta {
    background: var(--color-emerald-800);
    color: white;
    padding: var(--spacing-4);
    border-radius: var(--radius-xl);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

/* =========================================
   HERO SECTION
   ========================================= */

.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 var(--spacing-6);
    max-width: 900px;
}

.hero-tagline {
    display: inline-block;
    margin-bottom: var(--spacing-4);
    color: var(--color-emerald-200);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-size: var(--text-xs);
    font-weight: 700;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-title {
    font-size: var(--text-5xl);
    color: white;
    margin-bottom: var(--spacing-6);
    line-height: 1.1;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: var(--text-8xl);
    }
}

.hero-description {
    color: var(--color-stone-100);
    font-size: var(--text-lg);
    max-width: 700px;
    margin: 0 auto var(--spacing-10);
    font-weight: 300;
    line-height: 1.7;
}

@media (min-width: 768px) {
    .hero-description {
        font-size: var(--text-xl);
    }
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-4);
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-4) var(--spacing-10);
    border-radius: var(--radius-full);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: var(--text-sm);
}

.btn-primary {
    background: var(--color-emerald-800);
    color: white;
    box-shadow: var(--shadow-2xl);
}

.btn-primary:hover {
    background: var(--color-emerald-900);
    transform: scale(1.05);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--color-emerald-800);
    border: 1px solid var(--color-emerald-800);
}

.btn-outline:hover {
    background: var(--color-emerald-800);
    color: white;
}

.hero-scroll {
    position: absolute;
    bottom: var(--spacing-10);
    left: 50%;
    transform: translateX(-50%);
    color: white;
    animation: bounce 1s infinite;
    opacity: 0.5;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

/* =========================================
   MENU SECTION
   ========================================= */

.menu-section {
    padding: var(--spacing-24) 0;
    background: var(--color-stone-50);
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-16);
}

.section-subtitle {
    color: var(--color-emerald-900);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: var(--spacing-4);
}

.section-title {
    font-size: var(--text-4xl);
    color: var(--color-stone-800);
}

@media (min-width: 768px) {
    .section-title {
        font-size: var(--text-5xl);
    }
}

.section-divider {
    width: 80px;
    height: 1px;
    background: var(--color-emerald-800);
    margin: var(--spacing-6) auto 0;
}

.menu-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
}

@media (min-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.menu-card {
    cursor: pointer;
}

.menu-card-image {
    position: relative;
    aspect-ratio: 4/5;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-6);
    box-shadow: var(--shadow-xl);
}

.menu-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.menu-card:hover .menu-card-image img {
    transform: scale(1.1);
}

.menu-card-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background var(--transition-base);
}

.menu-card:hover .menu-card-overlay {
    background: rgba(28, 25, 23, 0.2);
}

.menu-card-price {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    padding: var(--spacing-1) var(--spacing-4);
    border-radius: var(--radius-full);
    color: var(--color-emerald-900);
    font-size: var(--text-sm);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
}

.menu-card-content {
    text-align: center;
}

.menu-card-category {
    color: var(--color-emerald-800);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: var(--spacing-2);
    display: block;
}

.menu-card-title {
    font-size: var(--text-2xl);
    color: var(--color-stone-800);
    margin-bottom: var(--spacing-3);
    transition: color var(--transition-base);
}

.menu-card:hover .menu-card-title {
    color: var(--color-emerald-900);
}

.menu-card-description {
    color: var(--color-stone-500);
    font-weight: 300;
    line-height: 1.7;
    padding: 0 var(--spacing-4);
}

.menu-cta {
    margin-top: var(--spacing-16);
    text-align: center;
}

.link-underline {
    color: var(--color-stone-800);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: var(--text-sm);
    border-bottom: 2px solid var(--color-emerald-800);
    padding-bottom: var(--spacing-2);
    transition: all var(--transition-base);
    display: inline-block;
}

.link-underline:hover {
    color: var(--color-emerald-800);
    transform: translateY(-4px);
}

/* =========================================
   ABOUT SECTION
   ========================================= */

.about-section {
    padding: var(--spacing-24) 0;
    background: white;
}

.about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-16);
}

@media (min-width: 1024px) {
    .about-grid {
        flex-direction: row;
        gap: var(--spacing-24);
    }
}

.about-content {
    flex: 1;
}

.about-content .section-subtitle {
    text-align: left;
}

.about-title {
    font-size: var(--text-4xl);
    color: var(--color-stone-800);
    margin-bottom: var(--spacing-8);
    line-height: 1.2;
}

@media (min-width: 768px) {
    .about-title {
        font-size: var(--text-5xl);
    }
}

.about-text {
    color: var(--color-stone-600);
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: var(--spacing-8);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-8);
    border-top: 1px solid var(--color-stone-100);
    padding-top: var(--spacing-10);
    margin-top: var(--spacing-12);
}

.about-stat-number {
    font-size: var(--text-3xl);
    color: var(--color-emerald-900);
    margin-bottom: var(--spacing-1);
}

.about-stat-label {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-stone-500);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image-main {
    position: relative;
    z-index: 10;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    transform: rotate(2deg);
    transition: transform var(--transition-slow);
}

.about-image-main:hover {
    transform: rotate(0deg);
}

.about-image-main img {
    width: 100%;
    height: auto;
}

.about-decor {
    position: absolute;
    bottom: -40px;
    left: -40px;
    width: 250px;
    height: 250px;
    background: var(--color-emerald-50);
    border-radius: var(--radius-full);
    z-index: 0;
}

.about-quote {
    position: absolute;
    top: 50%;
    right: -24px;
    transform: translateY(-50%);
    padding: var(--spacing-6);
    background: white;
    box-shadow: var(--shadow-2xl);
    border-radius: var(--radius-xl);
    z-index: 20;
    max-width: 200px;
}

.about-quote i {
    color: var(--color-emerald-800);
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-4);
    display: block;
}

.about-quote p {
    font-size: var(--text-sm);
    font-style: italic;
    color: var(--color-stone-700);
    line-height: 1.6;
}

.about-quote-author {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-emerald-900);
    margin-top: var(--spacing-4);
    font-style: normal;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
    background: var(--color-stone-900);
    color: var(--color-stone-300);
    padding: var(--spacing-20) 0 var(--spacing-10);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
    margin-bottom: var(--spacing-16);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.footer-brand h4 {
    font-size: var(--text-2xl);
    color: white;
    margin-bottom: var(--spacing-6);
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: 1.7;
    margin-bottom: var(--spacing-6);
    font-weight: 300;
}

.footer-social {
    display: flex;
    gap: var(--spacing-4);
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-stone-700);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: var(--color-emerald-800);
    border-color: var(--color-emerald-800);
}

.footer-title {
    color: white;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    margin-bottom: var(--spacing-6);
}

.footer-hours ul,
.footer-contact ul {
    list-style: none;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    font-size: var(--text-sm);
    font-weight: 300;
    margin-bottom: var(--spacing-3);
}

.footer-hours li.closed {
    color: var(--color-emerald-400);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-4);
    font-size: var(--text-sm);
    font-weight: 300;
    margin-bottom: var(--spacing-4);
}

.footer-contact li i {
    color: var(--color-emerald-500);
    margin-top: 4px;
}

.footer-newsletter p {
    font-size: var(--text-xs);
    margin-bottom: var(--spacing-4);
    font-weight: 300;
}

.footer-newsletter form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2);
}

.footer-newsletter input {
    background: var(--color-stone-800);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-3) var(--spacing-4);
    font-size: var(--text-sm);
    color: white;
    outline: none;
}

.footer-newsletter input::placeholder {
    color: var(--color-stone-500);
}

.footer-newsletter input:focus {
    box-shadow: 0 0 0 1px var(--color-emerald-800);
}

.footer-newsletter button {
    background: var(--color-emerald-800);
    color: white;
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--spacing-3);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: background var(--transition-base);
}

.footer-newsletter button:hover {
    background: var(--color-emerald-900);
}

.footer-bottom {
    border-top: 1px solid var(--color-stone-800);
    padding-top: var(--spacing-8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: var(--spacing-4);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-stone-500);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-bottom a {
    transition: color var(--transition-base);
}

.footer-bottom a:hover {
    color: white;
}

.footer-links {
    display: flex;
    gap: var(--spacing-6);
}

/* =========================================
   SOMMELIER CHAT
   ========================================= */

.sommelier-chat {
    position: fixed;
    bottom: var(--spacing-6);
    right: var(--spacing-6);
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.chat-window {
    margin-bottom: var(--spacing-4);
    width: 320px;
    background: white;
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0);
    opacity: 0;
    transform-origin: bottom right;
    transition: all var(--transition-base);
}

@media (min-width: 640px) {
    .chat-window {
        width: 384px;
    }
}

.chat-window.active {
    transform: scale(1);
    opacity: 1;
}

.chat-header {
    background: var(--color-emerald-900);
    padding: var(--spacing-6);
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-emerald-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-900);
    font-size: var(--text-xl);
}

.chat-info h4 {
    color: white;
    font-size: var(--text-lg);
    line-height: 1.2;
}

.chat-info p {
    color: var(--color-emerald-300);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.chat-close {
    margin-left: auto;
    background: none;
    border: none;
    color: white;
    opacity: 0.5;
    cursor: pointer;
    font-size: var(--text-lg);
    transition: opacity var(--transition-base);
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    height: 320px;
    overflow-y: auto;
    padding: var(--spacing-4);
    background: var(--color-stone-50);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-4);
}

.chat-message {
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.model {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 85%;
    padding: var(--spacing-4);
    font-size: var(--text-sm);
    border-radius: var(--radius-2xl);
}

.chat-message.user .chat-bubble {
    background: var(--color-emerald-800);
    color: white;
    border-top-right-radius: 0;
}

.chat-message.model .chat-bubble {
    background: white;
    color: var(--color-stone-700);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-stone-100);
    border-top-left-radius: 0;
}

.chat-typing {
    display: flex;
    gap: var(--spacing-1);
    padding: var(--spacing-3);
    background: white;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-stone-100);
}

.chat-typing-dot {
    width: 6px;
    height: 6px;
    background: var(--color-stone-300);
    border-radius: var(--radius-full);
    animation: typing-bounce 1s infinite;
}

.chat-typing-dot:nth-child(2) {
    animation-delay: 0.1s;
}

.chat-typing-dot:nth-child(3) {
    animation-delay: 0.2s;
}

@keyframes typing-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-input-area {
    padding: var(--spacing-4);
    background: white;
    border-top: 1px solid var(--color-stone-100);
}

.chat-input-wrapper {
    display: flex;
    gap: var(--spacing-2);
}

.chat-input {
    flex: 1;
    background: var(--color-stone-50);
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-full);
    padding: var(--spacing-2) var(--spacing-4);
    font-size: var(--text-sm);
    outline: none;
    transition: box-shadow var(--transition-base);
}

.chat-input:focus {
    box-shadow: 0 0 0 1px var(--color-emerald-800);
}

.chat-send {
    width: 40px;
    height: 40px;
    background: var(--color-emerald-800);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background var(--transition-base);
}

.chat-send:hover {
    background: var(--color-emerald-900);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-toggle {
    width: 64px;
    height: 64px;
    background: var(--color-emerald-800);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-2xl);
    position: relative;
}

.chat-toggle:hover {
    background: var(--color-emerald-900);
    transform: scale(1.05);
}

.chat-toggle:active {
    transform: scale(0.9);
}

.chat-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    background: #ef4444;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: var(--spacing-1) var(--spacing-2);
    border-radius: var(--radius-full);
    animation: bounce 1s infinite;
}

/* =========================================
   PAGE TEMPLATES - FULL MENU
   ========================================= */

.page-overlay {
    min-height: 100vh;
    background: var(--color-stone-50);
    padding-top: 100px;
}

.page-header {
    position: sticky;
    top: 0;
    background: rgba(250, 250, 249, 0.9);
    backdrop-filter: blur(12px);
    z-index: 20;
    border-bottom: 1px solid var(--color-stone-200);
    padding: var(--spacing-6) 0;
}

.page-header-inner {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-6);
}

@media (min-width: 768px) {
    .page-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.page-title {
    font-size: var(--text-3xl);
    color: var(--color-emerald-900);
}

.page-subtitle {
    color: var(--color-stone-500);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: var(--spacing-1);
}

.page-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-4);
}

.search-box {
    position: relative;
    flex: 1;
}

@media (min-width: 768px) {
    .search-box {
        width: 256px;
    }
}

.search-box i {
    position: absolute;
    left: var(--spacing-4);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-stone-400);
}

.search-box input {
    width: 100%;
    background: white;
    border: 1px solid var(--color-stone-200);
    border-radius: var(--radius-full);
    padding: var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-12);
    font-size: var(--text-sm);
    outline: none;
}

.search-box input:focus {
    box-shadow: 0 0 0 2px rgba(6, 95, 70, 0.2);
}

.close-btn {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--color-stone-200);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: var(--text-xl);
    color: var(--color-stone-800);
}

.close-btn:hover {
    background: var(--color-stone-300);
}

.categories-bar {
    padding: var(--spacing-4) 0;
    display: flex;
    gap: var(--spacing-4);
    overflow-x: auto;
}

.categories-bar::-webkit-scrollbar {
    display: none;
}

.category-btn {
    padding: var(--spacing-2) var(--spacing-6);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    white-space: nowrap;
    border: 1px solid var(--color-stone-200);
    background: white;
    color: var(--color-stone-500);
    cursor: pointer;
    transition: all var(--transition-base);
}

.category-btn:hover {
    border-color: rgba(6, 95, 70, 0.5);
}

.category-btn.active {
    background: var(--color-emerald-800);
    color: white;
    border-color: var(--color-emerald-800);
}

.menu-full-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-10);
    padding: var(--spacing-12) 0;
}

@media (min-width: 768px) {
    .menu-full-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .menu-full-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.dish-card {
    display: flex;
    flex-direction: column;
}

.dish-image {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    margin-bottom: var(--spacing-6);
}

.dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 700ms ease;
}

.dish-card:hover .dish-image img {
    transform: scale(1.1);
}

.dish-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.1);
    transition: background var(--transition-base);
}

.dish-card:hover .dish-image-overlay {
    background: rgba(28, 25, 23, 0.3);
}

.dish-price {
    position: absolute;
    top: var(--spacing-4);
    right: var(--spacing-4);
    background: var(--color-emerald-900);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: var(--spacing-1) var(--spacing-3);
    border-radius: var(--radius-full);
}

.dish-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--spacing-2);
}

.dish-title {
    font-size: var(--text-xl);
    color: var(--color-stone-800);
}

.dish-category {
    font-size: 10px;
    color: var(--color-emerald-800);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.dish-description {
    color: var(--color-stone-500);
    font-size: var(--text-sm);
    font-weight: 300;
    line-height: 1.7;
}

.empty-state {
    text-align: center;
    padding: var(--spacing-20) 0;
}

.empty-state i {
    font-size: 4rem;
    color: var(--color-stone-200);
    margin-bottom: var(--spacing-6);
}

.empty-state h3 {
    font-size: var(--text-2xl);
    color: var(--color-stone-400);
    margin-bottom: var(--spacing-2);
}

.empty-state p {
    color: var(--color-stone-400);
}

/* =========================================
   PAGE TEMPLATES - CHI SIAMO
   ========================================= */

.about-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
}

.about-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-hero-content {
    text-align: center;
    padding: 0 var(--spacing-6);
}

.about-hero-title {
    font-size: var(--text-5xl);
    color: white;
    margin-bottom: var(--spacing-4);
}

@media (min-width: 768px) {
    .about-hero-title {
        font-size: var(--text-7xl);
    }
}

.about-hero-subtitle {
    color: var(--color-emerald-200);
    text-transform: uppercase;
    letter-spacing: 0.4em;
    font-size: var(--text-xs);
    font-weight: 700;
}

.story-section {
    padding: var(--spacing-24) 0;
    max-width: 900px;
    margin: 0 auto;
}

.story-text {
    color: var(--color-stone-600);
    font-size: var(--text-lg);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: var(--spacing-12);
}

.story-image-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
    align-items: center;
    padding: var(--spacing-8) 0;
}

@media (min-width: 768px) {
    .story-image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.story-image img {
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}

.story-box h4 {
    font-size: var(--text-2xl);
    color: var(--color-emerald-900);
    margin-bottom: var(--spacing-4);
}

.story-box p {
    font-size: var(--text-sm);
    color: var(--color-stone-600);
    line-height: 1.7;
}

.team-section {
    background: var(--color-stone-50);
    padding: var(--spacing-24) 0;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-12);
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    text-align: center;
}

.team-image {
    position: relative;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: var(--radius-2xl);
    margin-bottom: var(--spacing-6);
    box-shadow: var(--shadow-lg);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.team-card:hover .team-image img {
    transform: scale(1.1);
}

.team-bio {
    position: absolute;
    inset: 0;
    background: rgba(6, 78, 59, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-8);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.team-card:hover .team-bio {
    opacity: 1;
}

.team-bio p {
    color: white;
    font-size: var(--text-sm);
    font-weight: 300;
    font-style: italic;
}

.team-name {
    font-size: var(--text-xl);
    color: var(--color-stone-800);
}

.team-role {
    color: var(--color-emerald-800);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-top: var(--spacing-1);
}

.values-section {
    padding: var(--spacing-24) 0;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-16);
    text-align: center;
}

@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.value-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.value-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--color-emerald-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-800);
    font-size: var(--text-2xl);
    margin-bottom: var(--spacing-6);
}

.value-title {
    font-size: var(--text-lg);
    margin-bottom: var(--spacing-3);
}

.value-text {
    font-size: var(--text-sm);
    color: var(--color-stone-500);
    font-weight: 300;
    line-height: 1.7;
}

.cta-section {
    background: var(--color-emerald-950);
    padding: var(--spacing-20) 0;
    text-align: center;
    color: white;
}

.cta-quote {
    font-size: var(--text-3xl);
    font-style: italic;
    margin-bottom: var(--spacing-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================
   PAGE TEMPLATES - CONTATTI
   ========================================= */

.contacts-page {
    padding-top: 100px;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-20);
    padding: var(--spacing-16) 0;
}

@media (min-width: 1024px) {
    .contacts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contacts-info h3 {
    font-size: var(--text-3xl);
    color: var(--color-stone-800);
    margin-bottom: var(--spacing-6);
}

.contacts-info > p {
    color: var(--color-stone-600);
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: var(--spacing-8);
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
}

@media (min-width: 640px) {
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-item {
    display: flex;
    gap: var(--spacing-4);
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--color-emerald-50);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald-800);
    flex-shrink: 0;
}

.info-label {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-emerald-900);
    margin-bottom: var(--spacing-1);
}

.info-value {
    font-size: var(--text-sm);
    color: var(--color-stone-500);
    font-weight: 300;
}

.info-social {
    display: flex;
    gap: var(--spacing-4);
    margin-top: var(--spacing-1);
}

.info-social a {
    color: var(--color-stone-400);
    transition: color var(--transition-base);
}

.info-social a:hover {
    color: var(--color-emerald-800);
}

.map-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-3xl);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
    border: 4px solid white;
    margin-top: var(--spacing-12);
}

.map-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 1s ease;
}

.map-placeholder:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.map-pin {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 95, 70, 0.1);
    transition: background var(--transition-base);
}

.map-placeholder:hover .map-pin {
    background: transparent;
}

.map-pin-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: var(--spacing-6);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.map-pin-content i {
    color: var(--color-emerald-800);
    font-size: var(--text-3xl);
    margin-bottom: var(--spacing-2);
    animation: bounce 1s infinite;
}

.map-pin-content p {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-stone-800);
}

.map-pin-content span {
    font-size: 10px;
    color: var(--color-stone-500);
    font-weight: 500;
}

.contact-form-wrapper {
    background: white;
    padding: var(--spacing-10);
    border-radius: var(--radius-3xl);
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--color-stone-100);
}

@media (min-width: 768px) {
    .contact-form-wrapper {
        padding: var(--spacing-16);
    }
}

.contact-form-wrapper h3 {
    font-size: var(--text-3xl);
    color: var(--color-stone-800);
    margin-bottom: var(--spacing-2);
}

.contact-form-wrapper > p {
    color: var(--color-stone-500);
    font-size: var(--text-sm);
    margin-bottom: var(--spacing-10);
    font-weight: 300;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-6);
    margin-bottom: var(--spacing-6);
}

@media (min-width: 768px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group {
    margin-bottom: var(--spacing-6);
}

.form-group label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--color-stone-400);
    margin-bottom: var(--spacing-2);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    background: var(--color-stone-50);
    border: none;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-4) var(--spacing-6);
    font-size: var(--text-sm);
    outline: none;
    transition: box-shadow var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: 0 0 0 2px rgba(6, 95, 70, 0.2);
}

.form-group textarea {
    resize: none;
}

.form-submit {
    width: 100%;
    background: var(--color-emerald-800);
    color: white;
    border: none;
    border-radius: var(--radius-2xl);
    padding: var(--spacing-6);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: 0 20px 25px -5px rgba(6, 95, 70, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-3);
}

.form-submit:hover {
    background: var(--color-emerald-900);
}

.form-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.form-success {
    text-align: center;
    padding: var(--spacing-20) 0;
}

.form-success-icon {
    width: 80px;
    height: 80px;
    background: var(--color-emerald-50);
    color: var(--color-emerald-800);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-6);
    font-size: var(--text-3xl);
}

.form-success h4 {
    font-size: var(--text-2xl);
    color: var(--color-stone-800);
    margin-bottom: var(--spacing-2);
}

.form-success p {
    color: var(--color-stone-500);
    font-size: var(--text-sm);
}

.form-success button {
    margin-top: var(--spacing-8);
    background: none;
    border: none;
    color: var(--color-emerald-800);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid var(--color-emerald-800);
    padding-bottom: var(--spacing-1);
    cursor: pointer;
}

/* =========================================
   ANIMATIONS
   ========================================= */

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { 
        opacity: 0;
        transform: translateY(20px);
    }
    to { 
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

.animate-zoom-in {
    animation: zoomIn 0.5s ease forwards;
}

/* Utility for staggered animations */
.stagger-1 { animation-delay: 50ms; }
.stagger-2 { animation-delay: 100ms; }
.stagger-3 { animation-delay: 150ms; }
.stagger-4 { animation-delay: 200ms; }
.stagger-5 { animation-delay: 250ms; }

/* =========================================
   WORDPRESS SPECIFIC
   ========================================= */

.alignwide {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.alignfull {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Admin Bar Fix */
body.admin-bar .navbar {
    top: 32px;
}

@media screen and (max-width: 782px) {
    body.admin-bar .navbar {
        top: 46px;
    }
}
