/* Reset e Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #8B4513;
    --color-primary-dark: #6b3410;
    --color-secondary: #D2691E;
    --color-accent: #C0392B;
    --color-bg: #FDF8F3;
    --color-bg-light: #FFF9F0;
    --color-bg-dark: #2C1810;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-text-inverse: #FFFFFF;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

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

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

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

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

.section {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-inverse);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(253, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

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

.logo-icon {
    font-size: 28px;
}

.logo-text h1 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.logo-text span {
    font-size: 12px;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

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

.nav-menu a {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text);
    transition: var(--transition);
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--color-primary);
    transition: var(--transition);
}

/* Hero */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4), rgba(0,0,0,0.7));
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--color-text-inverse);
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 8vw, 72px);
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(16px, 3vw, 24px);
    font-weight: 300;
    margin-bottom: 20px;
    opacity: 0.9;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-text {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.85;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-color: var(--color-primary);
}

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

.btn-secondary {
    background: transparent;
    color: var(--color-text-inverse);
    border-color: var(--color-text-inverse);
}

.btn-secondary:hover {
    background: var(--color-text-inverse);
    color: var(--color-bg-dark);
}

.btn-large {
    padding: 16px 40px;
    font-size: 16px;
    width: 100%;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll a {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 25px;
    position: relative;
}

.hero-scroll a span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-text-inverse);
    border-radius: 50%;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 30px; }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header.light {
    color: var(--color-text-inverse);
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-header.light .section-title {
    color: var(--color-text-inverse);
}

.section-subtitle {
    font-size: 18px;
    opacity: 0.8;
    max-width: 600px;
    margin: 0 auto;
}

/* Chi Siamo */
.chi-siamo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.chi-siamo-text .lead {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.chi-siamo-text p {
    margin-bottom: 16px;
    color: var(--color-text-light);
    font-size: 16px;
    line-height: 1.8;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.feature {
    text-align: center;
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
    display: block;
}

.feature h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.feature p {
    font-size: 14px;
    color: var(--color-text-light);
    margin: 0;
}

.chi-siamo-images {
    position: relative;
}

.img-main {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.img-secondary {
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 60%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-bg);
}

/* Menu */
.menu-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.menu-tab {
    padding: 12px 24px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: transparent;
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.menu-tab:hover,
.menu-tab.active {
    background: var(--color-primary);
    color: var(--color-text-inverse);
}

.menu-panel {
    display: none;
}

.menu-panel.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.menu-card {
    background: var(--color-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.menu-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.menu-card-body {
    padding: 24px;
}

.menu-card-body h4 {
    font-family: var(--font-heading);
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.menu-card-body p {
    color: var(--color-text-light);
    font-size: 15px;
    margin-bottom: 12px;
    line-height: 1.6;
}

.price {
    display: inline-block;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-accent);
}

/* Galleria */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay span {
    color: var(--color-text-inverse);
    font-weight: 700;
    font-size: 16px;
}

.gallery-item.large {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item.wide {
    grid-column: span 2;
}

/* Prenotazione */
.prenotazione-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

.prenotazione-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-block h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.info-block p {
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.6;
}

.info-block a {
    color: var(--color-secondary);
    transition: var(--transition);
}

.info-block a:hover {
    color: var(--color-text-inverse);
}

.info-block .note {
    font-size: 14px;
    opacity: 0.7;
    font-style: italic;
    margin-top: 4px;
}

.prenotazione-form {
    background: rgba(255,255,255,0.05);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-inverse);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    font-family: var(--font-body);
    font-size: 16px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: var(--color-text-inverse);
    transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255,255,255,0.4);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: rgba(255,255,255,0.15);
}

.form-group select option {
    background: var(--color-bg-dark);
    color: var(--color-text);
}

.form-disclaimer {
    font-size: 13px;
    opacity: 0.6;
    margin-top: 16px;
    text-align: center;
}

/* Contatti */
.contatti-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
}

.contatti-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.info-card {
    background: var(--color-bg-light);
    padding: 28px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.info-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

.info-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.info-card h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.info-card p {
    font-size: 15px;
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 8px;
}

.info-card a {
    color: var(--color-primary);
    font-weight: 600;
    transition: var(--transition);
}

.info-card a:hover {
    color: var(--color-secondary);
}

.link-map {
    display: inline-block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-secondary) !important;
}

.small {
    font-size: 13px !important;
    opacity: 0.8;
}

.contatti-mappa {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    min-height: 400px;
}

.contatti-mappa iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    display: block;
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: var(--color-text-inverse);
    padding: 60px 0 24px;
}

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

.footer-brand h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 16px;
}

.footer-brand p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-links h4,
.footer-contact h4 {
    font-family: var(--font-heading);
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--color-secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--color-secondary);
}

.footer-contact p {
    opacity: 0.8;
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-contact a {
    color: var(--color-secondary);
    transition: var(--transition);
}

.footer-contact a:hover {
    color: var(--color-text-inverse);
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--color-bg);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    max-width: 500px;
    width: 100%;
    position: relative;
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--color-text-light);
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--color-primary);
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: var(--color-text-inverse);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 20px;
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 28px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.modal-content p {
    color: var(--color-text-light);
    margin-bottom: 12px;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 1024px) {
    .chi-siamo-grid,
    .prenotazione-grid,
    .contatti-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .chi-siamo-images {
        order: -1;
    }

    .img-secondary {
        display: none;
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item.large {
        grid-column: span 2;
        grid-row: span 1;
    }
}

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

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--color-bg);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        box-shadow: var(--shadow-md);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }

    .nav-menu a {
        display: block;
        padding: 16px 0;
        font-size: 16px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .menu-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 2;
    }

    .contatti-info {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .prenotazione-form {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item.large,
    .gallery-item.wide {
        grid-column: span 1;
    }
}
