/* ============================================
   RISTORANTE DA AVOLIO — Design System & Styles
   ============================================ */

/* --- Google Fonts ---
   Loaded via <link> in HTML <head> for performance (avoids render-blocking @import).
   Fonts: Playfair Display, Inter
   --- */

/* --- CSS Custom Properties --- */
:root {
  --color-navy: #1B3A5C;
  --color-navy-dark: #0F2440;
  --color-sea: #2E86AB;
  --color-sea-light: #3A9BC5;
  --color-sand: #D4A574;
  --color-sand-light: #E8CDB0;
  --color-olive: #5C7A3B;
  --color-cream: #F5F0E8;
  --color-white: #FDFCF9;
  --color-text: #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-border: #E0D9CE;
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #1EBE57;
  --color-star: #F5A623;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --max-width: 1100px;
  --nav-height: 70px;
  --section-padding: 80px 24px;
  --border-radius: 8px;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--color-navy);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 12px;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.5rem);
}

p {
  margin-bottom: 1rem;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-sea);
  margin-bottom: 8px;
}

.section-intro {
  max-width: 600px;
  margin: 0 auto 48px;
  color: var(--color-text-light);
  font-size: 1.05rem;
  text-align: center;
}

/* --- Utility --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

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

.section {
  padding: var(--section-padding);
}

.section-alt {
  background-color: var(--color-cream);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--border-radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}

.btn-primary {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.btn-primary:hover {
  background: var(--color-navy-dark);
  border-color: var(--color-navy-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(27, 58, 92, 0.3);
}

.btn-whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  border-color: var(--color-whatsapp);
}

.btn-whatsapp:hover {
  background: var(--color-whatsapp-hover);
  border-color: var(--color-whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}

.btn-outline-dark {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-navy);
}

.btn-outline-dark:hover {
  background: var(--color-navy);
  color: #fff;
  transform: translateY(-2px);
}

.btn-google {
  background: #fff;
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-google:hover {
  border-color: var(--color-sea);
  color: var(--color-sea);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(253, 252, 249, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  backdrop-filter: blur(10px);
}

.navbar.scrolled .nav-link {
  color: var(--color-text);
}

.navbar.scrolled .nav-logo-img {
  filter: none;
}

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo-img {
  height: 44px;
  width: auto;
  transition: filter var(--transition);
  filter: brightness(0) invert(1);
}

.navbar.scrolled .nav-logo-img {
  filter: none;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  transition: color var(--transition);
  white-space: nowrap;
}

.navbar.scrolled .nav-logo-text {
  color: var(--color-navy);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  border-radius: 6px;
  transition: all var(--transition);
  letter-spacing: 0.3px;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
  background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
  color: var(--color-navy);
  background: rgba(27, 58, 92, 0.08);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all var(--transition);
}

.navbar.scrolled .nav-toggle span {
  background: var(--color-navy);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 80px;
  background: linear-gradient(160deg, var(--color-navy-dark) 0%, var(--color-navy) 40%, var(--color-sea) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(46, 134, 171, 0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero-logo {
  width: 120px;
  height: auto;
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: rgba(255, 255, 255, 0.8);
  font-weight: 300;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   CHI SIAMO
   ============================================ */
.chi-siamo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.chi-siamo-block h3 {
  margin-bottom: 12px;
  color: var(--color-navy);
}

.chi-siamo-block p {
  color: var(--color-text-light);
  font-size: 1rem;
  line-height: 1.8;
}

.chi-siamo-highlight {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-navy);
  border-left: 3px solid var(--color-sand);
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.6;
}

/* Food section styles removed — sections Mare/Terra/Pizza eliminated */

/* ============================================
   FULL MENU
   ============================================ */
.menu-full {
  max-width: 750px;
  margin: 0 auto;
}

.menu-category {
  margin-bottom: 48px;
}

.menu-category h3 {
  text-align: center;
  font-size: 1.35rem;
  color: var(--color-navy);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
  margin-bottom: 24px;
}

.menu-category-note {
  text-align: center;
  font-style: italic;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px dotted var(--color-border);
}

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

.menu-item-price {
  font-weight: 600;
  margin-left: 16px;
  white-space: nowrap;
  color: var(--color-sea);
  font-size: 0.95rem;
}

.menu-item-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-style: italic;
  padding-bottom: 6px;
}

.menu-notes {
  text-align: center;
  margin-top: 40px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  border-top: 1px solid var(--color-border);
  padding-top: 20px;
  font-style: italic;
}

/* ============================================
   REVIEWS
   ============================================ */
.reviews-header {
  text-align: center;
  margin-bottom: 16px;
}

.reviews-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}

.rating-number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-navy);
}

.rating-stars {
  display: flex;
  gap: 3px;
}

.star {
  color: var(--color-star);
  font-size: 1.2rem;
}

.star.half {
  position: relative;
}

.rating-source {
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto 48px;
}

.review-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 28px;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.review-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--color-navy);
  font-size: 1rem;
  flex-shrink: 0;
}

.review-meta {
  flex: 1;
}

.review-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text);
}

.review-date {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.review-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 12px;
}

.review-stars .star {
  font-size: 0.95rem;
}

.review-text {
  font-size: 0.93rem;
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: 0;
}

.reviews-cta {
  text-align: center;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.reviews-cta p {
  color: var(--color-text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ============================================
   CONTACTS
   ============================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(27, 58, 92, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-navy);
}

.contact-icon svg {
  width: 18px;
  height: 18px;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-light);
  margin-bottom: 2px;
}

.contact-value {
  font-size: 1rem;
  color: var(--color-text);
}

.contact-value a {
  color: var(--color-sea);
  transition: color var(--transition);
}

.contact-value a:hover {
  color: var(--color-navy);
}

.contacts-cta {
  margin-top: 28px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.map-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 350px;
  border: 0;
}

.map-link {
  display: block;
  text-align: center;
  padding: 12px;
  background: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-sea);
  transition: all var(--transition);
}

.map-link:hover {
  background: var(--color-navy);
  color: #fff;
}

/* ============================================
   LAVORA CON NOI
   ============================================ */
.lavora-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.lavora-content p {
  color: var(--color-text-light);
  font-size: 1.05rem;
  line-height: 1.8;
}

.lavora-roles {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0;
}

.role-tag {
  background: rgba(27, 58, 92, 0.06);
  color: var(--color-navy);
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 500;
}

.lavora-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 28px;
  text-align: center;
}

.footer-logo {
  height: 48px;
  margin: 0 auto 16px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
}

.footer-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 4px;
}

.footer-address {
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.footer-phone {
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.footer-phone a {
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}

.footer-phone a:hover {
  color: #fff;
}

.footer-divider {
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 20px 0;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

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

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

@media (max-width: 1050px) {
  :root {
    --nav-height: 60px;
    --section-padding: 60px 20px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 90px 24px 40px;
    gap: 0;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    transition: right var(--transition);
    overflow-y: auto;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    display: block;
    width: 100%;
    color: var(--color-text);
    padding: 14px 16px;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
    border-radius: 0;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--color-navy);
    background: rgba(27, 58, 92, 0.05);
  }

  /* Mobile overlay */
  .nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999;
  }

  .nav-overlay.active {
    display: block;
  }

  .nav-logo-text {
    font-size: 0.95rem;
  }

  .hero {
    padding: 100px 20px 60px;
    min-height: 90vh;
  }

  .hero-logo {
    width: 90px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-cta .btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

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

  .contacts-cta {
    flex-direction: column;
  }

  .lavora-cta {
    flex-direction: column;
    align-items: center;
  }

  .lavora-cta .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

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

@media (max-width: 400px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .rating-number {
    font-size: 2rem;
  }

  .review-card {
    padding: 20px;
  }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    bottom: 18px;
    right: 18px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
}
