/*
Theme Name: Locanda del Viandante
Theme URI: https://vortisdigital.it
Author: Vortis Digital
Description: Tema custom per Locanda del Viandante - Trattoria Pizzeria a Villafranca di Verona
Version: 2.0.0
Text Domain: locanda
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  background: #fff;
  color: #333;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === COLORS === */
:root {
  --red: #8B1A1A;
  --red-dark: #6B1010;
  --red-light: #A52525;
  --green: #2D6A2E;
  --green-dark: #1F5420;
  --green-light: #3D8A3E;
  --gold: #C9A84C;
  --gold-light: #D4B85C;
  --cream: #FDFBF7;
  --cream-dark: #F5F0E6;
  --dark: #1a1a1a;
  --darker: #111;
  --text: #333;
  --text-light: #666;
  --white: #fff;
  --border: #e0d8c8;
}

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-family: inherit; font-weight: 700; text-transform: uppercase;
  border: 2px solid transparent; border-radius: 6px; cursor: pointer;
  transition: all .2s; text-align: center; line-height: 1.3;
  font-size: .8rem; padding: 12px 24px; letter-spacing: .5px;
}
.btn-sm { font-size: .72rem; padding: 8px 18px; }
.btn-lg { font-size: .95rem; padding: 16px 32px; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: var(--green-dark); border-color: var(--green-dark); }
.btn-red { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-outline { background: transparent; color: var(--text); border-color: #ccc; }
.btn-outline:hover { background: rgba(0,0,0,.05); }
.btn-white { background: #fff; color: var(--dark); border-color: #fff; }
.btn-white:hover { background: #f0f0f0; }
.btn-white-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-white-outline:hover { background: rgba(255,255,255,.1); }

/* === HEADER === */
.site-header {
  background: var(--darker); padding: 0;
  position: sticky; top: 0; z-index: 100;
}
.header-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-img { height: 50px; width: auto; }
.logo-text { line-height: 1.1; }
.logo-name {
  font-family: 'Playfair Display', serif; font-size: 1.4rem;
  font-weight: 700; color: #fff;
}
.logo-sub { font-size: .55rem; letter-spacing: 3px; color: var(--gold); display: block; text-transform: uppercase; }
.header-actions { display: flex; gap: 8px; align-items: center; }

.header-nav {
  background: var(--dark); border-top: 1px solid #333;
}
.nav { display: flex; justify-content: center; gap: 0; }
.nav-link {
  font-size: .7rem; font-weight: 700; letter-spacing: .5px; padding: 12px 14px;
  transition: color .2s; text-transform: uppercase; color: #ccc;
}
.nav-link:hover { color: #fff; }
.nav-link.active { color: var(--gold); border-bottom: 2px solid var(--gold); }
.hamburger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span {
  display: block; width: 24px; height: 2px; background: #fff;
  margin: 5px 0; transition: .3s;
}

/* === HERO === */
.hero {
  position: relative; min-height: 480px;
  background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.75) 0%, rgba(0,0,0,.4) 50%, rgba(0,0,0,.2) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  padding: 70px 20px; color: #fff;
  max-width: 650px;
}
.hero-home { min-height: 560px; }
.hero h1 {
  font-family: 'Montserrat', sans-serif; font-size: 2.6rem;
  font-weight: 900; line-height: 1.08; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: -1px;
}
.hero-home h1 { font-size: 3.4rem; }
.hero h1 em {
  font-style: normal; color: var(--gold); display: block;
  font-size: 1em;
}
.hero-sub { font-size: .95rem; line-height: 1.7; margin-bottom: 28px; max-width: 500px; font-weight: 400; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* === SECTIONS === */
.section { padding: 60px 0; }
.section-alt { background: var(--cream-dark); }
.section-dark { background: var(--dark); color: #fff; }
.section-red { background: var(--red); color: #fff; }
.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem; font-weight: 800; margin-bottom: 8px;
  color: var(--dark); text-transform: uppercase; text-align: center;
}
.section-subtitle {
  font-size: .9rem; color: var(--text-light); margin-bottom: 32px;
  max-width: 600px; text-align: center; margin-left: auto; margin-right: auto;
}
.section-label {
  font-size: .7rem; font-weight: 700; color: var(--red);
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: 2px;
}
.section-label-script {
  font-family: 'Playfair Display', serif;
  font-style: italic; font-size: 1.1rem; color: var(--gold);
  margin-bottom: 4px;
}

/* === BADGES STRIP (dark bar under hero) === */
.badges-strip {
  background: var(--darker); padding: 24px 0; color: #fff;
}
.badges-strip .info-badges { border: none; padding: 0; }
.badges-strip .info-badge { color: #fff; }
.badges-strip .info-badge strong { color: #fff; }
.badges-strip .info-badge span { color: #aaa; }
.badges-strip .info-badge-icon { border-color: var(--gold); color: var(--gold); background: transparent; }

/* === INFO BADGES === */
.info-badges {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px;
  padding: 16px 0;
}
.info-badge { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.info-badge-icon {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  border: 2px solid var(--border); display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem;
}
.info-badge-text { text-align: left; }
.info-badge strong { display: block; font-size: .62rem; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 1px; }
.info-badge span { font-size: .58rem; color: var(--text-light); line-height: 1.3; display: block; }

/* === CARDS SPECIALITA === */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  transition: transform .3s, box-shadow .3s;
  position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.card-img { height: 220px; overflow: hidden; position: relative; border-radius: 12px 12px 0 0; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-icon {
  position: absolute; top: 12px; left: 12px;
  width: 44px; height: 44px; background: rgba(0,0,0,.6);
  border: 2px solid var(--gold); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 1.1rem; z-index: 2;
}
.card-body { padding: 20px; position: relative; }
.card-label { font-size: .6rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.card-body h3 { font-size: .95rem; font-weight: 800; margin-bottom: 8px; text-transform: uppercase; line-height: 1.3; }
.text-red { color: var(--red); }
.card-body p { font-size: .78rem; color: var(--text-light); margin-bottom: 14px; line-height: 1.6; }
.card-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--green); color: #fff; font-size: .65rem;
  font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 18px; border-radius: 4px; transition: background .2s;
}
.card-link:hover { opacity: .9; }
.card-link-red { background: var(--red); }
.card-link-darkgreen { background: #2B5B2B; }
.card-link-olive { background: #5B6B2B; }
.card-link-brown { background: #6B4B2B; }

/* === PIATTO CARD === */
.piatto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.piatto-card {
  background: var(--white); border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
}
.piatto-card-img { height: 180px; overflow: hidden; position: relative; }
.piatto-card-img img { width: 100%; height: 100%; object-fit: cover; }
.piatto-card-body { padding: 16px; }
.piatto-card-body h3 { font-size: .8rem; font-weight: 800; margin-bottom: 4px; text-transform: uppercase; }
.piatto-card-body p { font-size: .72rem; color: var(--text-light); margin-bottom: 10px; line-height: 1.5; }
.piatto-price { font-size: 1.1rem; font-weight: 800; color: var(--red); }

/* === CONTENT SPLIT === */
.content-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center;
}
.content-split-text .section-label { margin-bottom: 8px; }
.content-split-text h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem; font-weight: 800; line-height: 1.2;
  margin-bottom: 16px; color: var(--dark);
}
.content-split-text p {
  font-size: .88rem; line-height: 1.8; color: var(--text);
  margin-bottom: 12px;
}
.content-split-img { border-radius: 12px; overflow: hidden; }
.content-split-img img { width: 100%; height: 100%; object-fit: cover; }

/* === FAQ === */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; max-width: 900px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq-question {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 700; font-size: .88rem; color: var(--text);
  cursor: pointer;
}
.faq-question::after { content: "\276F"; font-size: .8rem; color: var(--text-light); transition: transform .2s; }
.faq-item.open .faq-question::after { transform: rotate(90deg); }
.faq-answer { font-size: .82rem; color: var(--text-light); line-height: 1.7; padding-top: 8px; display: none; }
.faq-item.open .faq-answer { display: block; }

/* === REVIEWS MINI === */
.reviews-mini { background: var(--cream-dark); padding: 48px 0; }
.reviews-mini-title { text-align: center; font-size: 1.4rem; font-weight: 800; text-transform: uppercase; margin-bottom: 24px; }
.reviews-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.review-mini-card {
  background: #fff; border-radius: 10px; padding: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,.06); position: relative;
}
.review-mini-card .g-icon {
  width: 24px; height: 24px; background: #4285F4; color: #fff;
  border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-size: .7rem; font-weight: 700;
}
.review-mini-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.review-mini-stars { color: #f5a623; font-size: .7rem; }
.review-mini-card p { font-size: .82rem; color: var(--text); line-height: 1.6; margin-bottom: 10px; }
.review-mini-author { font-size: .75rem; color: var(--text-light); font-weight: 600; }
.reviews-mini-cta { text-align: center; margin-top: 20px; }
.reviews-mini-cta a {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; color: var(--text);
  border: 1px solid var(--border); padding: 8px 20px; border-radius: 6px;
}
.reviews-mini-cta a:hover { background: var(--cream-dark); }

/* === REVIEWS PAGE === */
.reviews-header { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.reviews-score { text-align: center; }
.reviews-score .score-num { font-size: 2.4rem; font-weight: 800; color: var(--text); }
.reviews-score .score-stars { color: #f5a623; font-size: 1rem; }

/* === CONTATTI === */
.contatti-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; align-items: start; }
.contatti-col-map { border-radius: 10px; overflow: hidden; }
.orari-table { width: 100%; font-size: .82rem; border-collapse: collapse; }
.orari-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.orari-table td:first-child { font-weight: 600; }

/* === SEO CONTENT BLOCKS === */
.seo-block { padding: 48px 0; }
.seo-block h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem; font-weight: 800; color: var(--dark); margin-bottom: 16px;
}
.seo-block p { font-size: .88rem; line-height: 1.8; color: var(--text); margin-bottom: 16px; max-width: 800px; }
.seo-block ul { list-style: none; padding: 0; margin-bottom: 16px; }
.seo-block ul li {
  font-size: .85rem; padding: 6px 0 6px 24px; position: relative; color: var(--text);
}
.seo-block ul li::before {
  content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}

/* === PERCHE SCEGLIERE === */
.perche-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.perche-item { padding: 20px 12px; }
.perche-icon {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; font-size: 1.3rem;
}
.perche-icon-gold { border-color: var(--gold); color: var(--gold); }
.perche-item h4 { font-size: .72rem; font-weight: 700; margin-bottom: 6px; text-transform: uppercase; }
.perche-item p { font-size: .68rem; color: var(--text-light); line-height: 1.5; }

/* === HOME CTA SECTION === */
.home-cta-address {
  margin: 16px auto 24px; max-width: 500px;
  color: var(--text-light); font-size: .9rem;
}
.home-cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* === MENU KIOSK === */
.kiosk-page { padding: 40px 0 80px; min-height: 80vh; }
.kiosk-page.fullscreen { padding: 0; }
.kiosk-page.fullscreen .menu-tabs { margin-bottom: 0; }
.menu-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 32px; }
.menu-tab {
  font-family: 'Montserrat', sans-serif;
  font-size: .85rem; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 12px 32px;
  border: 2px solid #ccc; border-radius: 8px;
  background: transparent; color: var(--text-light); cursor: pointer;
  transition: all .2s;
}
.menu-tab:hover { border-color: #999; color: var(--text); }
.menu-tab.active { background: var(--green); border-color: var(--green); color: #fff; }
.menu-viewer { background: var(--white); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.menu-viewer iframe { width: 100%; height: 85vh; min-height: 600px; border: none; display: block; }
.auto-badge {
  display: inline-block; background: rgba(45,106,46,.1);
  color: var(--green); font-size: .7rem; font-weight: 700;
  letter-spacing: 1px; padding: 4px 12px; border-radius: 20px;
  border: 1px solid rgba(45,106,46,.3);
}

/* === FOOTER CTA === */
.footer-cta { background: var(--red-dark); padding: 20px 0; color: #fff; }
.footer-cta-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-cta .footer-text { font-size: .95rem; font-weight: 700; }
.footer-cta .footer-text em { font-family: 'Playfair Display', serif; font-style: italic; color: var(--gold); }
.footer-cta-buttons { display: flex; gap: 10px; align-items: center; }

/* === FOOTER FEATURES BAR === */
.footer-features {
  background: var(--cream-dark); padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-features-grid {
  display: flex; justify-content: space-around; flex-wrap: wrap; gap: 16px;
}
.footer-feature { display: flex; align-items: center; gap: 10px; text-align: left; }
.footer-feature-icon { font-size: 1.4rem; }
.footer-feature strong { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .5px; }
.footer-feature span { font-size: .65rem; color: var(--text-light); }

/* === FOOTER === */
.site-footer { background: var(--darker); color: #aaa; padding: 40px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 24px; }
.footer-col h4 { color: #fff; font-size: .8rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.footer-col p, .footer-col a { font-size: .78rem; color: #aaa; line-height: 1.8; display: block; }
.footer-col a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 12px; }
.footer-social a {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid #555;
  display: flex; align-items: center; justify-content: center;
  color: #aaa; font-size: .75rem; transition: all .2s;
}
.footer-social a:hover { border-color: #fff; color: #fff; }
.footer-map {
  border-radius: 8px; overflow: hidden; margin-top: 8px;
}
.footer-map img, .footer-map iframe { width: 100%; height: 160px; object-fit: cover; display: block; }
.footer-bottom-bar {
  border-top: 1px solid #333; padding: 16px 0;
  text-align: center; font-size: .65rem; color: #555;
}
.footer-bottom-bar a { display: inline; color: #777; }
.footer-bottom-bar a:hover { color: #fff; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; position: absolute;
    top: 100%; left: 0; right: 0; background: var(--darker);
    padding: 16px; z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,.3);
  }
  .nav.open .nav-link { padding: 12px 16px; font-size: .82rem; }
  .hamburger { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .header-actions .btn-label { display: none; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .perche-grid { grid-template-columns: repeat(3, 1fr); }
  .content-split { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 1.6rem; }
  .hero-inner { padding: 50px 20px; }
  .hero { min-height: 400px; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .cards-grid { grid-template-columns: 1fr; }
  .piatto-grid { grid-template-columns: 1fr 1fr; }
  .contatti-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cta-inner { flex-direction: column; text-align: center; }
  .footer-cta-buttons { justify-content: center; }
  .info-badges { flex-direction: column; align-items: center; }
  .reviews-mini-grid { grid-template-columns: 1fr; }
  .perche-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; }
  .menu-tabs { flex-direction: column; align-items: center; }
  .menu-tab { width: 100%; max-width: 280px; }
  .header-actions .btn:not(.btn-red) { display: none; }
  .footer-features-grid { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.35rem; }
  .logo-name { font-size: 1.1rem; }
  .btn-lg { padding: 14px 24px; font-size: .85rem; }
  .perche-grid { grid-template-columns: 1fr; }
  .piatto-grid { grid-template-columns: 1fr; }
}
