/* ============================================
   IL MULINO - Artisan Bakery & Restaurant
   ============================================ */

:root {
  --green: #1A5632;
  --green-dark: #0F3D22;
  --green-light: #2D7A4A;
  --orange: #E67E22;
  --orange-light: #F39C3D;
  --cream: #FFF8F0;
  --cream-dark: #F5EDE0;
  --warm: #FAF3E8;
  --text: #2C2C2C;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26, 86, 50, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 86, 50, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

em {
  font-style: italic;
  color: var(--orange);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.4s ease;
}

.nav.scrolled {
  background: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(26, 86, 50, 0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  border-radius: 6px;
}

.nav-logo-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.nav-links a:hover { color: var(--green); }

.nav-cta {
  background: var(--green) !important;
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--green-dark) !important;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

.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); }

/* ---- Mobile Menu ---- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu a {
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--green); }

.mobile-menu .nav-cta {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 1.1rem !important;
  padding: 14px 36px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 86, 50, 0.25);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--text);
}

.btn-ghost:hover {
  background: var(--text);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-secondary:hover {
  background: var(--green);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border: 2px solid var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

/* ---- Hero ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
}

.hero-content {
  flex: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--green-dark);
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 440px;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 4/5;
}

/* ---- Section Styles ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--green-dark);
  line-height: 1.15;
}

.section-cta {
  text-align: center;
  margin-top: 48px;
}

/* ---- Menu Grid ---- */
.menu-section {
  padding: 100px 0;
  background: var(--white);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.menu-card {
  background: var(--cream);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s, box-shadow 0.4s;
}

.menu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.menu-card.featured {
  background: var(--green);
}

.menu-card.featured .menu-info h3,
.menu-card.featured .menu-info p {
  color: var(--white);
}

.menu-card.featured .menu-info p {
  opacity: 0.85;
}

.menu-img {
  aspect-ratio: 1;
  overflow: hidden;
}

.menu-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.menu-card:hover .menu-img img {
  transform: scale(1.06);
}

.menu-info {
  padding: 24px;
}

.menu-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.menu-info p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ---- Statement ---- */
.statement {
  padding: 80px 0;
  background: var(--green);
}

.statement-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  text-align: center;
  color: var(--white);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.4;
  font-weight: 400;
}

.statement-text em {
  color: var(--orange-light);
}

/* ---- About ---- */
.about-section {
  padding: 100px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about-img {
  border-radius: var(--radius);
  overflow: hidden;
}

.about-img-1 {
  grid-row: span 2;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-content .section-label {
  text-align: left;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.detail-icon {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.detail strong {
  display: block;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--green-dark);
}

.detail p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin: 0;
}

/* ---- Gallery ---- */
.gallery-section {
  padding: 100px 0;
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  max-height: 600px;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
}

.gallery-item.large {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

/* ---- Locations ---- */
.locations-section {
  padding: 100px 0;
}

.locations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.4s, box-shadow 0.4s;
  border: 2px solid transparent;
}

.location-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.location-card.featured {
  background: var(--green);
  border-color: var(--green);
}

.location-card.featured h3,
.location-card.featured .location-address {
  color: var(--white);
}

.location-card.featured .location-phone {
  color: var(--orange-light);
}

.location-card.featured .location-icon {
  background: rgba(255, 255, 255, 0.15);
}

.location-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
  border-radius: 50%;
  font-size: 1.5rem;
  margin: 0 auto 20px;
}

.location-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--green-dark);
}

.location-address {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.location-phone {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: color 0.3s;
}

.location-phone:hover {
  color: var(--green);
}

/* ---- Order CTA ---- */
.order-section {
  padding: 100px 24px;
  background: var(--white);
}

.order-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  background: var(--cream);
  padding: 64px 48px;
  border-radius: 24px;
  border: 2px solid var(--cream-dark);
}

.order-deco {
  font-size: 3rem;
  margin-bottom: 20px;
}

.order-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 12px;
}

.order-sub {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.order-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.order-numbers {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}

/* ---- Footer ---- */
.footer {
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  align-self: flex-start;
}

.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.footer-col a:hover { color: var(--orange-light); }

.footer-address {
  font-size: 0.9rem;
  line-height: 1.7;
}

.footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
}

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { flex-direction: column; text-align: center; padding-top: 100px; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-img { max-width: 400px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-content .section-title,
  .about-content .section-label { text-align: center; }
  .about-content p { text-align: center; }
  .about-details { align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; }
  .locations-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-height: none;
  }
  .gallery-item.large { grid-row: span 1; }
  .order-inner { padding: 48px 24px; }
  .order-numbers { flex-direction: column; gap: 6px; }
  .order-numbers span:nth-child(2),
  .order-numbers span:nth-child(4) { display: none; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-logo { align-self: center; }
}

@media (max-width: 480px) {
  .menu-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.6rem; }
  .hero { padding-top: 90px; min-height: auto; padding-bottom: 60px; }
  .menu-section, .about-section, .gallery-section, .locations-section { padding: 64px 0; }
  .statement { padding: 56px 0; }
  .about-images { grid-template-columns: 1fr; }
  .about-img-1 { grid-row: span 1; }
}
