/* ============================================ */
/* RESET & BASE */
/* ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #fefaf5;
    color: #2c2b28;
    line-height: 1.5;
}

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

/* ============================================ */
/* HEADER & NAVIGAZIONE */
/* ============================================ */
header {
    background: rgba(255, 250, 240, 0.96);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e9dfd3;
    padding: 15px 0;
}

.nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 1.8rem;
    color: #8b5a2b;
    font-family: 'Playfair Display', serif;
}

.logo p {
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: #8b5a2b;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #3b2a1f;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #b46f3a;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: #8b5a2b;
}

.lang-switcher {
    display: flex;
    gap: 8px;
    background: #fff6ef;
    padding: 6px 12px;
    border-radius: 40px;
}

.lang-btn {
    background: none;
    border: none;
    padding: 6px 10px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    color: #6f4e2e;
    transition: all 0.3s;
}

.lang-btn.active {
    background: #8b5a2b;
    color: white;
}

/* ============================================ */
/* HERO SLIDER HOME */
/* ============================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    min-height: 85vh;
    display: flex;
    align-items: center;
    text-align: center;
}

.slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.5);
    width: 100%;
    padding: 100px 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    color: white;
}

.hero-content h2 {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 16px;
}

.hero-tagline {
    font-size: 1.2rem;
}

.btn-reserve {
    background: #8b5a2b;
    color: white;
    padding: 12px 28px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    margin-top: 24px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-reserve:hover {
    background: #6b4520;
}

.slider-prev, .slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 12px 20px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease;
}

.slider-prev:hover, .slider-next:hover {
    background: rgba(255, 255, 255, 0.6);
    color: #8b5a2b;
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active { background: #8b5a2b; }
.dot:hover { background: #d9b48b; }

/* ============================================ */
/* HOME INTRO */
/* ============================================ */
.home-intro {
    padding: 60px 0;
}

.grid-2col {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.grid-2col > div {
    flex: 1;
}

.grid-text {
    flex: 1;
}

.grid-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.grid-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.3s ease;
}

.grid-gallery img:hover {
    transform: scale(1.02);
}

.lead-text {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* ============================================ */
/* FEATURES HOME */
/* ============================================ */
.home-features {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

.feature-block {
    background: #fffaf5;
    padding: 28px;
    border-radius: 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.feature-block h3 {
    font-size: 1.5rem;
    color: #6b3f1c;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
}

.feature-block p {
    color: #5a4a3a;
    margin-bottom: 15px;
}

/* ============================================ */
/* LISTE CON EMOJI */
/* ============================================ */
ul {
    list-style: none;
    padding-left: 0;
}

.features-list li, 
.home-features ul li {
    margin: 12px 0;
    display: flex;
    align-items: center;
}

.emoji-icon {
    font-size: 1.2rem;
    margin-right: 12px;
    display: inline-block;
    width: 28px;
    text-align: center;
}

.features-list li span:last-child,
.home-features ul li span:last-child {
    flex: 1;
}

/* ============================================ */
/* PAGINE STANDARD */
/* ============================================ */
.page-section {
    padding: 80px 0;
    border-bottom: 1px solid #efe2d4;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    color: #6b3f1c;
    font-family: 'Playfair Display', serif;
    margin-bottom: 48px;
}

.section-title:after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background: #d9b48b;
    margin: 12px auto 0;
}

.section-subtitle {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
    color: #5a4a3a;
}

.text-center {
    text-align: center;
}

/* ============================================ */
/* SFONDI */
/* ============================================ */
.bg-cream {
    background: #f5ede4;
}

.bg-warm {
    background: #faf3ea;
}

/* ============================================ */
/* CONTATTI */
/* ============================================ */
.contact-info {
    background: white;
    border-radius: 48px;
    padding: 40px;
    text-align: center;
}

.contact-info p {
    margin: 15px 0;
}

.contact-info .emoji-icon {
    font-size: 1.2rem;
    margin-right: 10px;
    width: 30px;
    display: inline-block;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
}

/* ============================================ */
/* CHI SIAMO */
/* ============================================ */
.chi-siamo-hero {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('images/La Sinica - chi siamo1.jpg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.chi-siamo-hero .section-title {
    color: white;
}

.chi-siamo-hero .section-title:after {
    background: #d9b48b;
}

.about-main-img {
    width: 100%;
    height: auto;
    min-height: 280px;
    object-fit: cover;
    border-radius: 24px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.value-card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.value-card i {
    font-size: 2.5rem;
    color: #8b5a2b;
    margin-bottom: 15px;
}

.value-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #3b2a1f;
}

.value-card p {
    color: #666;
    line-height: 1.5;
}

/* ============================================ */
/* DOVE SIAMO */
/* ============================================ */
.dove-siamo-hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('images/La Sinica - home (1).jpeg');
    background-size: cover;
    background-position: center;
    padding: 80px 0;
    text-align: center;
    color: white;
}

.dove-siamo-hero .section-title {
    color: white;
}

.dove-siamo-hero .section-title:after {
    background: #d9b48b;
}

.dove-siamo-hero .section-subtitle {
    color: rgba(255,255,255,0.9);
}

.dove-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 40px;
    align-items: stretch;
}

.dove-info-card {
    background: white;
    border-radius: 28px;
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.dove-info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.dove-info-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #fff6ef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b5a2b;
    font-size: 1.1rem;
}

.dove-info-item h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #8b5a2b;
    margin-bottom: 4px;
    font-weight: 600;
}

.dove-info-item p {
    color: #3b2a1f;
    font-size: 0.95rem;
    line-height: 1.5;
}

.dove-info-item a {
    color: #3b2a1f;
    text-decoration: none;
    transition: color 0.2s;
}

.dove-info-item a:hover {
    color: #8b5a2b;
}

.dove-btn-wa {
    margin-top: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1rem;
    padding: 14px 24px;
    border-radius: 28px;
}

.dove-btn-wa i {
    font-size: 1.2rem;
}

.dove-btn-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    padding: 12px 24px;
    text-align: center;
}

.dove-map {
    border-radius: 24px;
    overflow: hidden;
    min-height: 480px;
}

.dove-map iframe {
    width: 100%;
    height: 100%;
    min-height: 480px;
    border-radius: 24px;
    display: block;
}

/* Come raggiungerci */
.reach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 36px;
}

.reach-card {
    background: white;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.reach-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.reach-card i {
    font-size: 2.2rem;
    color: #8b5a2b;
    margin-bottom: 16px;
    display: block;
}

.reach-card h4 {
    font-size: 1.15rem;
    color: #3b2a1f;
    margin-bottom: 12px;
    font-family: 'Playfair Display', serif;
}

.reach-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ============================================ */
/* BOTTONI SECONDARI */
/* ============================================ */
.btn-outline {
    background: transparent;
    border: 2px solid #8b5a2b;
    color: #8b5a2b;
    padding: 10px 22px;
    border-radius: 40px;
    text-decoration: none;
    display: inline-block;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 0.95rem;
}

.btn-outline:hover {
    background: #8b5a2b;
    color: white;
}

/* ============================================ */
/* FOOTER */
/* ============================================ */
footer {
    background: #2c241a;
    color: #ddd2c4;
    text-align: center;
    padding: 32px 0;
}

.social-icons {
    margin-top: 16px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-icons a {
    color: #ddd2c4;
    font-size: 1.5rem;
    text-decoration: none;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #d9b48b;
}

/* ============================================ */
/* RESPONSIVE DESIGN - TABLET (≤ 900px) */
/* ============================================ */
@media (max-width: 900px) {
    .home-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - MOBILE (≤ 768px) */
/* ============================================ */
@media (max-width: 768px) {
    /* --- Container --- */
    .container {
        padding: 0 16px;
    }

    /* --- Header & Navbar --- */
    header {
        padding: 10px 0;
    }

    .nav-bar {
        display: grid;
        grid-template-columns: 1fr auto auto;
        grid-template-rows: auto auto;
        align-items: center;
        gap: 0 12px;
        flex-wrap: nowrap;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
    }

    .logo h1 {
        font-size: 1.4rem;
    }

    .logo p {
        font-size: 0.6rem;
        letter-spacing: 1.5px;
    }

    .mobile-menu-btn {
        display: block;
        grid-column: 2;
        grid-row: 1;
        font-size: 1.6rem;
        padding: 6px 10px;
        min-width: 44px;
        min-height: 44px;
    }

    /* Language switcher compact on mobile */
    .lang-switcher {
        grid-column: 3;
        grid-row: 1;
        display: flex;
        gap: 2px;
        padding: 4px 6px;
        background: #fff6ef;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 0.7rem;
        min-width: 28px;
        min-height: 28px;
        border-radius: 20px;
    }

    /* Nav links: full-width dropdown below header row */
    .nav-links {
        display: none;
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        flex-direction: column;
        text-align: center;
        padding: 12px 0 8px;
        gap: 0;
        border-top: 1px solid #e9dfd3;
        margin-top: 10px;
    }

    .nav-links.show {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 8px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links a:hover {
        background: #fff0e6;
    }

    /* --- Hero --- */
    .hero-slider {
        min-height: 70vh;
    }

    .hero-overlay {
        padding: 60px 0;
    }

    .hero-content {
        padding: 0 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-tagline {
        font-size: 1rem;
        margin-top: 8px;
    }

    .btn-reserve {
        margin-top: 20px;
        padding: 14px 28px;
        font-size: 1rem;
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }

    /* Slider controls */
    .slider-prev, .slider-next {
        font-size: 1.3rem;
        padding: 8px 12px;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slider-prev { left: 8px; }
    .slider-next { right: 8px; }

    .dot {
        width: 8px;
        height: 8px;
    }

    /* Swipe hint - visual indicator on mobile */
    .slider-dots {
        bottom: 16px;
        gap: 10px;
    }

    /* --- Sezioni generali --- */
    .page-section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 32px;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 28px;
    }

    /* --- Layout 2 colonne → 1 colonna --- */
    .grid-2col {
        flex-direction: column;
        gap: 28px;
    }

    /* Inverti ordine su alcune sezioni (immagine sopra il testo) */
    .grid-2col.img-first-mobile > div:first-child {
        order: 2;
    }
    .grid-2col.img-first-mobile > div:last-child {
        order: 1;
    }

    /* --- Home intro --- */
    .home-intro {
        padding: 40px 0;
    }

    .lead-text {
        font-size: 1.05rem;
    }

    .grid-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .grid-gallery img {
        height: 160px;
        border-radius: 16px;
    }

    /* --- Home features --- */
    .home-features {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .feature-block {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .feature-block h3 {
        font-size: 1.3rem;
    }

    /* --- Dove Siamo --- */
    .dove-grid {
        grid-template-columns: 1fr;
    }

    .dove-map {
        min-height: 340px;
        order: -1;
    }

    .dove-map iframe {
        min-height: 340px;
    }

    .dove-info-card {
        padding: 28px 20px;
        gap: 20px;
    }

    .reach-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .reach-card {
        padding: 24px 20px;
        text-align: left;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .reach-card i {
        margin-bottom: 12px;
    }

    /* --- Chi Siamo --- */
    .chi-siamo-hero {
        padding: 50px 0;
    }

    .chi-siamo-hero .section-title {
        font-size: 2rem;
    }

    .about-main-img {
        min-height: 220px;
        border-radius: 18px;
    }

    .values-grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .value-card {
        padding: 24px 16px;
        border-radius: 18px;
    }

    .value-card i {
        font-size: 2rem;
    }

    .value-card h4 {
        font-size: 1.1rem;
    }

    /* --- Philosophy list --- */
    .page-section ul li {
        margin: 10px 0;
    }

    /* --- Contatti --- */
    .contact-info {
        padding: 28px 20px;
        border-radius: 28px;
    }

    .contact-info p {
        font-size: 0.95rem;
        margin: 14px 0;
        text-align: left;
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .contact-info p strong {
        white-space: nowrap;
    }

    .contact-info .btn-reserve {
        width: 100%;
        text-align: center;
        margin-top: 24px;
        padding: 16px 20px;
        border-radius: 28px;
        font-size: 1rem;
    }

    /* --- Footer --- */
    footer {
        padding: 24px 0;
    }

    footer p {
        font-size: 0.85rem;
        padding: 0 16px;
    }

    .social-icons {
        gap: 24px;
        margin-top: 14px;
    }

    .social-icons a {
        font-size: 1.6rem;
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* ============================================ */
/* RESPONSIVE DESIGN - SMALL MOBILE (≤ 480px) */
/* ============================================ */
@media (max-width: 480px) {
    .logo h1 {
        font-size: 1.2rem;
    }

    .logo p {
        display: none;
    }

    .lang-btn {
        padding: 4px 5px;
        font-size: 0.65rem;
        min-width: 24px;
    }

    .hero-slider {
        min-height: 60vh;
    }

    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

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

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

    .grid-gallery img {
        height: 130px;
        border-radius: 12px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .value-card {
        padding: 20px 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .feature-block {
        padding: 20px 16px;
    }

    .contact-info {
        padding: 20px 16px;
    }

    .map-container iframe {
        height: 280px;
    }

    .chi-siamo-hero {
        padding: 36px 0;
    }

    .page-section {
        padding: 36px 0;
    }

    .home-intro {
        padding: 32px 0;
    }
}

/* ============================================ */
/* TOUCH & ACCESSIBILITY */
/* ============================================ */
@media (hover: none) and (pointer: coarse) {
    /* Rimuovi hover su touch devices per evitare stuck states */
    .feature-block:hover,
    .value-card:hover,
    .grid-gallery img:hover {
        transform: none;
        box-shadow: none;
    }

    /* Aumenta aree cliccabili */
    .lang-btn {
        min-height: 36px;
    }

    .nav-links a {
        padding: 14px 16px;
    }
}