/*
Theme Name: Basilica Sant'Elia
Theme URI: https://www.basilicasantelia.it/
Author: Clivis APS
Description: Tema istituzionale accessibile per la Basilica di Sant'Elia a Castel Sant'Elia.
Version: 1.1.4
Requires at least: 6.8
Requires PHP: 8.1
Text Domain: basilica-santelia
*/

:root {
  --wine: #5d0c2e;
  --wine-dark: #310718;
  --gold: #b88a43;
  --paper: #f5f0e7;
  --paper-deep: #e9dfcf;
  --ink: #211d1a;
  --muted: #6e655e;
  --white: #fff;
  --shadow: 0 18px 50px rgba(42, 24, 23, .12);
  --radius: 1rem;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 1.05rem;
  line-height: 1.68;
}

body.admin-bar .site-header { top: 32px; }
a { color: var(--wine); text-underline-offset: .2em; }
a:hover { color: var(--wine-dark); }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea, select { font: inherit; }
h1, h2, h3, h4 {
  margin: 0 0 .55em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 7vw, 5.8rem); }
h2 { font-size: clamp(2rem, 4vw, 3.45rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
p { margin: 0 0 1.2rem; }

.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;
}
.screen-reader-text:focus {
  z-index: 100000;
  top: .75rem;
  left: .75rem;
  width: auto;
  height: auto;
  padding: .75rem 1rem;
  clip: auto;
  color: var(--white);
  background: var(--wine);
}
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.narrow { width: min(calc(100% - 2rem), 790px); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7.5rem) 0; }
.section--paper { background: var(--paper); }
.section--wine { color: var(--white); background: var(--wine-dark); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.eyebrow::before { width: 2rem; height: 1px; background: currentColor; content: ""; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  color: var(--white);
  background: rgba(49, 7, 24, .96);
  backdrop-filter: blur(12px);
}
.header-inner { display: flex; min-height: 84px; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--white); text-decoration: none; }
.brand img { width: 48px; height: 48px; object-fit: contain; }
.brand-text { font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; line-height: 1.05; }
.menu-toggle {
  display: none;
  margin-left: auto;
  padding: .65rem .85rem;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: .5rem;
  cursor: pointer;
}
.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; align-items: center; gap: 1.15rem; padding: 0; margin: 0; list-style: none; }
.primary-nav a { color: var(--white); font-size: .9rem; font-weight: 700; text-decoration: none; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #e4bc7a; }
.primary-nav .menu-item-has-children { position: relative; }
.primary-nav .sub-menu {
  position: absolute;
  z-index: 10;
  top: calc(100% + .65rem);
  left: -.8rem;
  display: none;
  min-width: 210px;
  align-items: stretch;
  gap: 0;
  padding: .55rem;
  background: var(--wine-dark);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: .65rem;
  box-shadow: var(--shadow);
}
.primary-nav .sub-menu::before { position: absolute; right: 0; bottom: 100%; left: 0; height: .75rem; content: ""; }
.primary-nav .sub-menu li { width: 100%; }
.primary-nav .sub-menu a { display: block; padding: .55rem .7rem; border-radius: .35rem; }
.primary-nav .sub-menu a:hover { background: rgba(255,255,255,.08); }
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu { display: flex; flex-direction: column; }
.language-link {
  padding: .45rem .7rem;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 999px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(820px, calc(100vh - 84px));
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background: var(--wine-dark);
}
.hero::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31, 5, 17, .88) 0%, rgba(31, 5, 17, .55) 48%, rgba(31, 5, 17, .12) 100%);
  content: "";
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 1; max-width: 820px; padding: clamp(6rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8rem); }
.hero .hero-location {
  padding: .45rem .75rem;
  color: var(--white);
  background: rgba(49, 7, 24, .62);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .4rem;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}
.hero h1 { max-width: 780px; }
.hero-lead { max-width: 660px; font-size: clamp(1.15rem, 2vw, 1.45rem); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.15rem;
  color: var(--white);
  background: var(--wine);
  border: 1px solid var(--wine);
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}
.button:hover { color: var(--white); background: var(--wine-dark); }
.button--gold { color: #24170e; background: #ddb66d; border-color: #ddb66d; }
.button--gold:hover { color: #24170e; background: #f0ce8c; }
.button--ghost { color: var(--white); background: transparent; border-color: rgba(255,255,255,.7); }

.quick-grid, .card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.quick-grid { position: relative; z-index: 3; margin-top: -3rem; }
.quick-card {
  padding: 1.65rem;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: .8rem;
  box-shadow: var(--shadow);
}
.quick-card small { color: var(--muted); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.quick-card strong { display: block; margin-top: .35rem; font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; line-height: 1.25; }
.quick-card p { margin: .45rem 0 0; color: var(--muted); font-size: .95rem; }
.quick-card--guided .button { margin-top: .8rem; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.split-media { overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.split-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: var(--white);
  background: var(--wine-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(30,7,16,.92), rgba(30,7,16,.08) 75%); content: ""; }
.card:hover img { transform: scale(1.035); }
.card-content { position: absolute; z-index: 1; inset: auto 1.5rem 1.45rem; }
.card-content p { margin: 0; color: rgba(255,255,255,.8); }
.card-link { position: absolute; z-index: 2; inset: 0; }

.notice {
  padding: clamp(2rem, 5vw, 3.25rem);
  color: var(--white);
  background: var(--wine);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.notice a { color: #f2cd8c; }
.notice .button--gold { color: var(--ink); }
.price-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.75rem 0 0; }
.text-center { max-width: 820px; text-align: center; }
.actions--center { justify-content: center; }
.price { padding: 1.4rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: .75rem; }
.price strong { display: block; color: #f1c97e; font-family: Georgia, "Times New Roman", serif; font-size: 1.8rem; }

.page-hero { position: relative; display: grid; min-height: 470px; align-items: end; overflow: hidden; color: var(--white); background: var(--wine-dark); }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .65; }
.page-hero::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(38,5,20,.92), rgba(38,5,20,.18)); content: ""; }
.page-hero-inner { position: relative; z-index: 1; padding: 6rem 0 3.5rem; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.breadcrumbs { margin-bottom: 1rem; font-size: .9rem; }
.breadcrumbs a { color: #f1ce91; }
.entry-content { padding: clamp(3.5rem, 7vw, 6.5rem) 0; }
.entry-content > * { max-width: 790px; margin-right: auto; margin-left: auto; }
.entry-content > .alignwide { max-width: var(--max); }
.entry-content h2, .entry-content h3 { margin-top: 2.5rem; }
.entry-content table { width: 100%; margin: 2rem 0; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .8rem; border-bottom: 1px solid #d8cbb9; text-align: left; }
.entry-content th { color: var(--wine-dark); background: var(--paper); }
.entry-content blockquote { padding: 1rem 1.5rem; border-left: 4px solid var(--gold); background: var(--paper); }
.content-photo { margin: 2.25rem 0; }
.content-photo img { width: 100%; max-height: 560px; border-radius: .55rem; object-fit: cover; box-shadow: var(--shadow); }
.content-photo figcaption { padding-top: .45rem; color: var(--muted); font-size: .82rem; text-align: center; }
.content-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2.25rem 0; }
.content-gallery figure { margin: 0; }
.content-gallery img { width: 100%; height: 330px; border-radius: .55rem; object-fit: cover; box-shadow: var(--shadow); }
.content-gallery figcaption { padding-top: .4rem; color: var(--muted); font-size: .8rem; text-align: center; }
.content-gallery--portrait img { height: 520px; }
.source-note { padding: 1.15rem 1.25rem; margin-top: 2rem; color: var(--muted); background: var(--paper); border-left: 4px solid var(--gold); border-radius: .35rem; font-size: .9rem; }
.event-summary { padding: 1.35rem; margin: 1.75rem 0; background: var(--paper); border-radius: .65rem; }
.event-summary h2, .event-summary h3 { margin-top: 0; }
.event-program { padding-left: 1.35rem; }
.event-program li { margin-bottom: .65rem; }
.catalog-list { padding-left: 1.35rem; }
.catalog-list li { margin-bottom: .55rem; }

.posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.post-card { overflow: hidden; background: var(--white); border: 1px solid #e1d8cb; border-radius: .8rem; box-shadow: 0 8px 30px rgba(43,25,20,.07); }
.post-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card-body { padding: 1.35rem; }
.post-card time { color: var(--muted); font-size: .86rem; }
.post-card h3 { margin-top: .5rem; }

.site-footer { padding: 4rem 0 1.5rem; color: rgba(255,255,255,.82); background: #210510; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.site-footer h2, .site-footer h3 { color: var(--white); }
.site-footer a { color: #e8c78d; }
.partner-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: center; gap: 2rem; margin-top: 2rem; }
.partner-logo { display: flex; width: 190px; flex-direction: column; align-items: center; gap: .65rem; color: var(--white) !important; font-size: .86rem; font-weight: 700; text-align: center; }
.partner-logo img { width: 170px; height: 92px; padding: .45rem; background: var(--white); object-fit: contain; }
.partner-logo--comune img { object-position: center; }
.footer-bottom { padding-top: 1.5rem; margin-top: 3rem; border-top: 1px solid rgba(255,255,255,.15); font-size: .87rem; }

/* Matrimoni */
.wedding-hero { min-height: min(760px, calc(100vh - 84px)); }
.wedding-hero img { opacity: .78; object-position: center 58%; }
.wedding-hero::after { background: linear-gradient(90deg, rgba(38,5,20,.92) 0%, rgba(38,5,20,.57) 55%, rgba(38,5,20,.2) 100%); }
.wedding-hero .page-hero-inner { max-width: 920px; padding-bottom: clamp(4rem, 8vw, 7rem); }
.wedding-hero .hero-lead { max-width: 720px; }
.wedding-english-copy {
  padding: 1.5rem 0 0 1.5rem;
  margin-top: 2rem;
  border-left: 3px solid var(--gold);
}
.wedding-english-copy h3 { font-size: 1.45rem; }
.wedding-feature-media img { aspect-ratio: 4 / 3; }
.wedding-services-lead { max-width: 860px; }
.wedding-services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.wedding-service-card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--white);
  border: 1px solid #ded2c1;
  border-radius: var(--radius);
  box-shadow: 0 12px 35px rgba(42,24,23,.08);
}
.wedding-service-card > span { display: block; margin-bottom: 1rem; color: var(--gold); font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; font-weight: 700; }
.wedding-authority-note {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(1.5rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem);
  margin-top: 2rem;
  color: var(--white);
  background: var(--wine-dark);
  border-radius: var(--radius);
}
.wedding-authority-note .eyebrow { margin-bottom: .55rem; }
.wedding-authority-note p { margin-bottom: 0; color: rgba(255,255,255,.82); }
.wedding-gallery-section { padding: clamp(4rem, 8vw, 7.5rem) 0; color: var(--white); background: #17040c; }
.wedding-gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.wedding-gallery-heading > p { max-width: 440px; color: rgba(255,255,255,.72); }
.wedding-gallery {
  display: grid;
  grid-template-columns: 1.15fr .85fr .85fr;
  grid-template-rows: repeat(2, minmax(230px, 34vw));
  gap: .8rem;
}
.wedding-gallery figure { position: relative; min-height: 0; margin: 0; overflow: hidden; border-radius: .75rem; }
.wedding-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.wedding-gallery figure:hover img { transform: scale(1.025); }
.wedding-gallery-main { grid-row: span 2; }
.wedding-gallery-main img { object-position: center; }
.wedding-gallery-wide { grid-column: span 2; }
.wedding-gallery-landscape { display: none; }
.wedding-calendar-section { background: #fff; }
.wedding-calendar-layout { align-items: start; }
.wedding-calendar-legend { display: flex; flex-wrap: wrap; gap: 1rem 1.35rem; margin: 2rem 0 1rem; font-size: .9rem; font-weight: 700; }
.wedding-calendar-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.wedding�m-�G����ƭy�ae0d0; cursor: pointer; }
.calendar-slot.is-free:hover, .calendar-slot.is-free:focus-visible { color: var(--white); background: #356d48; outline: 2px solid #234d31; }
.calendar-slot.is-booked { color: var(--white); background: var(--wine); }
.calendar-slot.is-pending { color: #4b3700; background: #f5d96f; outline: 1px solid #c69d1b; }
.calendar-day small { display: block; margin-top: .1rem; font-size: .56rem; font-weight: 700; line-height: 1; }
.calendar-day.is-free button { color: #234d31; background: #edf6ef; outline: 1px solid #cae0d0; cursor: pointer; }
.calendar-day.is-free button:hover,
.calendar-day.is-free button:focus-visible { color: var(--white); background: #356d48; outline: 2px solid #234d31; outline-offset: 1px; }
.calendar-day.is-booked span { color: var(--white); background: var(--wine); }
.calendar-day.is-pending span { color: #4b3700; background: #f5d96f; outline: 1px solid #c69d1b; }
.calendar-day.is-past span { color: #918a83; background: #f1efec; font-weight: 500; }
.calendar-help { margin: 1rem 0 0; color: var(--muted); font-size: .82rem; text-align: center; }
.wedding-calendar-times { padding-top: 1.25rem; margin-top: 1.5rem; border-top: 1px solid #ded5c9; }
.wedding-calendar-times h4 { margin-bottom: .35rem; font-size: 1.25rem; }
.wedding-calendar-times > p { color: var(--muted); font-size: .85rem; }
.wedding-calendar-times ul { padding: 0; margin: 1rem 0 0; list-style: none; }
.wedding-calendar-times li { padding: .8rem; margin-top: .55rem; background: var(--paper); border-left: 4px solid var(--wine); border-radius: .4rem; }
.wedding-calendar-times li.is-pending { background: #fff8d9; border-left-color: #c69d1b; }
.wedding-calendar-times li > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.wedding-calendar-times li > span { display: block; color: var(--muted); font-size: .84rem; }
.wedding-calendar-times li > strong { display: block; margin-top: .2rem; color: var(--wine-dark); }
.wedding-contact-layout { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: clamp(2rem, 6vw, 5rem); }
.wedding-contact-direct { display: flex; flex-wrap: wrap; gap: 1.25rem 2.5rem; margin-top: 2rem; }
.wedding-contact-direct a { color: #f2cd8c; }
.wedding-contact-fineprint { padding-top: 1.25rem; margin-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.18); color: rgba(255,255,255,.72); font-size: .85rem; }
.wedding-form-card { padding: clamp(1.4rem, 4vw, 2.5rem); color: var(--ink); background: var(--white); border-radius: var(--radius); box-shadow: 0 25px 70px rgba(0,0,0,.28); }
.wedding-contact-form p { margin: 0 0 1.2rem; }
.wedding-contact-form label,
.wedding-contact-form legend { display: block; margin-bottom: .4rem; font-size: .88rem; font-weight: 800; }
.wedding-contact-form input[type="text"],
.wedding-contact-form input[type="email"],
.wedding-contact-form input[type="tel"],
.wedding-contact-form input[type="date"],
.wedding-contact-form textarea {
  width: 100%;
  padding: .75rem .85rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid #bfb3a5;
  border-radius: .5rem;
}
.wedding-contact-form input:focus,
.wedding-contact-form textarea:focus { border-color: var(--wine); outline: 3px solid rgba(93,12,46,.16); }
.wedding-contact-form fieldset { padding: 0; margin: .2rem 0 1.35rem; border: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form-checks { display: grid; grid-template-columns: 1fr 1fr; gap: .55rem 1rem; }
.form-checks label { display: flex; align-items: start; gap: .5rem; font-weight: 500; }
.form-checks input,
.form-consent input { margin-top: .3rem; accent-color: var(--wine); }
.form-consent label { display: flex; align-items: start; gap: .6rem; font-weight: 500; }
.form-consent > a { font-size: .82rem; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.form-message { padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-radius: .5rem; }
.form-message--success { color: #1f5130; background: #e6f3e9; border: 1px solid #a9ceb3; }
.form-message--error { color: #762120; background: #f9e8e6; border: 1px solid #e0b0aa; }
.wedding-closing-media img { aspect-ratio: 4 / 3; }

/* Widget variazioni orario in homepage */
.wedding-hours-widget .eyebrow { color: #f2cd8c; }
.wedding-hours-list { padding: 0; margin: 1.4rem 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.2); }
.wedding-hours-list li { padding: .85rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
.wedding-hours-date { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.wedding-hours-list time { font-weight: 800; text-transform: capitalize; }
.wedding-hours-list li > span { display: block; color: rgba(255,255,255,.72); font-size: .85rem; }
.wedding-hours-list strong { display: block; margin-top: .2rem; color: #f2cd8c; font-size: .95rem; }
.wedding-status-badge { display: inline-flex; padding: .2rem .55rem; color: #fff; background: var(--wine); border-radius: 999px; font-size: .68rem; font-weight: 800; line-height: 1.35; }
.is-pending .wedding-status-badge { color: #4b3700; background: #f2c94c; }
.wedding-hours-empty { padding: 1rem; background: rgba(255,255,255,.08); border-radius: .5rem; }

@media (max-width: 900px) {
  body.admin-bar .site-header { top: 46px; }
  .menu-toggle { display: inline-flex; }
  .primary-nav { position: absolute; display: none; top: 100%; right: 0; left: 0; margin: 0; padding: 1.25rem 1rem 1.5rem; background: var(--wine-dark); }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { width: min(100%, var(--max)); margin: auto; flex-direction: column; align-items: flex-start; }
  .primary-nav .sub-menu { position: static; display: flex; min-width: 0; padding: .35rem 0 .25rem 1.15rem; background: transparent; border: 0; box-shadow: none; }
  .primary-nav .sub-menu::before { display: none; }
  .quick-grid, .card-grid, .posts-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wedding-services-grid { grid-template-columns: 1fr 1fr; }
  .wedding-authority-note, .wedding-contact-layout { grid-template-columns: 1fr; }
  .wedding-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 300px); }
  .wedding-gallery-main { grid-row: span 2; }
  .wedding-gallery-wide { grid-column: auto; }
  .wedding-gallery-landscape { display: block; grid-column: span 2; }
}

@media (max-width: 620px) {
  .hero::before { background: linear-gradient(0deg, rgba(31,5,17,.9), rgba(31,5,17,.35)); }
  .quick-grid, .card-grid, .posts-grid, .price-list, .footer-grid { grid-template-columns: 1fr; }
  .quick-grid { margin-top: -1.5rem; }
  .actions .button { width: 100%; }
  .entry-content table { display: block; overflow-x: auto; white-space: nowrap; }
  .wedding-hero::after { background: linear-gradient(0deg, rgba(38,5,20,.94), rgba(38,5,20,.25)); }
  .wedding-services-grid, .form-grid, .form-checks { grid-template-columns: 1fr; }
  .wedding-gallery-heading { display: block; }
  .wedding-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 220px); }
  .wedding-gallery-main { grid-column: span 2; grid-row: auto; }
  .wedding-gallery-landscape { grid-column: span 2; }
  .wedding-calendar { padding: 1rem .55rem; }
  .calendar-table { border-spacing: .15rem; }
  .calendar-table td { height: 49px; }
  .calendar-day > span, .calendar-day > button { min-height: 49px; }
  .calendar-day small { display: none; }
  .wedding-hours-date { align-items: flex-start; flex-direction: column; }
  .content-gallery { grid-template-columns: 1fr; }
  .content-gallery img, .content-gallery--portrait img { height: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
/* Privacy e Cookie Policy */
.privacy-policy-content h2 {
  margin-top: 2.25rem;
}

.privacy-policy-content ul {
  padding-left: 1.35rem;
}

.privacy-policy-content li {
  margin-bottom: .55rem;
}

.privacy-summary,
.privacy-contact-card {
  padding: 1.2rem 1.35rem;
  border-radius: .55rem;
}

.privacy-summary {
  border-left: 4px solid var(--gold, #9a6d2f);
  background: #f7f1e8;
}

.privacy-contact-card {
  border: 1px solid #ded4c7;
  background: #fff;
}

.footer-legal-credits {
  line-height: 1.6;
}

/* Editable homepage -------------------------------------------------------
 * These rules reproduce the original front-page design with native blocks.
 * Once this one-time bridge is in place, copy, images and links can be
 * changed in the WordPress editor without touching the theme again.
 */
.editable-home {
  overflow: hidden;
}

.editable-home > .alignwide,
.editable-home .editable-story,
.editable-home .editable-updates {
  width: min(calc(100% - 2rem), var(--max));
  margin-right: auto !important;
  margin-left: auto !important;
}

.editable-home .editable-hero {
  display: grid;
  min-height: min(820px, calc(100vh - 84px)) !important;
  align-items: end;
  padding: 0;
  overflow: hidden;
  color: var(--white);
  background: var(--wine-dark);
}

.editable-home .editable-hero .wp-block-cover__background {
  opacity: 1 !important;
  background: linear-gradient(90deg, rgba(31, 5, 17, .88) 0%, rgba(31, 5, 17, .55) 48%, rgba(31, 5, 17, .12) 100%) !important;
}

.editable-home .editable-hero .wp-block-cover__inner-container {
  z-index: 1;
  width: min(calc(100vw - 2rem), 820px);
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(6rem, 11vw, 10rem) 0 clamp(5rem, 9vw, 8rem);
  color: var(--white);
}

.editable-home .editable-hero .hero-location {
  display: inline-flex;
  width: auto;
  margin: 0 0 .4rem;
  padding: .45rem .75rem;
  color: var(--white);
  background: rgba(49, 7, 24, .62);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .4rem;
  box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, .65);
}

.editable-home .editable-hero h1 {
  max-width: 780px;
  margin: 0 0 .55em;
  font-size: clamp(2.6rem, 7vw, 5.8rem) !important;
  line-height: 1.12;
}

.editable-home .editable-hero p.has-large-font-size {
  max-width: 660px;
  margin: 0 0 1.2rem;
  font-size: clamp(1.15rem, 2vw, 1.45rem) !important;
  line-height: 1.68;
}

.editable-home .editable-hero .wp-block-buttons {
  gap: .75rem;
  margin-top: 2rem;
}

.editable-home .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .8rem 1.15rem;
  border: 1px solid var(--wine);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.editable-home .editable-hero .has-oro-background-color,
.editable-home .editable-visit .has-oro-background-color {
  color: #24170e;
  background: #ddb66d !important;
  border-color: #ddb66d;
}

.editable-home .editable-hero .is-style-outline .wp-block-button__link {
  color: var(--white);
  background: transparent;
  border-color: rgba(255,255,255,.7);
}

.editable-home .editable-quick-grid {
  position: relative;
  z-index: 3;
  display: grid !important;
  width: min(calc(100% - 2rem), var(--max));
  margin: -3rem auto 0 !important;
  gap: 1.2rem !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.editable-home .editable-quick-grid > .wp-block-column {
  margin: 0;
}

.editable-home .quick-card {
  height: 100%;
  padding: 1.65rem;
  background: var(--white);
  border-top: 4px solid var(--gold);
  border-radius: .8rem;
  box-shadow: var(--shadow);
}

.editable-home .quick-card > p:first-child {
  margin: 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.editable-home .quick-card > p:first-child strong {
  display: inline;
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.editable-home .quick-card h3 {
  margin: .35rem 0 0;
  font-size: 1.35rem;
  line-height: 1.25;
}

.editable-home .quick-card > p:last-child {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.editable-home .quick-card .wp-block-buttons {
  margin-top: .8rem;
}

.editable-home .editable-story {
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.editable-home .editable-story .wp-block-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.editable-home .editable-story .wp-block-image img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.editable-home .editable-explore > .wp-block-columns {
  gap: 1.2rem;
}

.editable-home .editable-explore .wp-block-column {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.45rem;
  overflow: hidden;
  color: var(--white);
  background: var(--wine-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.editable-home .editable-explore .wp-block-column::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(0deg, rgba(30,7,16,.92), rgba(30,7,16,.08) 75%);
  content: "";
}

.editable-home .editable-explore .wp-block-image {
  position: absolute;
  inset: 0;
  margin: 0;
}

.editable-home .editable-explore .wp-block-image a,
.editable-home .editable-explore .wp-block-image img {
  display: block;
  width: 100%;
  height: 100%;
}

.editable-home .editable-explore .wp-block-image img {
  object-fit: cover;
}

.editable-home .editable-explore .wp-block-column h3,
.editable-home .editable-explore .wp-block-column > p {
  position: relative;
  z-index: 1;
}

.editable-home .editable-explore .wp-block-column h3 {
  margin: 0 0 .2rem;
}

.editable-home .editable-explore .wp-block-column > p {
  margin: 0;
  color: rgba(255,255,255,.8);
}

.editable-home .editable-visit > .wp-block-columns {
  gap: clamp(2rem, 5vw, 4.5rem);
}

.editable-home .editable-updates {
  padding-right: 0;
  padding-left: 0;
}

@media (max-width: 900px) {
  .editable-home .editable-quick-grid,
  .editable-home .editable-explore > .wp-block-columns {
    grid-template-columns: 1fr 1fr;
  }

  .editable-home .editable-story,
  .editable-home .editable-visit > .wp-block-columns {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .editable-home .editable-hero .wp-block-cover__background {
    background: linear-gradient(0deg, rgba(31,5,17,.9), rgba(31,5,17,.35)) !important;
  }

  .editable-home .editable-hero .wp-block-button,
  .editable-home .editable-hero .wp-block-button__link {
    width: 100%;
  }

  .editable-home .editable-quick-grid {
    margin-top: -1.5rem !important;
    grid-template-columns: 1fr;
  }

  .editable-home .editable-explore > .wp-block-columns {
    grid-template-columns: 1fr;
  }
}
