@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap');

:root {
  --bg: #f9f7f3;
  --paper: #ffffff;
  --stroke: #e7eef5;
  --muted-stroke: #d6dde6;
  --accent: #0a3041;
  --accent-2: #f4e9dd;
  --text: #1a2433;
  --muted: #5a6b7d;
  --shadow: 0 14px 34px rgba(10, 48, 65, 0.12);
  --shadow-soft: 0 10px 22px rgba(10, 48, 65, 0.08);
  --radius: 0px;
  --nav-bg: rgba(245, 241, 235, 0.9);
  --font-family: 'Poppins', 'Segoe UI', system-ui, sans-serif;
}

body.theme-classic {
  --bg: #f7f5f1;
  --paper: #ffffff;
  --stroke: #dfd8ce;
  --muted-stroke: #d2c8bb;
  --accent: #8b4c2e;
  --accent-2: #c19a6b;
  --text: #1a1410;
  --muted: #6d6158;
  --shadow: 0 12px 50px rgba(26, 20, 16, 0.08);
  --shadow-soft: 0 10px 22px rgba(26, 20, 16, 0.08);
  --radius: 0px;
}

body.theme-petrolio {
  --bg: #f9f7f3;
  --paper: #ffffff;
  --stroke: #e7eef5;
  --muted-stroke: #d6dde6;
  --accent: #0a3041;
  --accent-2: #f4e9dd;
  --text: #1a2433;
  --muted: #5a6b7d;
  --shadow: 0 14px 34px rgba(10, 48, 65, 0.12);
  --shadow-soft: 0 10px 22px rgba(10, 48, 65, 0.08);
  --radius: 0px;
}

body.theme-neo {
  --bg: #f5f7fb;
  --paper: #ffffff;
  --stroke: #e3e8f3;
  --muted-stroke: #cdd4e4;
  --accent: #2d5cfe;
  --accent-2: #facc15;
  --text: #0f172a;
  --muted: #5c6475;
  --shadow: 0 16px 40px rgba(45, 92, 254, 0.14);
  --shadow-soft: 0 12px 28px rgba(45, 92, 254, 0.1);
  --radius: 0px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-family, 'Poppins', 'Segoe UI', system-ui, sans-serif);
  line-height: 1.65;
  min-height: 100vh;
  letter-spacing: 0.01em;
  overflow-x: hidden;
}

body[data-page="index"] {
  position: relative;
  background: var(--bg);
}

body[data-page="index"].has-home-bg {
  background: transparent;
}

body[data-page="index"]::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    var(--home-bg-overlay, linear-gradient(180deg, rgba(247,245,241,0.64) 0%, rgba(247,245,241,0.46) 50%, rgba(247,245,241,0.72) 100%)),
    var(--home-bg-image, none) center/cover fixed;
  z-index: 0;
  filter: var(--home-bg-filter, saturate(1));
  pointer-events: none;
}

.hero.hero-full {
  background:
    var(--hero-overlay, linear-gradient(120deg, rgba(0,0,0,0.45), rgba(0,0,0,0.15))),
    var(--hero-img, none) center/cover;
  filter: var(--hero-filter, none);
}
.hero.hero-full::after { display: none; }

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

img { max-width: 100%; display: block; border-radius: 0; object-fit: cover; }
.product-thumb { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; }
.custom-block { display:flex; gap:18px; flex-wrap:wrap; align-items:flex-start; }
.custom-media-col { flex:1 1 45%; min-width:260px; }
.custom-content-col { flex:1 1 45%; min-width:260px; display:flex; flex-direction:column; gap:10px; }
.custom-media img, .custom-media video, .custom-media iframe { width:100%; height:auto; border-radius:12px; object-fit:cover; display:block; }
.custom-media .embed-wrap { position:relative; padding-bottom:56.25%; height:0; overflow:hidden; border-radius:12px; }
.custom-media .embed-wrap iframe { position:absolute; top:0; left:0; width:100%; height:100%; border:0; }
.custom-gallery { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:12px; }
.custom-gallery .gallery-item { border:1px solid var(--stroke); background:#fff; padding:8px; border-radius:12px; cursor:pointer; display:flex; flex-direction:column; gap:6px; text-align:left; box-shadow:var(--shadow-soft); }
.custom-gallery .gallery-item .thumb { width:100%; aspect-ratio:4/3; background-size:cover; background-position:center; border-radius:10px; }
.custom-gallery .gallery-item .caption { font-size:0.95rem; color:var(--text); }
.custom-media { position:relative; }
.custom-media .play-overlay { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.35); color:#fff; border:none; border-radius:12px; font-size:32px; cursor:pointer; opacity:0; transition:opacity 0.2s; }
.custom-media:hover .play-overlay { opacity:1; }
.slider { position:relative; display:flex; align-items:center; gap:10px; }
.slider-track { display:flex; gap:12px; overflow-x:auto; scroll-behavior:smooth; padding:8px 4px; scroll-snap-type:x mandatory; }
.slider-track::-webkit-scrollbar { display:none; }
.slider-btn { border:1px solid var(--stroke); background:#fff; color:#0f172a; width:36px; height:36px; border-radius:50%; cursor:pointer; box-shadow:var(--shadow-soft); flex-shrink:0; }
.slider-btn:hover { border-color: var(--accent); }
.preview-card { min-width:240px; max-width:260px; flex:0 0 auto; scroll-snap-align:start; }
.preview-card .chips { display:none; }

.wrapper {
  width: min(1180px, 92vw);
  margin: 0 auto;
  padding: 28px 0 120px;
  position: relative;
  z-index: 1;
}

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  background: var(--nav-bg, rgba(245, 241, 235, 0.9));
  border-bottom: 1px solid var(--stroke);
}

body[data-page="index"] nav {
  background: var(--nav-bg, rgba(255, 255, 255, 0.78));
  box-shadow: 0 10px 30px rgba(43,31,26,0.06);
}

nav .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand .logo-img { height: 38px; width: auto; display: block; }

nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  padding: 8px 12px;
  border-radius: 0;
  transition: 140ms ease;
  color: var(--text);
  border: 1px solid transparent;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.88rem;
}

nav a:hover,
nav a.active {
  background: transparent;
  border-bottom: 2px solid var(--accent);
  border-radius: 0;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--stroke);
  background: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  margin-left: auto;
}

.btn {
  padding: 12px 18px;
  border-radius: 0;
  border: 1px solid transparent;
  font-weight: 600;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 160ms ease;
}

.btn.primary {
  background: var(--accent);
  color: #fffdf9;
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
}

.btn.secondary {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  align-items: center;
  position: relative;
  min-height: 740px;
  margin: 48px 0 64px;
  padding: 64px 32px;
  border-radius: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
  z-index: 0;
}

.hero .hero-inner {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
}

.hero .hero-overlay {
  position: relative;
  z-index: 1;
  max-width: 720px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-shadow: 0 6px 18px rgba(0,0,0,0.28);
  align-items: flex-end;
  text-align: right;
}

.hero .hero-overlay.right { align-items: flex-end; text-align: right; }

.hero .hero-overlay h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.6rem, 4.4vw, 3.4rem);
  margin: 0;
  letter-spacing: 0.01em;
}

.hero .hero-overlay .subtitle {
  color: #f8fafc;
  margin: 0 0 10px;
}

.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .btn.secondary.light { border-color: rgba(255,255,255,0.72); color: #fff; background: rgba(255,255,255,0.12); }
.hero .btn.primary { box-shadow: 0 16px 28px rgba(0,0,0,0.18); }

.hero .hero-side {
  flex: 0 0 38%;
  max-width: 420px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  align-self: flex-start;
  margin-top: -10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .hero-side img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  border-radius: 0;
  display: block;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -12px;
  z-index: -1;
  background: radial-gradient(circle at 20% 20%, rgba(0,0,0,0.08), transparent 40%), radial-gradient(circle at 80% 80%, rgba(0,0,0,0.08), transparent 45%);
}


.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 18px;
}

.section-title h2 {
  margin: 0;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  font-family: 'Playfair Display', serif;
}

.section-title span { color: var(--muted); font-size: 0.95rem; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card {
  background: var(--paper);
  border: 1px solid var(--stroke);
  padding: 16px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: 140ms ease;
}

.card:hover { transform: translateY(-2px); border-color: var(--accent); }

.badge {
  position: absolute;
  top: 12px; right: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff8f0;
  padding: 8px 12px;
  border-radius: 0;
  font-weight: 700;
  font-size: 0.82rem;
}

.card h3 { margin: 12px 0 8px; font-size: 1.2rem; font-family: 'Playfair Display', serif; letter-spacing: 0.01em; }
.card p { margin: 0; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chip {
  padding: 6px 12px;
  border-radius: 0;
  border: 1px solid var(--stroke);
  background: #eef4f8;
  color: #0a3041;
  font-weight: 600;
  box-shadow: 0 6px 12px rgba(10,48,65,0.08);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.stat {
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 16px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.stat .value { font-size: 1.5rem; font-weight: 700; }
.stat .label { color: var(--muted); }

.about {
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 20px;
  border-radius: var(--radius);
  display: grid;
  gap: 10px;
  box-shadow: var(--shadow-soft);
}

.about ul { margin: 0; padding-left: 18px; color: var(--muted); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
}

.filter-bar button {
  border: 1px solid var(--muted-stroke);
  background: #fff;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 0;
  cursor: pointer;
  transition: 140ms ease;
}

.filter-bar button.active,
.filter-bar button:hover { border-color: var(--accent); color: var(--accent); background: #fff8f0; box-shadow: var(--shadow); }

.tab-btn.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #fffdf9;
}

.product-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.product-hero .info { background: rgba(255,255,255,0.94); border: 1px solid var(--stroke); padding: 18px; border-radius: var(--radius); box-shadow: var(--shadow-soft); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.product-hero h1 { margin: 0 0 10px; font-family: 'Playfair Display', serif; }
.product-hero .summary { color: var(--muted); margin: 0 0 16px; }
.product-hero .brand-block { display: inline-flex; align-items: center; gap: 10px; margin: 6px 0 14px; padding: 10px 12px; border: 1px solid var(--stroke); border-radius: 0; background: #fffdf9; box-shadow: var(--shadow-soft, 0 6px 18px rgba(0,0,0,0.04)); }
.product-hero .brand-logo img { height: 46px; width: auto; display: block; object-fit: contain; }
.product-hero .brand-link { color: var(--accent); font-weight: 600; text-decoration: none; }
.product-hero .brand-link:hover { text-decoration: underline; }

.list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.spec {
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 12px;
  border-radius: var(--radius);
}

.footer {
  margin: 70px 0 36px;
  padding: 28px 0 64px;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}
.radio-row { display:flex; flex-direction:column; gap:8px; }
.radio-options { display:flex; flex-direction:column; gap:6px; }
.radio-option { display:flex; align-items:center; gap:8px; font-weight:500; }

.floating-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #20b038, #128c7e);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  z-index: 1200;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.floating-wa:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
}
.floating-wa svg {
  width: 28px;
  height: 28px;
  fill: #fff;
}

/* Chat widget */
.chat-launcher {
  position: fixed;
  right: 16px;
  bottom: 86px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.24);
  cursor: pointer;
  z-index: 1200;
  transition: transform .18s ease, box-shadow .18s ease;
}
.chat-launcher:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}
.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 150px;
  width: 320px;
  max-height: 78vh;
  max-width: calc(100vw - 32px);
  background: #fff;
  border: 1px solid var(--stroke);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(0,0,0,0.22);
  overflow: hidden;
  z-index: 1300;
  display: none;
  flex-direction: column;
}
.chat-panel.open { display: flex; }
.chat-header {
  padding: 12px 14px;
  background: linear-gradient(135deg, var(--accent), #1d4ed8);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.chat-header h4 { margin: 0; font-size: 15px; }
.chat-header button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
}
.chat-body {
  padding: 14px;
  display: grid;
  gap: 10px;
  overflow-y: auto;
  max-height: 58vh;
}
.chat-body input,
.chat-body textarea,
.chat-body .radio-row {
  font-size: 13px;
}
.chat-body input,
.chat-body textarea {
  width: 100%;
  padding: 10px 12px;
}
.chat-footer {
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.btn-wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #128c7e;
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
}
.btn-wa svg { width: 18px; height: 18px; fill: #fff; }

.floating-reserved {
  position: fixed;
  left: 16px;
  bottom: 16px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, #111827, #1f2937);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.24);
  color: #fff;
  z-index: 1250;
  transition: transform .18s ease, box-shadow .18s ease;
}
.floating-reserved:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.28);
}
.floating-reserved svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

input, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 0;
  border: 1px solid var(--muted-stroke);
  background: #fffdf9;
  color: var(--text);
  font-family: inherit;
}

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

.callout {
  padding: 14px;
  border-radius: var(--radius);
  border: 1px dashed var(--muted-stroke);
  background: #fff8f0;
  color: var(--muted);
}

.notice {
  background: linear-gradient(120deg, rgba(197,83,45,0.08), rgba(231,166,90,0.08));
  border: 1px solid var(--muted-stroke);
  padding: 14px;
  border-radius: var(--radius);
  color: var(--text);
}

.login-card {
  max-width: 520px;
  margin: 30px auto;
  background: #fff;
  border: 1px solid var(--stroke);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.admin-block { background: #fff; border: 1px solid var(--stroke); padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.admin-block h3 { margin: 0 0 8px; font-family: 'Playfair Display', serif; }
.admin-block textarea { min-height: 200px; }

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 10px; border-bottom: 1px solid var(--stroke); text-align: left; }
.table th { color: var(--muted); font-weight: 600; }

.small { color: var(--muted); font-size: 0.92rem; }

.hidden { display: none !important; }

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(1180px, 94vw);
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: 0;
  padding: 14px 16px;
  box-shadow: 0 20px 60px rgba(43,31,26,0.12);
  z-index: 100;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cookie-banner .text { color: var(--muted); font-size: 0.95rem; line-height: 1.4; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.cookie-banner .btn { padding: 10px 14px; }
.cookie-banner a { color: var(--text); text-decoration: underline; }

@media (max-width: 720px) {
  nav .bar { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  nav ul {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
    border-top: 1px solid var(--stroke);
  }
  nav.open ul { display: flex; }
  nav .cta { display: none; width: 100%; }
  nav.open .cta { display: block; width: 100%; padding-bottom: 10px; }
  nav.open .cta .btn { width: 100%; justify-content: center; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .wrapper { padding-top: 20px; }
  .hero {
    margin-top: 12px;
    padding: 36px 18px;
    min-height: 520px;
  }
  .hero .hero-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
  }
  .hero .hero-overlay {
    align-items: center;
    text-align: center;
  }
  .hero .hero-side {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    order: -1;
  }
  .hero .hero-side img {
    max-height: 280px;
  }
  .hero .hero-overlay h1 { font-size: clamp(2.2rem, 6vw, 2.6rem); }
  .hero .hero-overlay .subtitle { font-size: 0.98rem; }
  .custom-block { flex-direction: column; }
  .custom-media-col, .custom-content-col { min-width: 100%; }
  .slider { gap: 6px; }
  .slider-btn { width: 32px; height: 32px; }
  nav ul { flex-wrap: wrap; }
  .section-title { flex-direction: column; align-items: flex-start; }
  .cookie-banner { flex-direction: column; }
}
