/* RIAN Event & Banqueting */
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/PlayfairDisplay.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/PlayfairDisplay.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/Poppins-300.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/Poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/Poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/Poppins-600.woff2") format("woff2"); }
:root {
  /* Palette tenue: salvia, carta da zucchero, rosa antico, pesca */
  --sage: #6e9484;
  --blue: #6f8faa;
  --rose: #b87878;
  --peach: #bc8062;
  --cream: #faf5ee;
  --ink: #44545b;
  --grey: #6b7a80;
  --white: #ffffff;
  --side: 270px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; }

.kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--peach);
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--side);
  background: var(--sage);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 44px 0 32px;
  z-index: 20;
}
.side-logo { display: block; padding: 0 34px; }
.side-logo img { width: 100%; }
.side-nav { list-style: none; margin-top: 56px; }
.side-nav a {
  display: block;
  padding: 13px 34px;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border-left: 4px solid transparent;
  transition: border-color 0.2s, background 0.2s;
}
.side-nav a:hover,
.side-nav a.active { border-left-color: var(--white); background: rgba(255, 255, 255, 0.18); }
.side-foot { margin-top: auto; padding: 0 34px; font-size: 0.8rem; }
.side-foot a { display: block; text-decoration: none; padding: 3px 0; }
.side-foot a:hover { text-decoration: underline; }
.side-foot .kicker { display: block; margin-bottom: 8px; color: var(--white); }
.nav-toggle { display: none; }

main { margin-left: var(--side); }

/* ---------- Mosaico ---------- */
.mosaic { display: grid; grid-template-columns: repeat(3, 1fr); }
.tile { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: block; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.tile-photo::after {
  content: attr(data-word);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(110, 148, 132, 0.88);
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 2.2rem);
  opacity: 0;
  transition: opacity 0.3s;
}
.tile-photo:hover img { transform: scale(1.05); }
.tile-photo:hover::after { opacity: 1; }
.tile-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(22px, 3vw, 44px);
  color: var(--white);
}
.tile-text .kicker { color: var(--white); }
.tile-text h1, .tile-text p.big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1.15;
  margin-top: 12px;
}
.tile-text .arrow { margin-top: 18px; font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; }
.t-rose { background: var(--rose); }
.t-blue { background: var(--blue); }
.t-peach { background: var(--peach); }
a.tile-text { transition: filter 0.2s; }
a.tile-text:hover { filter: brightness(1.06); }

/* ---------- Sezioni ---------- */
.section { padding: clamp(64px, 8vw, 110px) clamp(24px, 6vw, 84px); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 10px 0 18px; }
.section-head p { color: var(--grey); }
.bg-cream { background: var(--cream); }
.bg-blue { background: var(--blue); color: var(--white); }
.bg-blue .kicker { color: var(--white); }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 46px 64px; }
.service { border-top: 3px solid var(--rose); padding-top: 20px; display: grid; grid-template-columns: 62px 1fr; }
.service:nth-child(2) { border-top-color: var(--blue); }
.service:nth-child(3) { border-top-color: var(--sage); }
.service:nth-child(4) { border-top-color: var(--peach); }
.service .num { font-family: var(--serif); font-size: 2rem; color: var(--peach); line-height: 1; }
.service h3 { font-family: var(--sans); font-size: 0.84rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; margin: 8px 0 10px; }
.service p { color: var(--grey); font-size: 0.95rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; }
.steps li { border-top: 3px solid var(--white); padding-top: 20px; }
.steps .num { font-family: var(--serif); font-size: 3rem; color: var(--white); line-height: 1; }
.steps h3 { font-size: 1.35rem; margin: 14px 0 8px; }
.steps p { font-size: 0.95rem; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery button { border: 0; padding: 0; background: none; cursor: zoom-in; aspect-ratio: 4 / 5; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery button:hover img { transform: scale(1.04); }
.gallery button.wide { grid-column: 1 / -1; aspect-ratio: 16 / 8; }
.gallery button.wide img { object-position: center 40%; }

dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh; margin: auto; }
dialog.lightbox::backdrop { background: rgba(250, 245, 238, 0.95); }
dialog.lightbox img { max-width: 92vw; max-height: 86vh; }
dialog.lightbox button {
  display: block; margin: 12px auto 0; background: var(--sage); border: 0; color: var(--white);
  font: 600 0.72rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; padding: 10px 22px; cursor: pointer;
}

/* ---------- Preventivo ---------- */
.quote { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.quote-form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--white); border: 2px solid #e6dccd; border-radius: 0; padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sage); }
.btn {
  display: inline-block; background: var(--sage); color: var(--white); border: 0;
  font: 600 0.76rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  padding: 17px 32px; cursor: pointer; transition: background 0.2s;
}
.btn:hover { background: var(--blue); }
.form-note { font-size: 0.8rem; color: var(--grey); }
.form-status { font-size: 0.9rem; font-weight: 500; color: var(--peach); min-height: 1.4em; }
.contact-card { background: var(--rose); color: var(--white); padding: 40px 36px; }
.contact-card .kicker { color: var(--white); }
.contact-card h3 { font-size: 1.6rem; margin: 10px 0 22px; }
.contact-card dl { display: grid; gap: 18px; }
.contact-card dt { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.contact-card dd a { text-decoration: none; }
.contact-card dd a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
footer { text-align: center; font-size: 0.8rem; }
.partners { background: var(--white); border-top: 1px solid #e6dccd; padding: 48px 24px 52px; }
.partners ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 36px 84px; margin-top: 30px; }
.partners img { opacity: 0.85; transition: opacity 0.2s; }
.partners img:hover { opacity: 1; }
.partners .p-integrarent { height: 78px; }
.partners .p-artmusica { width: 250px; }
.partners .p-federicaferri { width: 250px; filter: brightness(0.5) contrast(1.15); }
.foot-main { background: var(--sage); color: var(--white); padding: 56px 24px 40px; }
.foot-main img { width: 240px; margin: 0 auto 22px; }
.foot-main p { margin-top: 4px; }
.foot-main .foot-link { margin-top: 22px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.72rem; }
.foot-main .foot-link a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.6); padding-bottom: 3px; }
.foot-main .foot-link a:hover { border-bottom-color: var(--white); }

.foot-main .foot-legal { margin-top: 18px; }
.foot-main .foot-legal a { text-decoration: underline; text-underline-offset: 3px; }
.form-note a { text-decoration: underline; }

/* ---------- Avviso cookie ---------- */
.cookie-banner {
  position: fixed; right: 24px; bottom: 24px; z-index: 40; max-width: 400px;
  background: var(--white); color: var(--ink); padding: 26px 28px;
  border-top: 4px solid var(--sage); box-shadow: 0 12px 40px rgba(68, 84, 91, 0.22);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.3rem; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.85rem; color: var(--grey); }
.cookie-banner a { text-decoration: underline; }
.cookie-banner .btn { margin-top: 16px; padding: 12px 26px; }

/* ---------- Pagina legale ---------- */
.legal { max-width: 900px; }
.legal h1 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 10px 0 18px; }
.legal h2 { font-size: 1.45rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--grey); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { text-decoration: underline; }
.legal a.btn { text-decoration: none; }
.legal code { font-size: 0.88em; background: var(--cream); padding: 2px 6px; }
.legal-back { margin-top: 44px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .quote { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 900px) {
  .sidebar {
    position: sticky; top: 0; inset: auto; width: 100%; flex-direction: row; align-items: center;
    justify-content: space-between; padding: 14px 20px; flex-wrap: wrap;
  }
  .side-logo { padding: 0; width: 170px; }
  .nav-toggle {
    display: block; background: none; border: 0; color: var(--white); cursor: pointer;
    font: 600 0.72rem var(--sans); letter-spacing: 0.2em; text-transform: uppercase; padding: 12px 6px;
  }
  .side-nav { display: none; width: 100%; margin-top: 12px; }
  .side-nav.legal-nav { display: block; width: auto; margin-top: 0; }
  .side-nav.legal-nav a { border-top: 0; padding: 8px 0; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
  .sidebar.open .side-nav { display: block; }
  .side-nav a { padding: 14px 6px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.3); }
  .side-foot { display: none; }
  main { margin-left: 0; }
  section[id] { scroll-margin-top: 60px; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-flow: dense; }
  .tile-text { grid-column: 1 / -1; aspect-ratio: auto; min-height: 220px; }
  .services, .steps { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .partners ul { gap: 28px 40px; }
}
@media (max-width: 560px) {
  .quote-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
