/* ============================================
   TRATTORIA DEL SOLE — Premium Restaurant
   Palette: Terracotta / Cream / Deep Green / Gold
   ============================================ */

:root {
    --terracotta: #C8553D;
    --terracotta-dark: #A03E2A;
    --cream: #FAF6F0;
    --cream-warm: #F4EDE2;
    --green-deep: #2C3A2E;
    --green: #3D5240;
    --gold: #C9A66B;
    --gold-light: #E0C389;
    --charcoal: #1F1A17;
    --text: #2B2622;
    --text-muted: #7A6E64;
    --border: rgba(43, 38, 34, 0.1);
    --white: #ffffff;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --shadow-sm: 0 4px 12px rgba(31, 26, 23, 0.06);
    --shadow-md: 0 12px 32px rgba(31, 26, 23, 0.1);
    --shadow-lg: 0 24px 60px rgba(31, 26, 23, 0.15);

    --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    color: var(--text);
    background: var(--cream);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
}

em { font-style: italic; color: var(--terracotta); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 36px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    border-radius: var(--radius);
}

.btn-primary {
    background: var(--terracotta);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--terracotta-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
    background: var(--white);
    color: var(--charcoal);
}

.btn-outline {
    background: transparent;
    color: var(--terracotta);
    border: 1px solid var(--terracotta);
}
.btn-outline:hover {
    background: var(--terracotta);
    color: var(--white);
}

.btn-nav {
    padding: 11px 26px;
    font-size: 12px;
    background: var(--terracotta);
    color: var(--white);
}
.btn-nav:hover { background: var(--terracotta-dark); }

.btn-block { width: 100%; }

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
    background: transparent;
}
.navbar.scrolled {
    padding: 14px 0;
    background: rgba(250, 246, 240, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
}
.navbar.scrolled .nav-link,
.navbar.scrolled .logo-text { color: var(--charcoal); }
.navbar.scrolled .logo-icon { color: var(--terracotta); }

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    color: var(--white);
    transition: var(--transition);
}
.logo-icon { font-size: 26px; color: var(--gold-light); }
.logo-text em { color: var(--gold-light); font-weight: 500; }

.nav-menu {
    display: flex;
    gap: 36px;
}
.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    position: relative;
    transition: var(--transition);
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px; left: 0;
    width: 0; height: 1px;
    background: var(--terracotta);
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--gold-light); }

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}
.hamburger span {
    width: 26px; height: 2px;
    background: var(--white);
    transition: var(--transition);
}
.navbar.scrolled .hamburger span { background: var(--charcoal); }

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: url('https://images.unsplash.com/photo-1466978913421-dad2ebd01d17?w=1920&q=85') center/cover no-repeat;
    overflow: hidden;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(31,26,23,0.5) 0%, rgba(31,26,23,0.75) 100%);
}
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 820px;
    padding: 0 32px;
}
.hero-eyebrow {
    font-size: 13px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 24px;
}
.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 92px);
    font-weight: 600;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -1px;
}
.hero-title em {
    color: var(--gold-light);
    font-weight: 500;
}
.hero-subtitle {
    font-size: 18px;
    font-weight: 300;
    max-width: 580px;
    margin: 0 auto 40px;
    opacity: 0.92;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
}
.scroll-indicator span {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 10px;
}
.mouse {
    width: 22px; height: 36px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 12px;
    margin: 0 auto;
    position: relative;
}
.wheel {
    width: 3px; height: 8px;
    background: var(--white);
    border-radius: 2px;
    position: absolute;
    top: 7px; left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
    0% { opacity: 1; top: 7px; }
    100% { opacity: 0; top: 18px; }
}

/* ============================================
   SECTION HEADERS
   ============================================ */
.section-eyebrow {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--terracotta);
    font-weight: 600;
    margin-bottom: 16px;
}
.section-title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--charcoal);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}
.section-text {
    font-size: 17px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.85;
}
.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

/* ============================================
   ABOUT
   ============================================ */
.about { padding: 120px 0; background: var(--cream); }
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.about-stats {
    display: flex;
    gap: 48px;
    margin-top: 40px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; }
.stat-number {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 600;
    color: var(--terracotta);
    line-height: 1;
}
.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 8px;
    letter-spacing: 0.5px;
}
.about-image {
    position: relative;
}
.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/5;
    object-fit: cover;
}
.image-badge {
    position: absolute;
    bottom: -24px; left: -24px;
    background: var(--white);
    padding: 20px 28px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 14px;
}
.badge-icon { font-size: 32px; }
.image-badge span:last-child {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    color: var(--charcoal);
}

/* ============================================
   FEATURES
   ============================================ */
.features {
    padding: 100px 0;
    background: var(--green-deep);
    color: var(--white);
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.feature-card {
    text-align: center;
    padding: 20px;
    transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); }
.feature-icon {
    font-size: 42px;
    margin-bottom: 20px;
    display: inline-block;
}
.feature-card h3 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--gold-light);
}
.feature-card p {
    font-size: 15px;
    opacity: 0.8;
    line-height: 1.7;
}

/* ============================================
   MENU
   ============================================ */
.menu { padding: 120px 0; background: var(--cream-warm); }
.menu-filters {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 56px;
    flex-wrap: wrap;
}
.filter-btn {
    padding: 10px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50px;
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}
.filter-btn:hover { border-color: var(--terracotta); color: var(--terracotta); }
.filter-btn.active {
    background: var(--terracotta);
    border-color: var(--terracotta);
    color: var(--white);
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.menu-item {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.menu-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.menu-item.hidden { display: none; }
.menu-item-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}
.menu-item-image img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.menu-item:hover .menu-item-image img { transform: scale(1.08); }
.menu-tag {
    position: absolute;
    top: 14px; left: 14px;
    background: var(--terracotta);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tag-new { background: var(--green); }
.menu-item-body { padding: 24px; }
.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
    gap: 12px;
}
.menu-item-header h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--charcoal);
}
.menu-price {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 600;
    color: var(--terracotta);
    white-space: nowrap;
}
.menu-item-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}
.menu-cta { text-align: center; margin-top: 56px; }

/* ============================================
   GALLERY
   ============================================ */
.gallery { padding: 120px 0; background: var(--cream); }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.gallery-item {
    overflow: hidden;
    border-radius: var(--radius);
    position: relative;
    cursor: pointer;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.gallery-item:hover img { transform: scale(1.1); }
.gallery-item-tall { grid-row: span 2; }
.gallery-item-wide { grid-column: span 2; }

/* ============================================
   REVIEWS
   ============================================ */
.reviews {
    padding: 120px 0;
    background: var(--green-deep);
    color: var(--white);
}
.reviews .section-title { color: var(--white); }
.reviews .section-eyebrow { color: var(--gold-light); }
.reviews-carousel { max-width: 800px; margin: 0 auto; position: relative; }
.reviews-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.review-card {
    min-width: 100%;
    padding: 0 16px;
    text-align: center;
}
.stars {
    color: var(--gold);
    font-size: 18px;
    letter-spacing: 4px;
    margin-bottom: 28px;
}
.review-text {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 36px;
    color: var(--cream);
    font-style: italic;
}
.review-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.author-avatar {
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
}
.author-name { font-weight: 600; font-size: 15px; }
.author-meta { font-size: 13px; opacity: 0.6; }
.reviews-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}
.review-btn {
    width: 44px; height: 44px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.3);
    color: var(--white);
    font-size: 22px;
    cursor: pointer;
    transition: var(--transition);
}
.review-btn:hover {
    background: var(--terracotta);
    border-color: var(--terracotta);
}
.review-dots { display: flex; gap: 8px; }
.dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    cursor: pointer;
    transition: var(--transition);
}
.dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ============================================
   RESERVATION
   ============================================ */
.reservation {
    position: relative;
    padding: 120px 0;
    background: var(--cream-warm);
}
.reservation-bg {
    position: absolute;
    inset: 0;
    background: url('https://images.unsplash.com/photo-1414235077428-338989a2e8c0?w=1920&q=85') center/cover fixed no-repeat;
    opacity: 0.08;
}
.reservation-card {
    position: relative;
    background: var(--white);
    border-radius: 6px;
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    overflow: hidden;
    max-width: 1080px;
    margin: 0 auto;
}
.reservation-info {
    padding: 56px 48px;
    background: var(--green-deep);
    color: var(--white);
}
.reservation-info .section-title { color: var(--white); }
.reservation-info .section-eyebrow { color: var(--gold-light); }
.reservation-info .section-text { color: rgba(255,255,255,0.8); }
.reservation-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.reservation-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
}
.reservation-list span {
    width: 24px; height: 24px;
    background: var(--terracotta);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.reservation-form { padding: 56px 48px; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.form-group { display: flex; flex-direction: column; }
.form-group label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 16px;
    color: var(--text);
    background: var(--cream);
    transition: var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--terracotta);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(200, 85, 61, 0.1);
}
.form-group.full { margin-bottom: 20px; }
.form-note {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 14px;
}
.form-success {
    display: none;
    margin-top: 16px;
    padding: 14px;
    background: var(--green);
    color: var(--white);
    text-align: center;
    border-radius: var(--radius);
    font-size: 14px;
}
.form-success.show { display: block; animation: fadeIn 0.4s; }

/* ============================================
   CONTACTS
   ============================================ */
.contacts { padding: 120px 0; background: var(--cream); }
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 48px;
    align-items: stretch;
}
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.contact-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.contact-icon {
    font-size: 32px;
    margin-bottom: 14px;
}
.contact-card h3 {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--charcoal);
    margin-bottom: 8px;
}
.contact-card p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}
.contact-card a:hover { color: var(--terracotta); }
.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 420px;
    box-shadow: var(--shadow-md);
    background: var(--cream-warm);
}
.map-container iframe { border: 0; min-height: 420px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--charcoal);
    color: rgba(255,255,255,0.7);
    padding: 80px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 56px;
}
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer-tagline {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.7;
}
.social-links { display: flex; gap: 20px; }
.social-links a {
    font-size: 13px;
    color: var(--gold-light);
    transition: var(--transition);
}
.social-links a:hover { color: var(--white); }
.footer-col h4 {
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}
.footer-col ul li {
    margin-bottom: 12px;
}
.footer-col ul li a {
    font-size: 14px;
    opacity: 0.7;
    transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--terracotta); opacity: 1; }
.footer-col > p {
    font-size: 14px;
    opacity: 0.7;
    margin-bottom: 16px;
    line-height: 1.6;
}
.newsletter {
    display: flex;
    gap: 8px;
}
.newsletter input {
    flex: 1;
    padding: 12px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--radius);
    color: var(--white);
    font-size: 16px;
}
.newsletter input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter input:focus { outline: none; border-color: var(--terracotta); }
.newsletter button {
    width: 46px;
    background: var(--terracotta);
    color: var(--white);
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
}
.newsletter button:hover { background: var(--terracotta-dark); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.5;
}

/* ============================================
   ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 0; right: -100%;
        width: 80%; max-width: 320px;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        padding: 40px;
        gap: 24px;
        transition: right 0.4s ease;
        box-shadow: var(--shadow-lg);
    }
    .nav-menu.active { right: 0; }
    .nav-menu .nav-link { color: var(--charcoal); font-size: 18px; }
    .btn-nav { display: none; }
    .hamburger { display: flex; }

    .about-grid,
    .reservation-card,
    .contacts-grid { grid-template-columns: 1fr; }
    .about { padding: 80px 0; }
    .about-image { order: -1; max-width: 480px; }
    .about-stats { justify-content: space-between; gap: 24px; }
    .features-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
    .menu-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-item-wide { grid-column: span 2; }
    .reservation-info,
    .reservation-form { padding: 40px 28px; }
    .review-text { font-size: 20px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 560px) {
    .container, .nav-container { padding: 0 20px; }
    .features-grid,
    .menu-grid,
    .contact-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
    .hero-actions { flex-direction: column; width: 100%; }
    .hero-actions .btn { width: 100%; }
    .about-stats { gap: 20px; }
    .stat-number { font-size: 36px; }
}
