/* ============================================================
   AGRITURISMO ISOLA FELICE — Main Stylesheet
   Palette: Panna · Verde Oliva · Terracotta · Marrone Caldo
   ============================================================ */

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

:root {
  --cream:       #F7F2E8;
  --cream-dark:  #EDE4D4;
  --olive:       #5C6B3A;
  --olive-light: #7A8F4E;
  --olive-dark:  #3E4D22;
  --terra:       #B5542A;
  --terra-light: #D4693A;
  --brown:       #6B4E3D;
  --brown-light: #8C6650;
  --dark:        #1E1A14;
  --text:        #3A3028;
  --text-light:  #6E5E50;
  --white:       #FFFFFF;
  --wa-green:    #25D366;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;

  --nav-h: 72px;
  --radius: 6px;
  --shadow: 0 4px 24px rgba(30,26,20,0.12);
  --shadow-lg: 0 12px 48px rgba(30,26,20,0.18);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
address { font-style: normal; }

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--cream-dark); }
::-webkit-scrollbar-thumb { background: var(--olive); border-radius: 3px; }

/* ============================================================
   LANGUAGE BAR
   ============================================================ */
.lang-bar {
  background: var(--olive-dark);
  padding: 6px 0;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.75);
}
.lang-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: flex-end;
  gap: 20px;
  align-items: center;
}
.lang-inner a {
  color: var(--cream);
  transition: color var(--transition);
}
.lang-inner a:hover { color: var(--white); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 900;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition), top var(--transition);
}
/* account for lang-bar height ~32px */
.navbar { top: 32px; }

.navbar.scrolled {
  top: 0;
  background: rgba(247,242,232,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(30,26,20,0.1);
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img { height: 52px; width: auto; }

.nav-menu ul {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  padding: 6px 12px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.navbar.scrolled .nav-menu a { color: var(--text); }
.nav-menu a:hover { color: var(--terra); }
.nav-menu a.nav-cta {
  background: var(--terra);
  color: var(--white) !important;
  padding: 8px 18px;
}
.nav-menu a.nav-cta:hover { background: var(--terra-light); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.navbar.scrolled .nav-toggle span { background: var(--text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--terra); color: var(--white); border-color: var(--terra); }
.btn-primary:hover { background: var(--terra-light); border-color: var(--terra-light); transform: translateY(-1px); }

.btn-outline { background: transparent; color: var(--terra); border-color: var(--terra); }
.btn-outline:hover { background: var(--terra); color: var(--white); transform: translateY(-1px); }

.btn-wa { background: var(--wa-green); color: var(--white); border-color: var(--wa-green); }
.btn-wa:hover { background: #1eb857; border-color: #1eb857; transform: translateY(-1px); }

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,26,20,0.35) 0%,
    rgba(30,26,20,0.55) 50%,
    rgba(30,26,20,0.7) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 0 24px;
  max-width: 800px;
  animation: heroFadeUp 1.2s ease both;
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: italic;
  color: #E8C99A;
}
.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(255,255,255,0.88);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.5);
  margin: 0 auto;
  animation: scrollLine 2s ease infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ============================================================
   STRIP FEATURES
   ============================================================ */
.strip-features {
  background: var(--olive-dark);
  padding: 48px 0;
}
.strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
}
.strip-item {
  background: var(--olive-dark);
  padding: 32px 24px;
  text-align: center;
  color: var(--white);
  transition: background var(--transition);
}
.strip-item:hover { background: var(--olive); }
.strip-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.strip-item h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.strip-item p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: 96px 0;
  background: var(--cream);
}
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-earth {
  background: var(--cream-dark);
}

.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 12px;
  display: block;
}
.section-label.light { color: #E8C99A; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}
.section-intro {
  max-width: 640px;
  margin: 0 auto;
  color: var(--text-light);
  font-size: 1.05rem;
}
.section-dark .section-intro { color: rgba(255,255,255,0.65); }

/* SPLIT LAYOUT */
.section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.section-split.reverse { direction: rtl; }
.section-split.reverse > * { direction: ltr; }

.split-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 24px;
}
.split-text p { margin-bottom: 16px; color: var(--text-light); }
.split-text strong { color: var(--text); font-weight: 700; }
.split-text .btn { margin-top: 12px; }

.split-images {
  position: relative;
  height: 460px;
}
.img-main {
  width: 82%;
  height: 360px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
}
.img-accent {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 46%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--cream);
}
.img-accent.right { right: 0; }

/* ============================================================
   PRODUCTS GRID (Biodinamica)
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.product-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 32px 28px;
  transition: background var(--transition), transform var(--transition);
}
.product-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
}
.product-icon { font-size: 2.2rem; margin-bottom: 16px; }
.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: #E8C99A;
}
.product-card p { font-size: 0.9rem; color: rgba(255,255,255,0.65); line-height: 1.65; }
.product-card strong { color: rgba(255,255,255,0.9); }

/* ============================================================
   SERVICES
   ============================================================ */
.services-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.services-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
}
.service-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.service-item:first-child { border-top: 1px solid var(--cream-dark); }
.service-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 2px; }
.service-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--text);
}
.service-item p { font-size: 0.88rem; color: var(--text-light); }
.services-list .btn { margin-top: 28px; }

/* ============================================================
   RESTAURANT LIST
   ============================================================ */
.resto-list {
  list-style: none;
  margin: 20px 0;
}
.resto-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  font-size: 0.92rem;
  color: var(--text-light);
  border-bottom: 1px solid rgba(91,107,58,0.15);
}
.resto-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--olive);
  font-size: 0.7rem;
  top: 10px;
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
  cursor: pointer;
  display: block;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.07); }
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30,26,20,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.gallery-overlay span {
  color: var(--white);
  font-size: 2rem;
  font-weight: 300;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15,12,8,0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbIn 0.25s ease;
}
.lightbox[hidden] { display: none; }
@keyframes lbIn {
  from { opacity: 0; } to { opacity: 1; }
}
.lb-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: var(--shadow-lg);
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: background var(--transition);
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,0.25); }
.lb-close { top: 20px; right: 20px; font-size: 1.8rem; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ============================================================
   CONTACTS
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}
.contact-block { margin-bottom: 28px; }
.contact-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 10px;
  color: #E8C99A;
}
.contact-block a {
  color: rgba(255,255,255,0.75);
  transition: color var(--transition);
}
.contact-block a:hover { color: var(--white); }
.contact-info .btn { margin-top: 8px; }

/* FORM */
.contact-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 40px;
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 8px;
}
.form-group label span { color: var(--terra); }
.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--terra);
  background: rgba(255,255,255,0.1);
}
.form-group textarea { resize: vertical; }
.form-msg {
  margin-top: 14px;
  font-size: 0.88rem;
  min-height: 20px;
  text-align: center;
  padding: 8px;
  border-radius: var(--radius);
}
.form-msg.success { background: rgba(37,211,102,0.12); color: #7de8a8; }
.form-msg.error { background: rgba(220,80,60,0.12); color: #f08080; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer-brand img { margin-bottom: 14px; opacity: 0.85; }
.footer-brand p {
  font-size: 0.83rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
}
.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-nav a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}
.footer-nav a:hover { color: var(--white); }
.footer-legal p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
  line-height: 1.6;
}
.footer-legal a {
  color: rgba(255,255,255,0.45);
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--white); }

/* ============================================================
   WHATSAPP STICKY
   ============================================================ */
.wa-sticky {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 800;
  width: 58px;
  height: 58px;
  background: var(--wa-green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-sticky:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.5);
}
.wa-sticky svg { color: var(--white); }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  position: fixed;
  bottom: 96px;
  right: 30px;
  z-index: 800;
  width: 42px;
  height: 42px;
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}
.back-top.visible { opacity: 1; pointer-events: auto; }
.back-top:hover { background: var(--olive-dark); transform: translateY(-2px); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay { transition-delay: 0.18s; }

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 1024px) {
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
  .section-split { grid-template-columns: 1fr; gap: 40px; }
  .section-split.reverse { direction: ltr; }
  .split-images { height: 340px; }
  .img-main { width: 75%; height: 280px; }
  .img-accent { width: 42%; height: 160px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .services-layout { grid-template-columns: 1fr; gap: 40px; }
  .services-image img { height: 340px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .lang-bar { font-size: 0.72rem; }
  .navbar { top: 30px; }

  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--dark);
    flex-direction: column;
    padding: 80px 32px 40px;
    transition: right var(--transition);
    z-index: 1000;
    overflow-y: auto;
  }
  .nav-menu.open { right: 0; }
  .nav-menu ul { flex-direction: column; gap: 4px; }
  .nav-menu a { color: var(--white) !important; font-size: 1rem; padding: 12px 0; display: block; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .nav-menu a.nav-cta { background: var(--terra); border-bottom: none; border-radius: var(--radius); padding: 12px 20px; margin-top: 16px; }

  .hero h1 { font-size: 2.4rem; }
  .hero-sub { font-size: 0.95rem; }
  .hero-actions { flex-direction: column; align-items: center; }

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

  .section { padding: 64px 0; }

  .split-images { height: 260px; }
  .img-main { width: 100%; height: 220px; }
  .img-accent { display: none; }

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

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

  .contact-form { padding: 24px; }

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

  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

@media (max-width: 480px) {
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 2rem; }
}

/* ============================================================
   MAPPA GOOGLE
   ============================================================ */
.section-map {
  background: var(--cream-dark);
  padding: 0;
}
.map-wrapper {
  width: 100%;
  line-height: 0;
  position: relative;
  overflow: hidden;
  filter: grayscale(15%) contrast(1.02);
  transition: filter var(--transition);
}
.map-wrapper:hover { filter: none; }
.map-wrapper iframe { display: block; }
.map-cta {
  background: var(--olive-dark);
  padding: 20px 24px;
  text-align: center;
}
