/*
Theme Name: Domus Bordeaux
Description: Tema istituzionale di Domus Restauri e Impianti.
Version: 1.2.0
Requires PHP: 7.4
Text Domain: domus-bordeaux
*/
:root {
  color-scheme: light;
  --ink: #272626;
  --dark: #282323;
  --brand: #851a1a;
  --brand-dark: #641313;
  --paper: #fff;
  --accent: #f5d7d4;
  --muted: #625552;
  --rule: #e7ddda;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 5px; }
:is(.hero, .contact, .footer) :focus-visible { outline-color: var(--accent); }
.wrap { width: min(88%, 1220px); margin-inline: auto; }
.skip { position: fixed; top: .6rem; left: .6rem; z-index: 10; padding: .8rem; background: white; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.header { position: sticky; top: 0; z-index: 3; background: var(--paper); border-bottom: 5px solid var(--brand); }
.navigation { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; gap: 1rem; }
.brand img { width: 154px; max-height: 58px; object-fit: contain; object-position: left center; }
.navigation nav, .footer nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.7rem, 2vw, 2rem); }
.navigation nav a { font-size: .9rem; font-weight: 650; text-decoration: none; }
.navigation nav a:hover { text-decoration: underline; }
.nav-contact, .menu { border: 1px solid var(--ink); border-radius: 99px; background: transparent; padding: .65rem 1rem; }
.hero { position: relative; display: grid; align-items: end; min-height: clamp(440px, 68svh, 670px); isolation: isolate; color: #fff; background: var(--dark); }
.hero-image, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-image { object-fit: cover; object-position: center 50%; }
.hero::after { content: ""; background: linear-gradient(90deg, rgba(33,23,24,.88), rgba(33,23,24,.57) 48%, rgba(33,23,24,.15)), linear-gradient(0deg, rgba(33,23,24,.65), transparent 35%); }
.hero-inner { padding-block: clamp(4rem, 10vh, 8rem) 3.4rem; }
.label { font-size: .75rem; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; margin: 0 0 1rem; color: var(--muted); }
.label.light { color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: "Open Sans", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -.025em;
}
h2 { font-size: clamp(2.5rem, 5.6vw, 5.15rem); line-height: 1.04; margin-bottom: 1.35rem; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); line-height: 1.12; }
.lead { font-size: clamp(1rem, 2vw, 1.27rem); line-height: 1.5; max-width: 37ch; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 1.2rem; font-weight: 700; border-radius: 4rem; padding: .95rem 1.3rem; text-decoration: none; border: 1px solid transparent; }
.primary { background: var(--brand); color: var(--paper); border-color: #ffffff70; }
.primary:hover { background: var(--brand-dark); }
.contact .primary { background: var(--paper); color: var(--brand-dark); }
.contact .primary:hover { background: var(--accent); }
.outline { border-color: #c9b8b5; }
.outline:hover { background: #ffffff1c; }
.intro { display: grid; grid-template-columns: 1fr 2.2fr; gap: 1rem; padding-block: clamp(3.5rem, 9vw, 8rem); }
.body-large { font-size: clamp(1.1rem, 2.3vw, 1.45rem); line-height: 1.55; max-width: 55ch; }
.text-link { display: inline-block; margin: .7rem 1.4rem .15rem 0; font-weight: 650; text-underline-offset: .3em; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.services, .quality { background: #f7f3f2; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.75rem; }
.service-grid article { border-top: 1px solid #cbb7b2; padding: 1.2rem 0; }
.service-grid p { color: var(--muted); line-height: 1.55; max-width: 33ch; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.8rem 0; }
.filters button { border: 1px solid #9d8984; border-radius: 2rem; padding: .55rem .9rem; background: transparent; color: var(--ink); }
.filters button[aria-pressed="true"] { background: var(--brand); color: white; }
.contact { background: var(--brand); color: var(--paper); }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.addresses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; border-top: 1px solid #ffffff50; margin-top: 3rem; padding-top: 1rem; line-height: 1.6; }
.addresses p { margin: 0; }
.footer { background: var(--brand-dark); color: var(--paper); }
.footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .7rem; padding-block: 1.3rem; font-size: .8rem; }
.footer p { margin: 0; }
@media (max-width: 760px) {
  .navigation { flex-wrap: wrap; padding-block: .6rem; min-height: 4.2rem; }
  .navigation nav { width: 100%; align-items: stretch; }
  .navigation nav a { padding: .5rem; }
  .hero { min-height: 490px; }
  .hero::after { background: linear-gradient(90deg, #211718e8, #21171870), linear-gradient(0deg, #211718bd, transparent 45%); }
  .intro, .service-grid, .addresses { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { min-height: min(520px, 80svh); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.slide-copy h1, .slide-copy h2 {
  font-size: clamp(3.4rem, 8.5vw, 8rem);
  line-height: 1.02;
  margin: 1.5rem 0;
}
.slide-copy em { color: var(--accent); font-style: normal; }
.slider-controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  padding-bottom: 1.2rem;
}
.slider-controls button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .4rem .85rem;
  border: 1px solid #fff;
  background: var(--paper);
  color: var(--brand);
  border-radius: .3rem;
}
.slider-controls button:hover { background: var(--accent); }
.projects {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-block: 1.5rem;
}
.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  background: #faf7f6;
  border: 1px solid var(--rule);
  border-bottom: 4px solid var(--brand);
}
.project-link:hover { background: #f4eae8; }
.project img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.project-info { display: flex; flex: 1; flex-direction: column; padding: 1rem; }
.project-info .label { margin-bottom: .45rem; }
.project-info h3 { font-size: 1.23rem; margin-bottom: .65rem; }
.project-info p:not(.label) { color: var(--muted); line-height: 1.45; }
.project-cta { margin-top: auto; color: var(--brand); font-weight: 700; }
.project-link:hover .project-cta { text-decoration: underline; }
@media (max-width: 1050px) {
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .projects { grid-template-columns: 1fr; }
  .project-link { display: grid; grid-template-columns: 32% 1fr; }
  .project img { height: 100%; min-height: 130px; aspect-ratio: auto; }
  .slide-copy h1, .slide-copy h2 { font-size: clamp(2.9rem, 12vw, 4rem); }
  .hero-inner { padding-bottom: 1.2rem; }
}

.interior-page { max-width: 850px; min-height: 65vh; }
.interior-page h1 { font-size: clamp(2.75rem, 7vw, 5rem); line-height: 1.03; padding-bottom: 1rem; border-bottom: 5px solid var(--brand); }
.interior-page h2 { color: var(--brand); font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 2rem; }
.interior-page p { font-size: 1.1rem; line-height: 1.65; max-width: 65ch; }
.interior-page p a { color: var(--brand); text-underline-offset: .2em; }
