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

html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #8b4513;
    --secondary-color: #d2691e;
    --accent-color: #cd853f;
    --dark-bg: #2c2416;
    --light-bg: #faf8f3;
    --text-dark: #3a3a3a;
    --text-light: #ffffff;
    --warm-beige: #f5e6d3;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    background: var(--light-bg);
}

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

/* Header */
header {
    background: var(--dark-bg);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
    font-size: 0.95rem;
}

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

.nav-menu a:hover {
    color: var(--accent-color);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    transition: 0.3s;
}

/* , Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;

    background:
        linear-gradient(rgba(20,15,10,0.30), rgba(20,15,10,0.30)),
        url("img/trattoria-3.jpg") center / cover no-repeat;
}

.hero-card {
    background: var(--dark-bg);
    border: 5px solid var(--warm-beige);
    border-radius: 10px;
    padding: 3rem 2rem;
    max-width: 520px;
    text-align: center;
}


.hero-content h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: var(--accent-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    font-weight: 700;
}

.hero-btn {
    display: inline-block;
    margin-top: 2rem;
    padding: 1.1rem 3rem;

    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    letter-spacing: 1px;

    color: #fff;
    border: 1px solid rgba(255,255,255,0.6);
    background: transparent;

    text-decoration: none;
    transition: all 0.3s ease;
}

.hero-btn:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
}

.hero-logo {
    max-width: 800px;
    width: 100%;
    height: auto;
}

.subtitle {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: var(--warm-beige);
}

.tagline {
    font-size: 1.2rem;
    font-style: italic;
    color: var(--warm-beige);
    margin-top: 1rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: white;
}

.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-dark);
    position: relative;
    padding-bottom: 1rem;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-color);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: stretch; /* 👈 fondamentale */
}


.about-text {
    background: var(--warm-beige);
    padding: 2.5rem 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(204, 121, 41, 0.15);

    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 👈 invece di center */
}

.about-image,
.about-text {
    border-radius: 14px;
}




.about-text p {
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.signature {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 2rem;
}
.about-image {
    background: var(--dark-bg); /* colore cornice */
    padding: 10px;                 /* spessore cornice */
    border-radius: 10px;           /* arrotonda la cornice */
    box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: contrast(1.05) saturate(0.95);
    border-radius: 10px;           /* immagine arrotondata */
    display: block;
}

.image-caption {
    text-align: center;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    margin-top: 0.8rem;
    color: var(--warm-beige);
}


/* Evidenziazione frase iniziale */
.lead {
    background: linear-gradient(90deg, #d2691e33, #cd853f33);
    border-left: 6px solid var(--primary-color);
    padding-left: 1rem;
    font-weight: 700;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    border-radius: 4px;
    box-shadow: 2px 3px 5px rgba(204, 121, 41, 0.15);
}

/* Firma con effetto calligrafico */
.signature {
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 3rem;
    font-family: 'Dancing Script', cursive; /* Aggiungi questo font da Google Fonts */
    font-size: 1.5rem;
    letter-spacing: 1px;
}

/* Sfondo leggero dietro about-text */
.about-text {
    background: var(--warm-beige);
    padding: 2rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 20px rgba(204, 121, 41, 0.15);
}

/* Paragrafi leggermente più distanziati */
.about-text p {
    margin-bottom: 1.8rem;
    color: var(--text-dark);
    line-height: 1.9;
}



/* Menu Section */
.menu-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.menu-intro {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    font-style: italic;
}

.menu-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.menu-category {
    margin-bottom: 2.5rem;
}

.menu-category h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    font-weight: 700;
}

.menu-item {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.3rem;
}

.item-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.item-desc {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 0.3rem;
}

/* Hours Section */
.hours-section {
    padding: 80px 0;
    background: var(--light-bg);
}

.hours-container {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--warm-beige);
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
    transition: transform 0.3s;
}

.hours-item:hover {
    transform: translateX(5px);
}

.day {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-dark);
}

.time {
    color: var(--primary-color);
    font-weight: 600;
}



/* Footer */
footer {
    background: var(--dark-bg);
    color: var(--text-light);
    padding: 3rem 0 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: center;   /* centro orizzontale */
    align-items: center;       /* stessa altezza */
    gap: 1.2rem;               /* distanza tra copyright e credits */
    font-size: 0.9rem;
}

.credits {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.footer-frase {
    font-size: 1.4rem;
}

.credits a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.credits a:hover {
    color: var(--warm-orange);
}

.oloweb-logo {
    height: 1em;
    width: auto;
    display: block;
    margin-left: 6px;
}

.credits-logo-link {
    display: inline-flex;
    align-items: center;
}

.footer-bottom p {
    margin: 0;
    line-height: 1;       /* evita disallineamenti */
    display: flex;
    align-items: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    align-items: center;   /* centers horizontally inside column */
    text-align: center;    /* centers text */
}

.footer-section h3 {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: var(--accent-color);
    margin-bottom: 1rem;
    font-size: 1.7rem;
    font-weight: 700;
}

.footer-section p {
    margin-bottom: 0.5rem;
    line-height: 1.8;
    color: #fff;
}

.footer-tagline {
    font-style: italic;
    color: var(--warm-beige);
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.phone-highlight {
    font-size: 1.2rem;
    font-weight: 700;
}

.phone-highlight a {
    color: var(--accent-color);
}

.hours-note {
    font-size: 0.9rem;
    color: #999;
    font-style: italic;
}

.footer-message {
    position: relative;
    text-align: center;
    margin-top: 2.7rem;
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.footer-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 75%;                 /* 👈 responsive */
    max-width: 1000px;           /* 👈 not too wide */
    height: 1px;
    background: rgba(255,255,255,0.15);
}

.footer-message p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
    margin: 0;
    font-style: italic;
}

.footer-bottom {
    padding: 0.5rem 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
}

.footer-copy,
.footer-credits {
    font-size: 0.85rem;
    color: #fff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}


.footer-logo-section {
    margin-bottom: 1rem;
}

.footer-restaurant-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

.footer-copyright {
    flex: 1;
    text-align: center;
    color: #fff;
}

.footer-credits {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-size: 0.9rem;
    flex: 0 0 auto;
}

.footer-credits p {
    margin: 0;
    color: #fff;
}

.credits-logo {
    height: 18px;     /* prova 14–20px */
    width: auto;
    display: block;
}

.footer-credits a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credits a:hover {
    color: var(--warm-beige);
}

/* Gallery Section */
.gallery-section {
    background: white;
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
    display: block
}

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

.gallery-1 {
    background: url("img/trattoria-1.jpg") center / cover no-repeat;
}
.gallery-2 {
    background: url("img/trattoria-2.jpg") center / cover no-repeat;
}
.gallery-3 {
    background: url("img/trattoria-3.jpg") center / cover no-repeat;
}
.gallery-4 {
    background: url("img/trattoria-4.jpg") center / cover no-repeat;
}
.gallery-5 {
    background: url("img/trattoria-5.jpg") center / cover no-repeat;
}
.gallery-6 {
    background: url("img/trattoria-6.jpg") center / cover no-repeat;
}



/* Contact Section */
.contact-section {
    background: white;
    padding: 80px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-card {
    background: var(--light-bg);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.contact-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.contact-card p {
    margin-bottom: 0.8rem;
    color: var(--text-dark);
}

.contact-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

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

.contact-note {
    color: #666;
    font-size: 0.9rem;
    font-style: italic;
}

.social-links-large {
    display: flex;
    flex-direction: column;  /* li mette uno sotto l'altro */
    align-items: center;     /* li centra orizzontalmente */
    gap: 1rem;               /* spazio verticale tra i bottoni */
}
.social-link-large {
    position: relative;
    overflow: hidden; /* 👈 now this is correct and intentional */

    display: flex;
    align-items: center;
    gap: 0.8rem;

    width: 100%;
    max-width: 280px;
    justify-content: center;

    padding: 0.6rem 1rem;
    border-radius: 12px;
    border: 1.5px solid var(--warm-beige);

    background: transparent;
    color: var(--warm-beige);
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;

    transition:
        color 0.3s ease,
        transform 0.25s ease;
}

.social-link-large::before {
    content: "";
    position: absolute;
    inset: 0;

    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;

    z-index: 0;
}


/* social icon size */
.social-icon {
    font-size: 1.6rem;
    margin-right: 0.8rem;
}

/* hover and brand colors */
.social-link-large:hover {
    background-color: var(--warm-beige);
    color: #1b140e;
    border-color: var(--warm-beige);
}

/* Facebook hover style */
.social-link-large.facebook:hover {
    background-color: #1877f2;
    color: white;
    border-color: #1877f2;
}

/* Instagram hover style */
.social-link-large.instagram:hover::before {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
    opacity: 1;
}

.social-link-large > * {
    position: relative;
    z-index: 1;
}

.social-link-large.instagram:hover {
    color: white;
    border-color: transparent;
}


.map-container {
    margin-top: 2rem;
}

.map-container iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}



/* Responsive */
@media (max-width: 968px) {
    .about-content {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--dark-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.3rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .hours-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

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

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

    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-message p {
        font-size: 1.8rem;
    }
}

/* Font elegante come nel footer – SOLO font, no size / no color */
.subtitle,
.footer-frase,
.section-title,
.map-title {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}