/* ============================================
   Valmarestia - Azienda Agricola e Caseificio
   Warm earthy editorial design
   ============================================ */

:root {
  --color-cream: #fefcf8;
  --color-cream-alt: #f5efe6;
  --color-dark: #292018;
  --color-accent: #b45309;
  --color-accent-hover: #92400e;
  --color-text: #3d3425;
  --color-text-light: #6b5e4f;
  --color-border: #d6cfc4;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1200px;
  --section-padding: 100px 0;
  --transition: 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  line-height: 1.25;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(254, 252, 248, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.site-header.scrolled {
  border-bottom-color: var(--color-border);
  box-shadow: 0 2px 20px rgba(41, 32, 24, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--color-dark);
}

.logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-tagline {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  font-weight: 600;
  margin-top: 2px;
}

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

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.02em;
}

.nav-desktop a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-desktop a:hover {
  color: var(--color-accent);
}

.nav-desktop a:hover::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent) !important;
  color: var(--color-white) !important;
  padding: 10px 24px !important;
  border-radius: 6px;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  transition: background var(--transition) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--color-accent-hover) !important;
  color: var(--color-white) !important;
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  position: relative;
  transition: all var(--transition);
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: inherit;
  left: 0;
  transition: all var(--transition);
}

.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

.menu-toggle.active span { background: transparent; }
.menu-toggle.active span::before { top: 0; transform: rotate(45deg); background: var(--color-dark); }
.menu-toggle.active span::after { top: 0; transform: rotate(-45deg); background: var(--color-dark); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-cream);
  padding: 40px 24px;
  overflow-y: auto;
  z-index: 999;
}

.nav-mobile.open {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nav-mobile a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-dark);
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  display: block;
}

.nav-mobile a:hover {
  color: var(--color-accent);
}

.nav-mobile .nav-cta-mobile {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 14px 32px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  margin-top: 24px;
  border-bottom: none;
}

/* === Hero === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-dark);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../assets/images/hero.png') center/cover no-repeat;
  opacity: 0.55;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41,32,24,0.4) 0%, rgba(41,32,24,0.65) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 120px 24px 80px;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(180, 83, 9, 0.2);
  border: 1px solid rgba(180, 83, 9, 0.4);
  color: #f5d0a0;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 32px;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  color: var(--color-white);
  margin-bottom: 24px;
  line-height: 1.15;
}

.hero h1 em {
  font-style: italic;
  color: #f5d0a0;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 6px;
  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;
}

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

.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--color-white);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--color-white);
}

.hero-stats-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  background: rgba(41, 32, 24, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 28px 0;
}

.stat-item {
  padding: 0 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item:last-child {
  border-right: none;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: #f5d0a0;
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 4px;
}

/* === Sections === */
.section {
  padding: var(--section-padding);
}

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

.section--dark {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--color-white);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  margin-bottom: 20px;
  line-height: 1.2;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--color-text-light);
  line-height: 1.8;
}

.section--dark .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

/* === About / Storia === */
.storia-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.storia-image {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-cream-alt);
}

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

.storia-accent-box {
  position: absolute;
  bottom: -1px;
  right: -1px;
  background: var(--color-accent);
  color: var(--color-white);
  padding: 20px 28px;
  border-radius: 12px 0 0 0;
}

.storia-accent-box .accent-number {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
}

.storia-accent-box .accent-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.storia-body h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.storia-body p {
  margin-bottom: 16px;
  color: var(--color-text-light);
  line-height: 1.8;
}

.storia-timeline {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}

.timeline-item {
  flex: 1;
}

.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-accent);
}

.timeline-text {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
}

/* === Products === */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.product-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(41, 32, 24, 0.1);
  border-color: transparent;
}

.product-image {
  aspect-ratio: 16/10;
  background: var(--color-cream-alt);
  overflow: hidden;
  position: relative;
}

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

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-image .product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 12px;
  border-radius: 4px;
}

.product-body {
  padding: 28px;
}

.product-body h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.product-body p {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.product-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-list li {
  font-size: 0.8rem;
  background: var(--color-cream-alt);
  padding: 4px 12px;
  border-radius: 100px;
  color: var(--color-text-light);
}

/* === Benessere Animale === */
.benessere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.benessere-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.benessere-stat {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.benessere-stat .stat-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
  display: block;
}

.benessere-stat .stat-value {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: #f5d0a0;
  display: block;
}

.benessere-stat .stat-info {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 4px;
}

.benessere-image {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: rgba(255, 255, 255, 0.05);
}

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

/* === Fattoria / Visit === */
.fattoria-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.visit-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--color-border);
}

.visit-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.visit-card p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  line-height: 1.8;
}

.visit-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.visit-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.visit-features li svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--color-accent);
  margin-top: 2px;
}

.shop-hours {
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: 12px;
  padding: 40px;
}

.shop-hours h3 {
  color: var(--color-white);
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.shop-hours .shop-subtitle {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 12px 0;
  font-size: 0.95rem;
}

.hours-table td:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.hours-table td:last-child {
  text-align: right;
  font-weight: 600;
  color: #f5d0a0;
}

.hours-table .closed td:last-child {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
}

/* === News === */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.news-card {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition);
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(41, 32, 24, 0.08);
}

.news-image {
  aspect-ratio: 16/9;
  background: var(--color-cream-alt);
  position: relative;
  overflow: hidden;
}

.news-image .news-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.news-date {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--color-white);
  padding: 8px 14px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.news-date .day {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-dark);
  display: block;
}

.news-date .month {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  font-weight: 700;
}

.news-body {
  padding: 24px;
}

.news-category {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-bottom: 8px;
  display: block;
}

.news-body h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.news-body p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* === Team === */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

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

.team-photo {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--color-cream-alt);
  margin: 0 auto 20px;
  overflow: hidden;
  border: 4px solid var(--color-white);
  box-shadow: 0 4px 20px rgba(41, 32, 24, 0.08);
}

.team-photo .photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--color-border);
}

.team-card h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.team-role {
  font-size: 0.8rem;
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}

.team-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* === Contact === */
.contatti-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--color-white);
  border-radius: 12px;
  padding: 40px;
  border: 1px solid var(--color-border);
}

.contact-form h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.contact-form .form-subtitle {
  color: var(--color-text-light);
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-cream);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 24px;
  font-size: 0.85rem;
  color: var(--color-text-light);
}

.form-privacy input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-accent);
}

.form-success {
  display: none;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 16px;
  color: #065f46;
  font-size: 0.9rem;
  margin-top: 16px;
}

.form-success.show {
  display: block;
}

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

.info-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.info-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: var(--color-cream-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.info-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

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

.contact-map {
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--color-cream-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: 0.9rem;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand .logo-name {
  color: var(--color-white);
}

.footer-brand .logo-tagline {
  color: #f5d0a0;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 1rem;
  margin-bottom: 20px;
  font-family: var(--font-body);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover {
  color: #f5d0a0;
}

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

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact-item svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #f5d0a0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

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

.footer-legal-links {
  display: flex;
  gap: 24px;
}

.footer-legal-links a {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.35);
}

.footer-legal-links a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* === Cookie Banner === */
.cookie-banner {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.8);
  padding: 20px 24px;
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.2);
}

.cookie-banner.show {
  display: block;
}

.cookie-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.85rem;
  line-height: 1.6;
  min-width: 300px;
}

.cookie-text a {
  color: #f5d0a0;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
}

.cookie-btn-accept {
  background: var(--color-accent);
  color: var(--color-white);
}

.cookie-btn-accept:hover {
  background: var(--color-accent-hover);
}

.cookie-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-settings:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--color-white);
}

.cookie-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cookie-btn-reject:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.8);
}

/* Cookie Modal */
.cookie-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.6);
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cookie-modal-overlay.show {
  display: flex;
}

.cookie-modal {
  background: var(--color-cream);
  border-radius: 16px;
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
}

.cookie-modal h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cookie-modal .modal-desc {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 28px;
  line-height: 1.6;
}

.cookie-category {
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-category-name {
  font-weight: 700;
  font-size: 0.95rem;
}

.cookie-category p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-top: 4px;
  line-height: 1.6;
}

.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--color-border);
  border-radius: 24px;
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: var(--color-white);
  border-radius: 50%;
  transition: all var(--transition);
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--color-accent);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-switch input:disabled + .toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-modal-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.cookie-modal-actions .btn {
  flex: 1;
  justify-content: center;
  font-size: 0.9rem;
  padding: 12px 24px;
}

.btn-dark {
  background: var(--color-dark);
  color: var(--color-white);
  border-color: var(--color-dark);
}

.btn-dark:hover {
  background: #1a150f;
  border-color: #1a150f;
  color: var(--color-white);
}

/* === Legal pages === */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 780px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.legal-content .legal-updated {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.legal-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
}

.legal-content h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
}

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

.legal-content ul, .legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  margin-bottom: 8px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
}

.legal-content strong {
  color: var(--color-text);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }

  .storia-grid,
  .benessere-grid,
  .fattoria-content,
  .contatti-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .products-grid,
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

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

  .stat-item {
    border-right: none;
    padding: 8px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --section-padding: 64px 0;
  }

  .products-grid,
  .news-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .storia-timeline {
    flex-direction: column;
    gap: 20px;
  }

  .cookie-inner {
    flex-direction: column;
  }

  .cookie-actions {
    width: 100%;
    flex-direction: column;
  }

  .cookie-btn {
    width: 100%;
    text-align: center;
  }

  .cookie-modal {
    padding: 24px;
  }

  .cookie-modal-actions {
    flex-direction: column;
  }

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

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