/* ============================================================
   Strada Nuova — base.css
   Stili condivisi tra tutte le pagine: variabili, reset, tipografia,
   nav, footer, container/section, skip-link, focus, a11y.
   Stili page-specific (hero, drop, chi-siamo, appuntamento) restano
   in <style> della pagina di riferimento.
   ============================================================ */

/* === FONT SELF-HOST (no Google Fonts CDN) === */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/inter-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/inter-600.woff2') format('woff2');
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

/* === VARIABILI === */
:root {
  --bg: #1a1a1a;
  --bg-card: #242424;
  --text: #f0f0f0;
  --text-dim: #888;
  --accent: #e8531e;
  --accent-hover: #ff6a35;
  --border: #333;
  --max-w: 1200px;
}

/* === BASE === */
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

button { font-family: inherit; }

/* === FOCUS VISIBLE (a11y) === */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* === SKIP-LINK (a11y) === */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* === NAV === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(26, 26, 26, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  align-items: center;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.nav-links .nav-cta {
  color: var(--text);
  border: 1px solid var(--accent);
  padding: 8px 14px;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
}
.nav-links .nav-cta:hover,
.nav-links .nav-cta[aria-current="page"] {
  background: var(--accent);
  color: #fff;
}

@media (max-width: 1100px) {
  .site-nav { padding: 18px 24px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 11px; letter-spacing: 0.06em; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
}

/* === SECTION / CONTAINER === */
.section {
  padding: 120px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  display: block;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-text {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 560px;
  line-height: 1.7;
}

/* === BREADCRUMB === */
.breadcrumb {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 100px 40px 0;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 8px;
  color: var(--border);
}
.breadcrumb a {
  color: var(--text-dim);
  transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--text); }
.breadcrumb [aria-current="page"] { color: var(--text); }

/* === FOOTER === */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 40px 24px;
  font-size: 13px;
  color: var(--text-dim);
}

.site-footer a {
  color: var(--text-dim);
  transition: color 0.2s;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  max-width: var(--max-w);
  margin: 0 auto 40px;
}

.footer-col h3.footer-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-col li a {
  font-size: 13px;
  line-height: 1.5;
}

.footer-nap address {
  font-style: normal;
  line-height: 1.7;
  margin-bottom: 12px;
}

.footer-hours {
  font-size: 12px;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  max-width: var(--max-w);
  margin: 0 auto;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .site-nav { padding: 16px 20px; }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 200;
    padding: 80px 20px 40px;
    margin: 0;
    display: none !important;
    overflow-y: auto;
  }
  .nav-links.open {
    display: flex !important;
  }
  .nav-links.open a {
    font-size: 18px;
    color: var(--text);
    letter-spacing: 0.12em;
  }
  .nav-links.open .nav-cta {
    margin-top: 8px;
    padding: 12px 28px;
  }
  .nav-toggle {
    display: block;
    z-index: 300;
    font-size: 28px;
  }

  .section { padding: 80px 20px; }
  .breadcrumb { padding: 90px 20px 0; }

  .site-footer { padding: 40px 20px 20px; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* === GOOGLE REVIEWS BLOCK === */
.google-reviews {
  max-width: var(--max-w);
  margin: 60px auto;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}
.gr-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.gr-header-left { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gr-logo {
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1;
}
.gr-logo-blue   { color: #4285F4; }
.gr-logo-red    { color: #EA4335; }
.gr-logo-yellow { color: #FBBC05; }
.gr-logo-green  { color: #34A853; }
.gr-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.gr-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.gr-rating-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.gr-rating-stars { display: inline-flex; gap: 1px; }
.gr-star { color: #444; font-size: 16px; line-height: 1; }
.gr-star-full { color: #FBBC05; }
.gr-rating-count {
  color: var(--text-dim);
  font-size: 13px;
}
.gr-reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.gr-review-card {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gr-review-header { display: flex; align-items: center; gap: 12px; }
.gr-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.gr-review-avatar-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #3a3a3a;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
}
.gr-review-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gr-review-name {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.2;
}
a.gr-review-name:hover { text-decoration: underline; }
.gr-review-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-dim);
}
.gr-review-stars { display: inline-flex; gap: 1px; }
.gr-review-rating-row .gr-star { font-size: 13px; }
.gr-review-time { white-space: nowrap; }
.gr-review-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}
.gr-footer-link {
  text-align: center;
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.gr-cta {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 3px;
  font-size: 14px;
  font-weight: 500;
}
.gr-cta:hover { text-decoration-color: var(--text); color: var(--accent); }

@media (max-width: 600px) {
  .google-reviews { margin: 40px 20px; padding: 22px 18px; }
  .gr-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gr-rating-value { font-size: 20px; }
  .gr-reviews-grid { grid-template-columns: 1fr; gap: 12px; }
  .gr-review-card { padding: 14px; }
}

/* === REDUCED MOTION (a11y) === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
