/* ================================================================
   FONTS · Atelier · self-hosted
   Cormorant Garamond (display, italic-only) + Lora (body)
   Solo se descargan cuando body.tpl-atelier está activo
   (atelier.css se inyecta dinámicamente desde loader.js)
   ================================================================ */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../../fonts/atelier/cormorant-garamond-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("../../fonts/atelier/cormorant-garamond-italic-600.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../../fonts/atelier/lora-regular-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lora";
  src: url("../../fonts/atelier/lora-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ================================================================
   ServiaOS · Template "Atelier"
   Mood: rustic warm, workshop, masia, handmade.
   Override via CSS variables + decorative rules scoped to
   body.tpl-atelier. Editorial remains untouched.
   ================================================================ */

/* ── 1. VARIABLE OVERRIDES — warm earth palette ─────────── */
body.tpl-atelier {
  --paper:        #F5EFE6;
  --paper-2:      #EDE3D2;
  --paper-3:      #E2D5BE;

  --ink:          #3D2F1E;
  --ink-2:        #5C4A35;
  --ink-3:        #8A7660;
  --ink-4:        #B5A48F;
  --ink-line:     #D9C9B3;

  --accent:       var(--terra-500);
  --accent-fg:    #F5EFE6;
  --accent-soft:  var(--terra-50);
  --accent-secondary: #8B5A2B;

  --bg:           var(--paper);
  --bg-raised:    var(--paper-2);
  --bg-sunken:    var(--paper-3);
  --fg:           var(--ink);
  --fg-muted:     var(--ink-2);
  --fg-subtle:    var(--ink-3);
  --fg-disabled:  var(--ink-4);
  --line:         var(--ink-line);
  --line-strong:  var(--ink-3);

  --radius-sm: 3px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 16px;

  --shadow-1: 0 1px 0 rgba(61,47,30,0.06), 0 1px 2px rgba(61,47,30,0.04);
  --shadow-2: 0 1px 0 rgba(61,47,30,0.05), 0 2px 8px -2px rgba(61,47,30,0.10);
  --shadow-3: 0 2px 1px rgba(61,47,30,0.04), 0 8px 24px -6px rgba(61,47,30,0.14);
  --shadow-4: 0 4px 2px rgba(61,47,30,0.04), 0 24px 48px -12px rgba(61,47,30,0.20);

  --font-serif:        "Cormorant Garamond", "Fraunces", Georgia, "Times New Roman", serif;
  --font-serif-soft:   "Cormorant Garamond", "Fraunces Soft", Georgia, serif;
  --font-sans:         "Lora", "Inter Tight", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

/* ── 2. TYPOGRAPHY — italic, warmer ─────────────────────── */
body.tpl-atelier .hero-name-large {
  font-family: var(--font-serif-soft);
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.tpl-atelier .hero-eyebrow {
  font-family: var(--font-serif-soft);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
  font-size: 17px;
}

body.tpl-atelier .t-eyebrow {
  font-family: var(--font-serif-soft);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--accent-secondary);
  font-weight: 400;
}

body.tpl-atelier h2 {
  font-family: var(--font-serif-soft);
  font-weight: 400;
  line-height: 1.18;
}

body.tpl-atelier h3 {
  font-family: var(--font-serif-soft);
  font-weight: 500;
}

body.tpl-atelier p,
body.tpl-atelier .t-body {
  line-height: 1.7;
}

body.tpl-atelier .ftr-tagline {
  font-family: var(--font-serif-soft);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(16px, 1.7vw, 19px);
}

/* ── 3. BUTTONS — soft rectangle, not pill ──────────────── */
body.tpl-atelier .btn,
body.tpl-atelier .btn.primary,
body.tpl-atelier .hero-btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-transform: none;
}

body.tpl-atelier .ftr-cta-button {
  border-radius: var(--radius-md);
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 500;
  font-family: var(--font-serif-soft);
  font-size: 14px;
}

body.tpl-atelier .ftr-cta-secondary {
  border-radius: var(--radius-md);
}

body.tpl-atelier .rsv-submit {
  border-radius: var(--radius-md);
  font-family: var(--font-serif-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 16px;
}

/* ── 4. CARDS — handmade feel, micro-tilt on hover ──────── */
body.tpl-atelier .agenda-card,
body.tpl-atelier .gallery-item,
body.tpl-atelier .carta-item,
body.tpl-atelier .exp-inner {
  border-radius: var(--radius-lg);
  transition: transform 380ms var(--ease-out), box-shadow 380ms var(--ease-out);
}

body.tpl-atelier .agenda-card:hover,
body.tpl-atelier .gallery-item:hover {
  transform: translateY(-3px) rotate(-0.3deg);
  box-shadow: var(--shadow-3);
}

body.tpl-atelier .carta-item {
  border-bottom: 1px solid var(--line);
}

/* ── 5. FOOTER — natural ornament ───────────────────────── */
body.tpl-atelier .ftr-orn-dot {
  width: 14px;
  height: 14px;
  border-radius: 0;
  background: transparent;
  position: relative;
}

body.tpl-atelier .ftr-orn-dot::before {
  content: "\273B";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 14px;
  line-height: 1;
  opacity: 0.7;
}

body.tpl-atelier .ftr-orn-line {
  background: var(--ink-line);
  opacity: 0.6;
}

body.tpl-atelier .ftr-brand-name {
  font-family: var(--font-serif-soft);
  font-weight: 400;
  letter-spacing: -0.015em;
}

body.tpl-atelier .ftr-col .t-eyebrow {
  font-family: var(--font-serif-soft);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--accent-secondary);
  font-size: 14px;
}

/* ── 6. HERO — warm brown overlay ───────────────────────── */
body.tpl-atelier #hero.hero--has-media .hero-overlay {
  background: linear-gradient(180deg,
    rgba(61, 47, 30, 0.30) 0%,
    rgba(61, 47, 30, 0.50) 70%,
    rgba(61, 47, 30, 0.62) 100%
  );
}

body.tpl-atelier #hero.hero--has-media .hero-grain {
  opacity: 0.45;
}

/* ── 7. CARTA — warmer items ────────────────────────────── */
body.tpl-atelier .carta-item-name {
  font-family: var(--font-serif-soft);
  font-weight: 500;
  letter-spacing: -0.005em;
}

body.tpl-atelier .carta-item-desc {
  font-style: italic;
  color: var(--fg-muted);
  font-family: var(--font-serif-soft);
  font-weight: 300;
}

body.tpl-atelier .carta-item-price {
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.01em;
}

body.tpl-atelier .carta-tab {
  border-radius: var(--radius-md);
  font-family: var(--font-serif-soft);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* ── 8. EXPERIENCES — warm editorial ────────────────────── */
body.tpl-atelier .exp-price-amount {
  font-family: var(--font-serif-soft);
  font-weight: 400;
  color: var(--accent);
}

body.tpl-atelier .exp-price-label {
  font-family: var(--font-serif-soft);
  font-style: italic;
  text-transform: none;
}

body.tpl-atelier .exp-plat {
  font-family: var(--font-serif-soft);
}

/* ── 9. AGENDA — serif italic dates ─────────────────────── */
body.tpl-atelier .agenda-day {
  font-family: var(--font-serif-soft);
  font-weight: 400;
  font-size: clamp(36px, 4vw, 48px);
}

body.tpl-atelier .agenda-month {
  font-family: var(--font-serif-soft);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.02em;
}

/* ── 10. RESERVATION MODAL ──────────────────────────────── */
body.tpl-atelier .rsv-dialog {
  border-radius: var(--radius-lg);
}

body.tpl-atelier .rsv-title {
  font-family: var(--font-serif-soft);
  font-weight: 400;
  letter-spacing: -0.01em;
}

body.tpl-atelier .rsv-eyebrow {
  font-family: var(--font-serif-soft);
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--accent-secondary);
}

body.tpl-atelier .rsv-input {
  border-radius: var(--radius-sm);
  background: var(--paper);
}

body.tpl-atelier .rsv-input:focus {
  border-color: var(--accent);
}

body.tpl-atelier .rsv-success-icon {
  border-radius: 0;
  background: var(--accent);
  font-family: var(--font-serif-soft);
}

body.tpl-atelier .rsv-success-titol {
  font-family: var(--font-serif-soft);
  font-weight: 400;
}

/* ── 11. SOBRE / ABOUT ──────────────────────────────────── */
body.tpl-atelier .about-text p {
  line-height: 1.75;
  font-family: var(--font-serif-soft);
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 18px);
}

/* ── 12. VINS ───────────────────────────────────────────── */
body.tpl-atelier .vins-group h3 {
  font-family: var(--font-serif-soft);
  font-style: italic;
  font-weight: 400;
}

/* ================================================================
   STRUCTURAL CHANGES — Atelier-only layout overrides
   ================================================================ */

/* ── 13. HERO ASIMETRIC — lateral overlay ───────────────── */
@media (min-width: 900px) {
  body.tpl-atelier #hero.hero--has-media {
    justify-content: flex-start;
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
  }
  body.tpl-atelier #hero.hero--has-media .hero-bg-layer {
    left: 45%;
    width: 55%;
    inset: 0 0 0 auto;
  }
  body.tpl-atelier #hero.hero--has-media .hero-overlay {
    background: linear-gradient(
      90deg,
      var(--paper-2) 0%,
      var(--paper-2) 45%,
      rgba(245, 239, 230, 0.85) 55%,
      rgba(61, 47, 30, 0.45) 70%,
      rgba(61, 47, 30, 0.55) 100%
    );
    opacity: 1;
  }
  body.tpl-atelier #hero.hero--has-media .hero-inner {
    margin: 0;
    margin-right: auto;
    margin-left: clamp(40px, 8vw, 96px);
    max-width: 480px;
    text-align: left;
    align-items: flex-start;
    color: var(--ink);
  }
  body.tpl-atelier #hero.hero--has-media .hero-name-large {
    color: var(--ink);
    text-shadow: none;
    font-size: clamp(48px, 6vw, 78px);
    line-height: 1.02;
  }
  body.tpl-atelier #hero.hero--has-media .hero-eyebrow {
    color: var(--accent-secondary);
    margin-bottom: 18px;
  }
  body.tpl-atelier #hero.hero--has-media .hero-btn {
    align-self: flex-start;
  }
  body.tpl-atelier #hero.hero--has-media .hero-menudia-pill {
    align-self: flex-start;
  }
  body.tpl-atelier #hero.hero--has-media {
    min-height: 78vh;
  }
  body.tpl-atelier #hero.hero--has-media .hero-grain {
    opacity: 0.18;
  }
}
@media (max-width: 899px) {
  body.tpl-atelier #hero.hero--has-media .hero-name-large {
    font-size: clamp(40px, 11vw, 56px);
  }
}

/* ── 14. SOBRE POLAROID — white border + tilt + caption ─── */
body.tpl-atelier #sobre .about-photo {
  background-color: #FFFFFF;
  padding: 14px 14px 56px 14px;
  box-shadow:
    0 1px 0 rgba(61,47,30,0.06),
    0 12px 32px -8px rgba(61,47,30,0.22);
  transform: rotate(0deg);
  transition: transform 420ms var(--ease-out);
  position: relative;
}
body.tpl-atelier #sobre .about-photo:hover {
  transform: translateY(-2px);
}
body.tpl-atelier #sobre .about-photo::after {
  content: "des de 1987";
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  font-family: var(--font-serif-soft);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--ink-2);
  letter-spacing: 0.02em;
  pointer-events: none;
}
@media (max-width: 768px) {
  body.tpl-atelier #sobre .about-photo {
    transform: none;
    padding: 12px 12px 44px 12px;
  }
  body.tpl-atelier #sobre .about-photo::after {
    bottom: 14px;
    font-size: 13px;
  }
}
body.tpl-atelier #sobre .about-text {
  max-width: 520px;
}
body.tpl-atelier #sobre .about-text p:first-of-type::first-letter {
  font-family: var(--font-serif-soft);
  font-size: 3.6em;
  line-height: 0.9;
  float: left;
  padding: 6px 10px 0 0;
  color: var(--accent);
  font-weight: 400;
}

/* ── 15. SECTION DIVIDERS — ornament between sections ───── */
body.tpl-atelier #sobre,
body.tpl-atelier #atmosphere,
body.tpl-atelier #carta,
body.tpl-atelier #menu-diari,
body.tpl-atelier #gallery,
body.tpl-atelier #vins,
body.tpl-atelier #agenda,
body.tpl-atelier #experiencies,
body.tpl-atelier #contacte {
  position: relative;
}
body.tpl-atelier:not(.is-dark-paper) #menu-diari,
body.tpl-atelier:not(.is-dark-paper) #experiencies {
  background: #ECE3D4;
}
body.tpl-atelier #sobre::before,
body.tpl-atelier #atmosphere::before,
body.tpl-atelier #carta::before,
body.tpl-atelier #menu-diari::before,
body.tpl-atelier #gallery::before,
body.tpl-atelier #vins::before,
body.tpl-atelier #agenda::before,
body.tpl-atelier #experiencies::before,
body.tpl-atelier #contacte::before {
  content: "\273B";
  position: absolute;
  top: clamp(24px, 4vw, 40px);
  left: 50%;
  transform: translateX(-50%);
  color: var(--accent);
  opacity: 0.45;
  font-size: 16px;
  letter-spacing: 0.4em;
  z-index: 1;
}
body.tpl-atelier #sobre::before {
  display: none;
}
body.tpl-atelier #contacte[style*="display: none"]::before,
body.tpl-atelier #contacte[style*="display:none"]::before {
  display: none;
}

/* ================================================================
   16. HERO TEXTUAL "Carnet de cuina"
   Push 2 — no photo, vertical stack on paper with texture
   ================================================================ */

body.tpl-atelier #hero.hero--atelier-textual {
  background: var(--paper);
  color: var(--ink);
  min-height: 88vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 48px);
  overflow: hidden;
}

body.tpl-atelier #hero.hero--atelier-textual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.34 0 0 0 0 0.26 0 0 0 0 0.16 0 0 0 0.18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

body.tpl-atelier #hero.hero--atelier-textual .hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(16px, 2vw, 24px);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

body.tpl-atelier #hero.hero--atelier-textual .hero-eyebrow {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--accent-secondary);
  letter-spacing: 0.04em;
  text-transform: none;
  margin-bottom: 8px;
}

body.tpl-atelier #hero.hero--atelier-textual .hero-name-large {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-shadow: none;
  margin: 0;
  text-wrap: balance;
}

body.tpl-atelier #hero.hero--atelier-textual .hero-inner::after {
  content: "\2766";
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(28px, 3vw, 36px);
  color: var(--accent);
  opacity: 0.55;
  margin: clamp(20px, 3vw, 32px) 0;
  order: 2;
}

body.tpl-atelier #hero.hero--atelier-textual .hero-eyebrow { order: 0; }
body.tpl-atelier #hero.hero--atelier-textual .hero-name-large { order: 1; }
body.tpl-atelier #hero.hero--atelier-textual .hero-btn { order: 3; }
body.tpl-atelier #hero.hero--atelier-textual .hero-menudia-pill { order: 4; }

body.tpl-atelier #hero.hero--atelier-textual .hero-btn {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-family: "Lora", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: all 280ms var(--ease-out);
}

body.tpl-atelier #hero.hero--atelier-textual .hero-btn:hover {
  background: var(--accent);
  color: var(--accent-fg);
  transform: translateY(-1px);
}

body.tpl-atelier #hero.hero--atelier-textual .hero-btn .ph {
  color: currentColor;
}

body.tpl-atelier #hero.hero--atelier-textual .hero-menudia-pill {
  border-radius: var(--radius-sm);
  border: 1px dashed var(--ink-line);
  background: var(--paper-2);
  font-family: "Lora", serif;
  font-style: italic;
}

@media (max-width: 768px) {
  body.tpl-atelier #hero.hero--atelier-textual {
    min-height: 78vh;
    padding-top: clamp(64px, 12vw, 96px);
  }
  body.tpl-atelier #hero.hero--atelier-textual .hero-name-large {
    font-size: clamp(44px, 12vw, 72px);
  }
}

/* ================================================================
   17. ATMOSPHERE as "main photo" in Atelier
   ================================================================ */

body.tpl-atelier #atmosphere {
  min-height: 90vh;
  position: relative;
}

body.tpl-atelier #atmosphere .atmosphere-bg {
  filter: saturate(0.95) contrast(1.02);
}

/* ================================================================
   18. CARTA "MENU IMPRES" — Push 3
   No tabs. All categories visible in continuous flow.
   2-column book layout on desktop + classic leader dots.
   ================================================================ */

body.tpl-atelier #carta .carta-tabs {
  display: none;
}

body.tpl-atelier #carta .carta-panel {
  display: block !important;
  margin-bottom: clamp(40px, 5vw, 64px);
}

body.tpl-atelier #carta .carta-panel:last-of-type {
  margin-bottom: 0;
}

body.tpl-atelier #carta .carta-panel-title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  color: var(--accent);
  text-align: center;
  margin: 0 0 clamp(20px, 3vw, 32px) 0;
  letter-spacing: 0.005em;
  position: relative;
  padding: 0 clamp(40px, 6vw, 80px);
}

body.tpl-atelier #carta .carta-panel-title::before,
body.tpl-atelier #carta .carta-panel-title::after {
  content: "\2766";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55em;
  color: var(--accent);
  opacity: 0.5;
  font-style: normal;
}

body.tpl-atelier #carta .carta-panel-title::before { left: 0; }
body.tpl-atelier #carta .carta-panel-title::after { right: 0; }

@media (min-width: 768px) {
  body.tpl-atelier #carta .carta-panel {
    column-count: 2;
    column-gap: clamp(40px, 5vw, 72px);
    column-rule: 1px dotted var(--ink-line);
  }
  body.tpl-atelier #carta .carta-panel-title {
    column-span: all;
    -webkit-column-span: all;
  }
}

body.tpl-atelier #carta .carta-item {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  page-break-inside: avoid;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0 12px;
  padding: 16px 0 14px 0;
  border: none;
  border-bottom: none;
  position: relative;
}

body.tpl-atelier #carta .carta-item .carta-item-text {
  position: relative;
  overflow: hidden;
  padding-right: 8px;
}

body.tpl-atelier #carta .carta-item .carta-item-text::after {
  content: "";
  position: absolute;
  bottom: 0.45em;
  left: 0;
  right: 0;
  border-bottom: 1px dotted var(--ink-line);
  pointer-events: none;
  z-index: 0;
}

body.tpl-atelier #carta .carta-item-name {
  background: var(--paper);
  padding-right: 8px;
  position: relative;
  z-index: 1;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--ink);
  display: inline;
}

body.tpl-atelier #carta .carta-item-desc {
  display: block;
  margin-top: 6px;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--fg-subtle);
  line-height: 1.5;
  padding-right: 8px;
  background: transparent;
  position: relative;
  z-index: 1;
}

body.tpl-atelier #carta .carta-item-price {
  background: var(--paper);
  padding-left: 10px;
  font-family: "Lora", serif;
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  color: var(--accent);
  white-space: nowrap;
  position: relative;
  z-index: 1;
  align-self: baseline;
}

body.tpl-atelier #carta .carta-item .dish-allergens {
  grid-column: 1 / -1;
  margin-top: 8px;
  opacity: 0.65;
}

body.tpl-atelier #carta .carta-item .dish-allergens > * {
  font-size: 11px;
}

/* ================================================================
   19. FINAL TOUCHES — Push 4
   Outline buttons universal, drop cap reinforced, polaroid refined.
   ================================================================ */

/* ─── Buttons outline "bodega label" ─── */
body.tpl-atelier .btn.primary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 13px 26px;
  font-family: "Lora", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: none;
  transition: background 280ms var(--ease-out), color 280ms var(--ease-out), transform 280ms var(--ease-out);
}
body.tpl-atelier .btn.primary:hover {
  background: var(--accent);
  color: var(--accent-fg);
  transform: translateY(-1px);
}
body.tpl-atelier .btn.primary .ph { color: currentColor; }

body.tpl-atelier .hdr-cta {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--accent);
}
body.tpl-atelier .hdr-cta:hover {
  background: var(--accent);
  color: var(--accent-fg);
}

/* ─── About: drop cap reinforced + polaroid refined ─── */
body.tpl-atelier #sobre .about-text p:first-of-type::first-letter {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 4.2em;
  line-height: 0.85;
  float: left;
  padding: 8px 14px 0 0;
  color: var(--accent);
  letter-spacing: -0.02em;
}

body.tpl-atelier #sobre .about-text h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 52px);
  letter-spacing: -0.01em;
  margin-bottom: clamp(20px, 2.5vw, 28px);
  color: var(--ink);
}

body.tpl-atelier #sobre .about-photo { max-width: 100%; }
body.tpl-atelier #sobre .about-photo img.about-media {
  display: block; width: 100%; height: auto;
}

body.tpl-atelier #sobre .about-text { position: relative; }
body.tpl-atelier #sobre .about-text::before {
  content: "\201C";
  position: absolute;
  top: -20px; right: -8px;
  font-family: "Cormorant Garamond", serif;
  font-style: italic; font-weight: 600;
  font-size: 120px; line-height: 1;
  color: var(--accent); opacity: 0.12;
  pointer-events: none; z-index: 0;
}
@media (max-width: 768px) {
  body.tpl-atelier #sobre .about-text::before {
    font-size: 80px; top: -12px; right: -4px;
  }
}

/* ─── Footer CTA: outline in Atelier ─── */
body.tpl-atelier .ftr-cta-button:not(.ftr-cta-secondary) {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--accent);
}
body.tpl-atelier .ftr-cta-button:not(.ftr-cta-secondary):hover {
  background: var(--accent);
  color: var(--accent-fg);
  transform: translateY(-1px);
}
body.tpl-atelier .ftr-cta-button:not(.ftr-cta-secondary) .ph { color: currentColor; }

/* ─── Reservation modal submit: label style ─── */
body.tpl-atelier .rsv-submit {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-sm);
}
body.tpl-atelier .rsv-submit:hover:not(:disabled) {
  background: var(--accent);
  color: var(--accent-fg);
  transform: translateY(-1px);
}

/* ─── Header nav + lang: Lora italic ─── */
body.tpl-atelier #site-header .hdr-nav-links a {
  font-family: "Lora", serif;
  font-style: italic;
  letter-spacing: 0.02em;
  text-transform: none;
  font-size: 15px;
}
body.tpl-atelier #site-header .lang-toggle button {
  font-family: "Lora", serif;
  letter-spacing: 0.05em;
}

/* ─── Vins: classic carta refinement ─── */
body.tpl-atelier .vins-group h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  margin-bottom: clamp(18px, 2vw, 24px);
}
body.tpl-atelier .vins-group h3::after {
  content: "";
  display: block;
  width: 100%;
  height: 1px;
  background: var(--ink-line);
  margin-top: 8px;
  opacity: 0.6;
}

/* ─── Allergen legend: coherent aesthetic ─── */
body.tpl-atelier .allergen-legend-title {
  font-family: "Lora", serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
}
body.tpl-atelier .allergen-legend-item {
  font-family: "Lora", serif;
  font-style: normal;
  font-size: 13px;
}

/* ================================================================
   20. FIXES — bugs detectats en testing
   ================================================================ */

/* ── FIX 1 — Menú del dia: Primers/Segons/Postres prominents ── */
body.tpl-atelier #menu-diari .menu-diari-col > .t-eyebrow,
body.tpl-atelier #menu-diari .menu-diari-postres > .t-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-align: center;
  margin: 0 0 clamp(16px, 2vw, 24px) 0;
  position: relative;
  padding: 0 clamp(30px, 4vw, 60px);
  display: block;
}
body.tpl-atelier #menu-diari .menu-diari-col > .t-eyebrow::before,
body.tpl-atelier #menu-diari .menu-diari-postres > .t-eyebrow::before,
body.tpl-atelier #menu-diari .menu-diari-col > .t-eyebrow::after,
body.tpl-atelier #menu-diari .menu-diari-postres > .t-eyebrow::after {
  content: "\2766";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.55em;
  color: var(--accent);
  opacity: 0.5;
  font-style: normal;
}
body.tpl-atelier #menu-diari .menu-diari-col > .t-eyebrow::before,
body.tpl-atelier #menu-diari .menu-diari-postres > .t-eyebrow::before { left: 0; }
body.tpl-atelier #menu-diari .menu-diari-col > .t-eyebrow::after,
body.tpl-atelier #menu-diari .menu-diari-postres > .t-eyebrow::after { right: 0; }

body.tpl-atelier #menu-diari .menu-diari-dish-name {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(17px, 1.6vw, 19px);
}
body.tpl-atelier #menu-diari .menu-diari-dish-desc {
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--fg-subtle);
}

/* ── FIX 2 — Agenda amb foto: overlay marró càlid fosc ── */
/* Textos en blanco fijo (no var(--paper)) para garantizar contraste sobre overlay dark
   independientemente de la paleta del cliente. */
body.tpl-atelier #agenda.agenda--has-bg .agenda-overlay {
  background: linear-gradient(180deg,
    rgba(45, 32, 20, 0.62) 0%,
    rgba(45, 32, 20, 0.72) 60%,
    rgba(45, 32, 20, 0.82) 100%
  );
}
body.tpl-atelier #agenda.agenda--has-bg .section-inner { color: #FFFFFF; }
body.tpl-atelier #agenda.agenda--has-bg .t-eyebrow { color: rgba(255, 255, 255, 0.78) !important; }
body.tpl-atelier #agenda.agenda--has-bg > .section-inner > h2 { color: #FFFFFF !important; }
body.tpl-atelier #agenda.agenda--has-bg .empty-msg { color: rgba(255, 255, 255, 0.70); }
body.tpl-atelier #agenda.agenda--has-bg .agenda-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.tpl-atelier #agenda.agenda--has-bg .agenda-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
body.tpl-atelier #agenda.agenda--has-bg .agenda-month { color: rgba(255, 255, 255, 0.72) !important; }
body.tpl-atelier #agenda.agenda--has-bg .agenda-day { color: #FFFFFF !important; }
body.tpl-atelier #agenda.agenda--has-bg .agenda-body h3 { color: #FFFFFF !important; }
body.tpl-atelier #agenda.agenda--has-bg .agenda-body p { color: rgba(255, 255, 255, 0.82) !important; }
body.tpl-atelier #agenda.agenda--has-bg .agenda-body .t-eyebrow { color: rgba(255, 255, 255, 0.65) !important; }
body.tpl-atelier #agenda.agenda--has-bg .agenda-meta { color: rgba(255, 255, 255, 0.70); }
body.tpl-atelier #agenda.agenda--has-bg .agenda-meta .ph { color: rgba(255, 255, 255, 0.70); }

/* ── FIX 3 — Hero title animation failsafe ── */
body.tpl-atelier #hero.hero--atelier-textual .hero-name-large {
  opacity: 1;
}
body.tpl-atelier #hero.hero--atelier-textual .hero-name-large.hero-anim-fade,
body.tpl-atelier #hero.hero--atelier-textual .hero-name-large.hero-anim-slide,
body.tpl-atelier #hero.hero--atelier-textual .hero-name-large.hero-anim-scale {
  animation-fill-mode: both;
}
@keyframes atelier-hero-title-failsafe {
  to { opacity: 1; transform: none; }
}
body.tpl-atelier #hero.hero--atelier-textual .hero-name-large > span {
  animation: atelier-hero-title-failsafe 0.01s 2s forwards;
}

/* ================================================================
   21. CONSISTENCY OVERRIDES
   Selectores específics de site.css superats amb body.tpl-atelier
   ================================================================ */

/* ── MENU DEL DIA — eyebrows ── */
body.tpl-atelier .menu-diari-col .t-eyebrow,
body.tpl-atelier .menu-diari-postres .t-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 28px);
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-align: center;
  margin: 0 0 clamp(16px, 2vw, 24px) 0;
  padding: 0 clamp(30px, 4vw, 60px);
}

/* ── EXPERIENCES — eyebrow superior ── */
body.tpl-atelier .exp-inner > .t-eyebrow {
  font-family: "Lora", serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--accent-secondary);
  font-weight: 400;
  text-align: center;
}

/* ── EXPERIENCES — h2 títol principal ── */
body.tpl-atelier .exp-inner > h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: -0.01em;
  color: var(--ink);
}
body.tpl-atelier .exp-inner > h2 i.ph {
  color: var(--accent);
}

/* ── EXPERIENCES — descripció + preu ── */
body.tpl-atelier .exp-description {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(17px, 1.7vw, 20px);
  font-weight: 400;
  color: var(--ink-2);
  line-height: 1.55;
}
body.tpl-atelier .exp-price-amount {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  color: var(--accent);
}
body.tpl-atelier .exp-price-label,
body.tpl-atelier .exp-price-note {
  font-family: "Lora", serif;
  font-style: italic;
}

/* ── EXPERIENCES MENU — labels + plats ── */
body.tpl-atelier .exp-menu-item .t-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 22px);
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--accent);
  border-bottom: 1px solid var(--ink-line);
  padding-bottom: 10px;
  max-width: 220px;
}
body.tpl-atelier .exp-menu-item .exp-plat {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
  font-size: clamp(16px, 1.7vw, 19px);
  color: var(--ink);
}

/* ── VINS — group titles ── */
body.tpl-atelier .vins-group h3 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 30px);
  color: var(--accent);
  letter-spacing: 0.005em;
}
body.tpl-atelier .vins-group h3::after {
  background: linear-gradient(90deg, var(--ink-line) 0%, transparent 100%);
  opacity: 0.7;
}

/* ── AGENDA — body h3 + eyebrow ── */
body.tpl-atelier .agenda-body h3 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -0.005em;
  color: var(--ink);
}
body.tpl-atelier .agenda-body .t-eyebrow {
  font-family: "Lora", serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.03em;
  color: var(--accent-secondary);
  font-size: 13px;
  font-weight: 400;
}

/* ── FOOTER — column eyebrows ── */
body.tpl-atelier .ftr-col .t-eyebrow {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: 17px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── GENERIC SECTION EYEBROWS ── */
body.tpl-atelier #carta > .section-inner > .t-eyebrow,
body.tpl-atelier #vins > .section-inner > .t-eyebrow,
body.tpl-atelier #agenda > .section-inner > .t-eyebrow,
body.tpl-atelier #sobre > .section-inner > .t-eyebrow,
body.tpl-atelier #menu-diari > .section-inner > .t-eyebrow,
body.tpl-atelier #experiencies > .section-inner > .t-eyebrow,
body.tpl-atelier #contacte > .section-inner > .t-eyebrow {
  font-family: "Lora", serif;
  font-style: italic;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: clamp(14px, 1.3vw, 16px);
  color: var(--accent-secondary);
  font-weight: 400;
}

/* ── GENERIC SECTION H2 ── */
body.tpl-atelier #carta > .section-inner > h2,
body.tpl-atelier #vins > .section-inner > h2,
body.tpl-atelier #agenda > .section-inner > h2,
body.tpl-atelier #menu-diari > .section-inner > h2,
body.tpl-atelier #contacte > .section-inner > h2 {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 600;
  font-size: clamp(40px, 5vw, 60px);
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.05;
}
body.tpl-atelier #menu-diari > .section-inner > h2 i.ph,
body.tpl-atelier #vins > .section-inner > h2 i.ph,
body.tpl-atelier #experiencies > .section-inner > h2 i.ph {
  color: var(--accent);
}

/* ================================================================
   22. TYPOGRAPHIC HIERARCHY SYSTEM
   Jerarquia definitiva de 4 nivells per Atelier.
   ================================================================ */

/* FIX línia negra Agenda */
body.tpl-atelier #agenda.agenda--has-bg {
  background: #2D2014;
}

/* ──── NIVEL 1 — H2 principals (48-80px) ──── */
body.tpl-atelier #carta > .section-inner > h2,
body.tpl-atelier #sobre .about-text h2,
body.tpl-atelier #agenda > .section-inner > h2,
body.tpl-atelier #contacte > .section-inner > h2 {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(48px, 6vw, 80px) !important;
  letter-spacing: -0.015em !important;
  color: var(--ink) !important;
  line-height: 1.0 !important;
  text-wrap: balance;
}

/* ──── NIVEL 2 — H2 amb icon (42-68px) ──── */
body.tpl-atelier #menu-diari > .section-inner > h2,
body.tpl-atelier #vins > .section-inner > h2,
body.tpl-atelier #experiencies > .section-inner > h2,
body.tpl-atelier .exp-inner > h2 {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(42px, 5vw, 68px) !important;
  letter-spacing: -0.012em !important;
  color: var(--ink) !important;
  line-height: 1.05 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
body.tpl-atelier #menu-diari > .section-inner > h2 i.ph,
body.tpl-atelier #vins > .section-inner > h2 i.ph,
body.tpl-atelier #experiencies > .section-inner > h2 i.ph,
body.tpl-atelier .exp-inner > h2 i.ph {
  font-size: 0.7em !important;
  color: var(--accent) !important;
}

/* ──── NIVEL 3 — H3 sub-headings (22-30px) ──── */
body.tpl-atelier #carta .carta-panel-title {
  font-size: clamp(26px, 3vw, 36px) !important;
}
body.tpl-atelier .menu-diari-col .t-eyebrow,
body.tpl-atelier .menu-diari-postres .t-eyebrow {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(22px, 2.6vw, 30px) !important;
  text-transform: none !important;
  letter-spacing: 0.005em !important;
  color: var(--accent) !important;
}
body.tpl-atelier .vins-group h3 {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(22px, 2.6vw, 30px) !important;
  color: var(--accent) !important;
  letter-spacing: 0.005em !important;
}
body.tpl-atelier .agenda-body h3 {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(20px, 2.2vw, 24px) !important;
  color: var(--ink) !important;
  letter-spacing: -0.005em !important;
  line-height: 1.15 !important;
}
body.tpl-atelier .exp-menu-item .t-eyebrow {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(20px, 2.2vw, 24px) !important;
  text-transform: none !important;
  letter-spacing: 0.005em !important;
  color: var(--accent) !important;
}

/* ──── NIVEL 4 — Eyebrows superior (13-15px) ──── */
body.tpl-atelier #carta > .section-inner > .t-eyebrow,
body.tpl-atelier #vins > .section-inner > .t-eyebrow,
body.tpl-atelier #agenda > .section-inner > .t-eyebrow,
body.tpl-atelier #sobre > .section-inner > .t-eyebrow,
body.tpl-atelier #menu-diari > .section-inner > .t-eyebrow,
body.tpl-atelier #experiencies > .section-inner > .t-eyebrow,
body.tpl-atelier #contacte > .section-inner > .t-eyebrow,
body.tpl-atelier .exp-inner > .t-eyebrow {
  font-family: "Lora", serif !important;
  font-style: italic !important;
  text-transform: none !important;
  letter-spacing: 0.04em !important;
  font-size: clamp(13px, 1.3vw, 15px) !important;
  color: var(--accent-secondary) !important;
  font-weight: 400 !important;
  margin-bottom: 12px !important;
}


/* ──── EXP DESCRIPTION — italic centrat ──── */
body.tpl-atelier .exp-description {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-size: clamp(18px, 1.8vw, 22px) !important;
  font-weight: 400 !important;
  color: var(--ink-2) !important;
  line-height: 1.55 !important;
}

/* ──── EXP PRICE — gegant centrat ──── */
body.tpl-atelier .exp-price-amount {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  color: var(--accent) !important;
  font-size: clamp(64px, 10vw, 96px) !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
}
body.tpl-atelier .exp-price-label,
body.tpl-atelier .exp-price-note {
  font-family: "Lora", serif !important;
  font-style: italic !important;
  font-size: 14px !important;
}

/* ──── HERO — el més gran ──── */
body.tpl-atelier #hero.hero--atelier-textual .hero-name-large {
  font-size: clamp(64px, 10vw, 140px) !important;
}

/* ================================================================
   23. MANIFEST — secció storytelling Atelier
   Pull quote enorme italic centrat, fons paper texturitzat.
   ================================================================ */

body.tpl-atelier #manifest {
  background: var(--paper);
  padding: clamp(96px, 14vw, 180px) clamp(20px, 5vw, 48px);
  position: relative;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
  overflow: hidden;
}

body.tpl-atelier #manifest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.34 0 0 0 0 0.26 0 0 0 0 0.16 0 0 0 0.10 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: multiply;
  z-index: 0;
}

body.tpl-atelier #manifest .manifest-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

body.tpl-atelier #manifest .manifest-quote {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 4.5vw, 56px);
  line-height: 1.25;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  position: relative;
  padding: 0 clamp(24px, 4vw, 60px);
}

body.tpl-atelier #manifest .manifest-quote::before {
  content: "\201C";
  position: absolute;
  left: 0;
  top: -0.1em;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4em;
  color: var(--accent);
  opacity: 0.45;
  line-height: 1;
}

body.tpl-atelier #manifest .manifest-quote::after {
  content: "\201D";
  position: absolute;
  right: 0;
  bottom: -0.45em;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.4em;
  color: var(--accent);
  opacity: 0.45;
  line-height: 1;
}

@media (max-width: 768px) {
  body.tpl-atelier #manifest {
    padding: 64px 16px;
  }
  body.tpl-atelier #manifest .manifest-quote {
    font-size: clamp(24px, 6.8vw, 38px);
    line-height: 1.3;
    padding: 0 14px;
    text-wrap: balance;
  }
  body.tpl-atelier #manifest .manifest-quote::before,
  body.tpl-atelier #manifest .manifest-quote::after {
    font-size: 1em;
    opacity: 0.35;
  }
  body.tpl-atelier #manifest .manifest-quote::before {
    top: -0.3em;
    left: -2px;
  }
  body.tpl-atelier #manifest .manifest-quote::after {
    bottom: -0.5em;
    right: -2px;
  }
}

body.tpl-atelier #manifest::after { display: none !important; }
body.tpl-atelier #atmosphere::before { display: none; }

/* ================================================================
   24. ATMOSPHERE FLOTANT + AGENDA DIARI
   ================================================================ */

/* ── ATMOSPHERE — foto flotant editorial centrada ── */
body.tpl-atelier #atmosphere {
  background: var(--paper);
  padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 48px);
  min-height: 0;
  position: relative;
  overflow: visible;
}
body.tpl-atelier #atmosphere .atmosphere-bg {
  position: relative;
  inset: auto;
  width: 100%;
  max-width: 880px;
  height: clamp(380px, 55vh, 620px);
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(0.9) contrast(1.02);
  border: 12px solid #FFFFFF;
  box-shadow:
    0 1px 0 rgba(61, 47, 30, 0.08),
    0 24px 48px -12px rgba(61, 47, 30, 0.20),
    0 8px 16px -8px rgba(61, 47, 30, 0.12);
  transition: transform 600ms var(--ease-out);
}
body.tpl-atelier #atmosphere:hover .atmosphere-bg {
  transform: translateY(-3px);
}
@media (max-width: 768px) {
  body.tpl-atelier #atmosphere { padding: 64px 24px; }
  body.tpl-atelier #atmosphere .atmosphere-bg { border-width: 8px; height: 320px; }
}

/* ── AGENDA DIARI — entrades sense cards (només sense foto de fons) ── */
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--ink-line);
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-card {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: clamp(20px, 3vw, 36px);
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--ink-line) !important;
  border-radius: 0 !important;
  padding: clamp(28px, 4vw, 40px) 0 !important;
  box-shadow: none !important;
  transition: none !important;
  transform: none !important;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-card:hover {
  background: transparent !important;
  border-color: var(--ink-line) !important;
  transform: none !important;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 0;
  border: none;
  background: transparent;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-day {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(56px, 6vw, 80px) !important;
  line-height: 0.9 !important;
  letter-spacing: -0.025em !important;
  color: var(--accent) !important;
  margin: 0;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-month {
  font-family: "Lora", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 13px !important;
  letter-spacing: 0.04em !important;
  text-transform: lowercase !important;
  color: var(--accent-secondary) !important;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 0;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-body .t-eyebrow {
  font-family: "Lora", serif !important;
  font-style: italic !important;
  font-weight: 400 !important;
  font-size: 12px !important;
  letter-spacing: 0.06em !important;
  text-transform: lowercase !important;
  color: var(--accent-secondary) !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-body h3 {
  font-family: "Cormorant Garamond", serif !important;
  font-style: italic !important;
  font-weight: 600 !important;
  font-size: clamp(22px, 2.8vw, 30px) !important;
  letter-spacing: -0.005em !important;
  color: var(--ink) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-body p {
  font-family: "Lora", serif !important;
  font-style: italic !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: var(--fg-muted) !important;
  margin: 4px 0 0 !important;
  max-width: 540px !important;
}
body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-meta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
  font-family: "Lora", serif;
  font-style: italic;
  font-size: 13px;
  font-weight: 400;
  color: var(--fg-subtle);
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-date {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
  }
  body.tpl-atelier #agenda:not(.agenda--has-bg) .agenda-day {
    font-size: clamp(48px, 12vw, 64px) !important;
  }
}
