/*
Theme Name: Donna Elena Home
Theme URI: https://barbanerastudio.it/
Author: Barbanera Studio
Description: Tema mobile-first per Donna Elena Home, progettato per il BARBANERA CORE.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.0
Text Domain: donna-elena-home
*/

:root {
  --deh-ink: #27343b;
  --deh-paper: #fbfaf7;
  --deh-sand: #ede3d3;
  --deh-clay: #b87858;
  --deh-gold: #b7975c;
  --deh-sea: #396b78;
  --deh-mist: #e9f1f1;
  --deh-line: rgba(39, 52, 59, .15);
  --deh-shadow: 0 18px 48px rgba(39, 52, 59, .12);
  --deh-radius: 1.25rem;
  --deh-shell: min(1120px, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--deh-ink);
  background: var(--deh-paper);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, textarea, select { font: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.deh-shell { width: var(--deh-shell); margin-inline: auto; }
.deh-eyebrow { margin: 0 0 .75rem; color: var(--deh-clay); font-size: .73rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.deh-display { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.deh-button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 3rem; padding: .75rem 1.15rem; border: 1px solid transparent; border-radius: 999px;
  background: var(--deh-ink); color: #fff; font-size: .9rem; font-weight: 700; text-decoration: none;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.deh-button:hover, .deh-button:focus-visible { transform: translateY(-2px); background: var(--deh-sea); }
.deh-button--light { background: #fff; color: var(--deh-ink); }
.deh-button--light:hover, .deh-button--light:focus-visible { background: var(--deh-sand); }
.deh-button--outline { border-color: currentColor; background: transparent; color: inherit; }
.deh-button--outline:hover, .deh-button--outline:focus-visible { background: rgba(255,255,255,.16); }

.deh-site-header { position: absolute; z-index: 20; inset: 0 0 auto; padding: 1rem 0; color: #fff; }
.deh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.deh-brand { display: inline-flex; flex-direction: column; color: inherit; text-decoration: none; line-height: 1; }
.deh-brand strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 400; letter-spacing: -.04em; }
.deh-brand small { margin-top: .3rem; font-size: .57rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.deh-site-nav { display: none; align-items: center; gap: 1.1rem; font-size: .78rem; font-weight: 700; }
.deh-site-nav a { text-decoration: none; }
.deh-language { display: flex; gap: .15rem; padding: .2rem; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; }
.deh-language a { padding: .26rem .42rem; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; }
.deh-language a[aria-current="true"] { background: #fff; color: var(--deh-ink); }
.deh-menu-toggle { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; border: 1px solid rgba(255,255,255,.54); border-radius: 50%; background: transparent; color: inherit; }
.deh-menu-toggle svg { width: 1.1rem; }
@media (max-width: 699px) {
  .deh-site-nav.is-open { position: absolute; top: 4.5rem; right: 1.25rem; display: flex; flex-direction: column; align-items: stretch; min-width: 13rem; padding: .9rem; border-radius: 1rem; background: var(--deh-ink); box-shadow: var(--deh-shadow); }
  .deh-site-nav.is-open .deh-language { justify-content: center; margin-top: .25rem; }
}

.deh-hero { position: relative; min-height: min(48rem, 100svh); display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--deh-ink); }
.deh-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,28,.42) 0%, rgba(17,24,28,.15) 35%, rgba(17,24,28,.72) 100%); z-index: 1; }
.deh-hero-media { position: absolute; inset: 0; }
.deh-hero-media img { height: 100%; object-fit: cover; object-position: 50% 54%; }
.deh-hero-content { position: relative; z-index: 2; padding: 9rem 0 3rem; }
.deh-hero-content h1 { max-width: 12ch; font-size: clamp(3.7rem, 12vw, 8rem); }
.deh-hero-copy { max-width: 33rem; margin: 1.25rem 0 1.7rem; font-size: 1.04rem; }
.deh-hero-actions { display: flex; flex-wrap: wrap; gap: .65rem; }
.deh-scroll-cue { position: absolute; right: 1.25rem; bottom: 2rem; z-index: 2; display: none; writing-mode: vertical-rl; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }

.deh-section { padding: 4.8rem 0; }
.deh-section--sand { background: var(--deh-sand); }
.deh-section--mist { background: var(--deh-mist); }
.deh-intro { display: grid; gap: 1.5rem; }
.deh-intro h2 { max-width: 13ch; font-size: clamp(2.5rem, 8vw, 4.65rem); }
.deh-intro-copy { max-width: 38rem; margin: 0; font-size: 1.08rem; }
.deh-statement { margin-top: 2.75rem; padding: 1.4rem; border-left: 2px solid var(--deh-gold); background: rgba(255,255,255,.48); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 4vw, 2rem); line-height: 1.25; }

.deh-gallery { display: grid; grid-template-columns: 1.12fr .88fr; grid-template-rows: 14rem 14rem; gap: .75rem; margin-top: 2.5rem; }
.deh-gallery a { position: relative; overflow: hidden; border-radius: var(--deh-radius); background: var(--deh-ink); }
.deh-gallery a:first-child { grid-row: span 2; }
.deh-gallery img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.deh-gallery a:hover img, .deh-gallery a:focus-visible img { transform: scale(1.045); }
.deh-gallery-caption { position: absolute; left: 1rem; bottom: .75rem; margin: 0; color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-shadow: 0 1px 10px #000; text-transform: uppercase; }
.deh-gallery-extra { display: none; }

.deh-interest-grid { display: grid; gap: .85rem; margin-top: 2.5rem; }
.deh-interest { display: flex; flex-direction: column; align-items: flex-start; min-height: 14rem; padding: 1.35rem; border: 1px solid var(--deh-line); border-radius: var(--deh-radius); background: var(--deh-paper); box-shadow: 0 7px 18px rgba(39,52,59,.04); }
.deh-interest h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.55rem; font-weight: 400; line-height: 1.1; }
.deh-interest p { margin: .8rem 0 1.2rem; }
.deh-interest .deh-button { margin-top: auto; }
.deh-awaiting { max-width: 43rem; margin: 2rem 0 0; padding: 1rem 1.15rem; border-left: 2px solid var(--deh-gold); background: rgba(255,255,255,.55); }

.deh-contact { overflow: hidden; color: #fff; background: var(--deh-ink); }
.deh-contact-grid { display: grid; gap: 2.5rem; }
.deh-contact .deh-eyebrow { color: #f1d4a0; }
.deh-contact h2 { max-width: 11ch; font-size: clamp(2.6rem, 8vw, 5.2rem); }
.deh-contact-text { max-width: 29rem; margin: 1.2rem 0 0; font-size: 1.1rem; }
.deh-contact-card { padding: 1.5rem; border: 1px solid rgba(255,255,255,.25); border-radius: var(--deh-radius); background: rgba(255,255,255,.08); }
.deh-contact-card p { margin: 0 0 1rem; }
.deh-contact-actions { display: flex; flex-wrap: wrap; gap: .65rem; }

.deh-site-footer { padding: 1.6rem 0; border-top: 1px solid var(--deh-line); font-size: .78rem; }
.deh-footer-inner { display: flex; flex-direction: column; gap: .8rem; }
.deh-footer-inner p { margin: 0; }
.deh-footer-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.deh-footer-links a { text-decoration: none; }

.deh-guest { min-height: 100svh; background: var(--deh-paper); }
.page-template-template-guest .deh-site-header { position: static; color: var(--deh-ink); border-bottom: 1px solid var(--deh-line); }
.page-template-template-guest .deh-language { border-color: var(--deh-line); }
.page-template-template-guest .deh-language a[aria-current="true"] { background: var(--deh-ink); color: #fff; }
.deh-guest-header { padding: 1.2rem 0; border-bottom: 1px solid var(--deh-line); }
.deh-guest-header .deh-header-inner { color: var(--deh-ink); }
.deh-guest-header .deh-language { border-color: var(--deh-line); }
.deh-guest-header .deh-language a[aria-current="true"] { background: var(--deh-ink); color: #fff; }
.deh-guest-main { padding: 3.5rem 0 5rem; }
.deh-guest-main h1 { font-size: clamp(3rem, 11vw, 5.2rem); }
.deh-guest-lede { max-width: 35rem; margin: 1rem 0 2.5rem; font-size: 1.08rem; }
.deh-guest-actions { display: grid; gap: .85rem; }
.deh-guest-actions .deh-button { justify-content: space-between; padding-inline: 1.1rem; }
.deh-guest-placeholder { margin-top: 2.8rem; padding: 1.25rem; border: 1px dashed rgba(39,52,59,.35); border-radius: var(--deh-radius); background: var(--deh-mist); }
.deh-guest-placeholder h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
.deh-guest-placeholder p { margin: .45rem 0 0; }

.deh-floating-wa { position: fixed; z-index: 12; right: 1rem; bottom: 1rem; display: inline-grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%; background: #1d6f5d; color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.24); text-decoration: none; }
.deh-floating-wa:hover, .deh-floating-wa:focus-visible { background: #155747; }
.deh-modal[hidden] { display: none; }
.deh-modal { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 1rem; background: rgba(21,31,35,.78); }
.deh-modal-box { position: relative; width: min(860px, 100%); max-height: 90svh; overflow: auto; border-radius: var(--deh-radius); background: #fff; box-shadow: var(--deh-shadow); }
.deh-modal-box img { max-height: 80svh; object-fit: contain; }
.deh-modal-close { position: absolute; top: .7rem; right: .7rem; z-index: 1; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: #fff; color: var(--deh-ink); font-weight: 700; }

@media (min-width: 700px) {
  .deh-section { padding: 6.8rem 0; }
  .deh-site-header { padding-top: 1.4rem; }
  .deh-site-nav { display: flex; }
  .deh-menu-toggle { display: none; }
  .deh-hero-content { padding-bottom: 4rem; }
  .deh-scroll-cue { display: block; }
  .deh-intro { grid-template-columns: minmax(0, .9fr) minmax(16rem, 1fr); gap: 3.5rem; align-items: end; }
  .deh-gallery { grid-template-columns: 1.18fr .84fr .72fr; grid-template-rows: 16rem 16rem; }
  .deh-gallery-extra { display: block; }
  .deh-interest-grid { grid-template-columns: repeat(3, 1fr); }
  .deh-contact-grid { grid-template-columns: 1.15fr .85fr; align-items: end; }
  .deh-footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .deh-guest-main { padding-top: 5rem; }
  .deh-guest-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 48rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
