@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dm-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Fleur De Leah";
  src: url("assets/fonts/fleur-de-leah.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  --paper: #faf9f7;
  --white: #fff;
  --ink: #231e20;
  --muted: #62585c;
  --wine: #713743;
  --rose: #a05263;
  --light-rose: #efb0b7;
  --line: #e7e1dd;
  --work: #f3eeeb;
  --display: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --script: "Fleur De Leah", Georgia, serif;
  --shell: min(100% - 64px, 1328px);
  --content: min(100% - 116px, 1184px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--display);
  text-rendering: optimizeLegibility;
}

body:has(.project-dialog[open]) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p, h1, h2, h3, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #a04d62; outline-offset: 5px; }
::selection { background: #f1c3c9; color: #29171b; }

.skip-link {
  position: fixed;
  inset: 10px auto auto 12px;
  z-index: 10;
  transform: translateY(-160%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 17px;
  border-radius: 999px;
}
.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }
.content-shell { width: var(--content); margin-inline: auto; }
section[id] { scroll-margin-top: 96px; }
#inizio { scroll-margin-top: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(250 249 247 / .93);
  border-bottom: 1px solid rgb(50 32 37 / .055);
  backdrop-filter: blur(18px);
}
.header-inner {
  position: relative;
  width: var(--shell);
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark { display: inline-grid; width: fit-content; align-content: center; gap: 4px; }
.wordmark-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 1.18rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.052em;
  white-space: nowrap;
}
.brand-dot, .label-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}
.wordmark-studio {
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3.1vw, 46px);
  font-size: .91rem;
  font-weight: 600;
}
.nav a:not(.button):hover, .contact-line:hover { color: var(--rose); }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  width: fit-content;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: .91rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  text-align: center;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); }
.button-ink { background: var(--ink); color: var(--white); }
.button-ink:hover { background: var(--wine); }
.button-white { background: #fffaf8; color: #261a1c; }
.button-white:hover { background: #f5d9de; }
.button-glass { border-color: rgb(255 250 249 / .46); color: #fffaf8; background: rgb(21 10 13 / .21); }
.button-glass:hover { background: rgb(255 250 249 / .17); border-color: #fffaf8; }
.button-outline { border-color: #d8cdca; background: transparent; color: var(--ink); }
.button-outline:hover { background: #f5e8e9; border-color: #caa6ae; }
.nav-contact { min-height: 41px; padding-inline: 20px; }

.hero { margin-top: 17px; }
.hero-panel {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  min-height: clamp(560px, 43vw, 648px);
  border-radius: 30px;
  background: #240f15;
  color: #fffaf8;
}
.hero-photo, .hero-panel::after { position: absolute; inset: 0; z-index: -1; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 54% 54%; }
.hero-panel::after {
  content: "";
  background: linear-gradient(90deg, rgb(18 8 11 / .77) 0%, rgb(23 9 14 / .51) 40%, transparent 72%);
}
.hero-content {
  position: relative;
  width: min(58%, 710px);
  padding: 70px 0 72px clamp(40px, 6.3vw, 93px);
}
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .69rem;
  line-height: 1.35;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--wine);
}
.hero-label { color: #ffe5e7; }
.hero-label .label-dot, .contact-panel .label-dot { background: var(--light-rose); }
.hero h1 {
  margin-top: 18px;
  font-size: clamp(4rem, 6.5vw, 6.25rem);
  font-weight: 600;
  letter-spacing: -.081em;
  line-height: .96;
}
.hero h1 em {
  display: inline-block;
  font-family: var(--script);
  font-size: 1.055em;
  font-weight: 400;
  font-style: normal;
  letter-spacing: -.027em;
  line-height: .98;
  color: #f5b9c2;
  white-space: nowrap;
  padding-right: .12em;
  margin-left: -.014em;
}
.hero-description {
  max-width: 390px;
  margin-top: 23px;
  color: #f3e5e6;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.58;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 27px; }

.brands {
  display: grid;
  justify-items: center;
  gap: 20px;
  padding: 29px 0 35px;
  border-bottom: 1px solid var(--line);
}
.brands .section-label { color: #66595d; text-align: center; font-size: .65rem; }
.brand-list {
  width: 100%;
  max-width: 850px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr 1fr;
  align-items: center;
  justify-items: center;
  gap: 19px 34px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.brand-list li { min-width: 0; min-height: 44px; display: grid; place-items: center; }
.brand-logo { height: auto; object-fit: contain; }
.logo-lombarda { width: clamp(110px, 12vw, 152px); }
.logo-audi { width: 74px; }
.logo-cupra { width: 53px; }
.logo-vw, .logo-bmw { width: 43px; }

.services { padding: 92px 0 102px; }
.section-header { max-width: 760px; margin-bottom: 34px; }
.section-header h2, .about h2, .contact h2 {
  margin-top: 13px;
  font-weight: 600;
  font-size: clamp(3rem, 5.1vw, 5rem);
  line-height: .99;
  letter-spacing: -.076em;
}
.section-header > p:not(.section-label), .section-header-split > p {
  max-width: 490px;
  margin-top: 16px;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.54;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
}
.service-card {
  grid-column: span 5;
  display: grid;
  grid-template-rows: 252px 1fr;
  background: var(--white);
  border: 1px solid #eee9e5;
  border-radius: 24px;
  overflow: hidden;
}
.service-card-events, .service-card-qr { grid-column: span 7; }
.service-image, .qr-visual { overflow: hidden; position: relative; background: #dcc0b5; }
.service-image img, .qr-background, .project-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-events img { object-position: 50% 59%; }
.service-card-design img { object-position: 50% 58%; }
.service-card-team img { object-position: 50% 47%; }
.qr-background { object-position: 50% 46%; }
.qr-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  isolation: isolate;
  padding: 14px clamp(22px, 6vw, 90px);
}
.qr-background { position: absolute; inset: 0; z-index: -1; }
.qr-ticket {
  width: 128px;
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  padding: 8px 8px 11px;
  background: #fffdf9;
  border: 1px solid #fff;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgb(49 23 22 / .18);
  transform: rotate(-5deg);
}
.qr-ticket img { width: 111px; height: 111px; }
.qr-ticket figcaption { color: #514046; font-size: .68rem; font-weight: 700; }
.service-copy { padding: 25px clamp(22px, 2.4vw, 32px) 28px; }
.service-copy h3, .project-copy h3 {
  font-weight: 700;
  font-size: clamp(1.55rem, 2.23vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}
.service-copy p, .project-copy > p:not(.project-brand) {
  margin-top: 10px;
  max-width: 48ch;
  font-size: .99rem;
  line-height: 1.55;
  color: var(--muted);
}

.work { position: relative; background: var(--work); padding-bottom: 85px; }
.brush-divider {
  position: absolute;
  inset: auto 0 calc(100% - 1px);
  height: clamp(28px, 5.1vw, 76px);
  pointer-events: none;
  overflow: hidden;
}
.brush-divider svg { width: 100%; height: 100%; display: block; }
.brush-main { fill: var(--work); }
.brush-soft { fill: #eadcda; opacity: .73; }
.work-inner { padding-top: 43px; }
.section-header-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, .9fr);
  align-items: end;
  gap: 28px;
  margin-bottom: 34px;
}
.section-header-split > p { margin-bottom: 4px; }
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.project-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  border-radius: 22px;
  background: #fffdfa;
  border: 1px solid #ebe4df;
}
.project-photo { background: #3f3032; overflow: hidden; aspect-ratio: 1.14; }
.project-photo img { transition: transform .42s cubic-bezier(.2,.7,.24,1); }
.project-photo-audi img { object-position: 51% 53%; }
.project-photo-bmw img { object-position: 59% 54%; }
@media (hover: hover) {
  .project-card:hover .project-photo img { transform: scale(1.055); }
}
.project-card:focus-within .project-photo img { transform: scale(1.055); }
.project-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 21px 17px 18px; }
.project-brand {
  min-height: 27px;
  color: var(--wine);
  font-weight: 700;
  font-size: .66rem;
  letter-spacing: .09em;
  line-height: 1.25;
  text-transform: uppercase;
}
.project-copy h3 { font-size: clamp(1.24rem, 1.75vw, 1.65rem); }
.project-copy > p:not(.project-brand) { font-size: .88rem; margin-bottom: 17px; }
.project-copy .button { margin-top: auto; min-height: 40px; padding: 8px 15px; font-size: .83rem; }

.sponsor-card {
  margin-top: 18px;
  padding: clamp(26px, 4.4vw, 58px);
  border-radius: 23px;
  color: #fff7f5;
  background: #472630 radial-gradient(ellipse at 100% 100%, #63333e 0%, transparent 73%);
}
.sponsor-card .section-label { color: #f6ccd3; }
.sponsor-card .label-dot { background: var(--light-rose); }
.sponsor-card h3 {
  margin-top: 10px;
  font-size: clamp(1.9rem, 4.4vw, 3.5rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -.071em;
}
.sponsor-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 27px 0 0;
  padding: 0;
  list-style: none;
}
.sponsor-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding-top: 16px;
  border-top: 1px solid rgb(255 247 245 / .24);
}
.sponsor-list img {
  max-width: 48px;
  max-height: 32px;
  height: auto;
  width: auto;
  filter: brightness(0) invert(1);
}
.sponsor-list strong { font-size: .98rem; line-height: 1.25; }
.sponsor-list p { margin-top: 3px; color: #f0dade; font-size: .81rem; line-height: 1.35; }

.about {
  padding: 99px 0 91px;
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, .67fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(23px, 3.4vw, 48px);
}
.about h2 { font-size: clamp(3rem, 5.7vw, 5.55rem); }
.about-portrait {
  width: 100%;
  max-width: 270px;
  margin-inline: auto;
  border-radius: 22px;
  overflow: hidden;
  background: #eae4dd;
}
.about-portrait img { width: 100%; height: auto; }
.text-dot { color: var(--rose); }
.about-studio { margin-top: 19px; color: var(--wine); font-size: .91rem; font-weight: 700; }
.about-copy { max-width: 505px; color: #4e4448; font-size: clamp(1.08rem, 1.65vw, 1.25rem); line-height: 1.62; }
.about-copy p + p { margin-top: 16px; }

.contact-panel {
  padding: clamp(35px, 6.5vw, 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(230px, .75fr);
  align-items: center;
  gap: 38px;
  border-radius: 28px;
  color: #fff8f5;
  background: #21191c radial-gradient(ellipse at 0 100%, #4a2631, transparent 63%);
}
.contact-panel .section-label { color: #f4cad1; }
.contact h2 { font-size: clamp(2.45rem, 5.35vw, 5rem); }
.contact-panel > div > p:last-child { margin-top: 16px; color: #e4cfd3; }
.contact-details { display: grid; gap: 7px; font-style: normal; font-size: .96rem; overflow-wrap: anywhere; }
.contact-details .button { margin-bottom: 7px; }
.contact-details > p { margin-top: 6px; color: #e4cfd3; }
.contact-line { width: fit-content; min-height: 28px; line-height: 1.55; }
.contact-line:hover { color: #f7c4ce; }
.hero-panel :focus-visible, .contact-panel :focus-visible { outline-color: #ffc3ce; }

.site-footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
}
.site-footer > p { font-size: .84rem; color: var(--muted); }

.project-details-fallback { margin-top: 45px; }
.project-detail {
  background: #fffdfa;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  scroll-margin-top: 90px;
}
.project-detail + .project-detail { margin-top: 10px; }
.project-detail h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 6vw, 3.35rem);
  letter-spacing: -.067em;
  line-height: 1.02;
  font-weight: 650;
}
.project-detail > p:not(.section-label) { color: var(--muted); margin-top: 13px; }
.project-detail .detail-credit { font-size: .82rem; }

.project-dialog {
  position: fixed;
  width: min(100% - 32px, 635px);
  max-height: calc(100% - 32px);
  margin: auto;
  border: 1px solid #eadfdb;
  border-radius: 25px;
  background: #fffdfa;
  color: var(--ink);
  padding: 0;
  box-shadow: 0 22px 100px rgb(24 9 13 / .24);
}
.project-dialog::backdrop { background: rgb(22 15 18 / .58); backdrop-filter: blur(5px); }
.dialog-inner { display: grid; gap: 15px; padding: clamp(18px, 4vw, 32px); }
.dialog-inner form { justify-self: end; }
.dialog-inner .project-detail { padding: 0 5px 7px; border: none; }
.close-dialog { min-height: 40px; padding: 8px 15px; }
.dialog-image { width: 100%; height: auto; max-height: 245px; object-fit: cover; border-radius: 15px; margin-bottom: 19px; }

@media (max-width: 1000px) {
  :root { --shell: calc(100% - 48px); --content: calc(100% - 72px); }
  .hero-content { width: min(65%, 650px); }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-photo { aspect-ratio: 1.52; }
  .project-copy { padding: 22px; }
  .project-copy h3 { font-size: 1.6rem; }
  .project-brand { min-height: 23px; }
}

@media (max-width: 760px) {
  :root { --shell: calc(100% - 32px); --content: calc(100% - 40px); }
  .header-inner { min-height: 64px; }
  section[id] { scroll-margin-top: 82px; }
  .nav { gap: 17px; font-size: .82rem; }
  .hero { margin-top: 13px; }
  .hero-panel { min-height: 530px; border-radius: 24px; }
  .hero-content { padding-left: 30px; width: 68%; }
  .hero h1 { font-size: clamp(3.55rem, 9vw, 5rem); }
  .services { padding: 68px 0 76px; }
  .service-card { grid-column: span 6; grid-template-rows: 210px 1fr; }
  .service-copy { padding: 20px; }
  .brand-list { gap: 16px 24px; }
  .work-inner { padding-top: 34px; }
  .work { padding-bottom: 62px; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(0, .72fr); gap: 26px; padding: 68px 0; }
  .about-portrait { grid-column: 2; grid-row: 1 / 3; }
  .about-copy { grid-column: 1; }
  .contact-panel { gap: 24px; padding: 35px; }
}

@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; gap: 0; }
  .nav { width: 100%; display: grid; gap: 0; padding: 4px 0 11px; }
  .nav > a { min-height: 44px; display: flex; align-items: center; padding: 8px 10px; }
  .nav > .nav-contact { margin: 5px 0; padding-inline: 16px; }
  .js .header-inner { flex-wrap: nowrap; }
  .js .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid #ded2d3;
    border-radius: 999px;
    padding: 0 15px;
    background: #fffdfa;
    font-size: .88rem;
    font-weight: 700;
    cursor: pointer;
  }
  .js .nav {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: min(100%, 270px);
    padding: 10px;
    border: 1px solid #e6ddda;
    border-radius: 17px;
    background: #fffdfa;
    box-shadow: 0 14px 40px rgb(34 21 24 / .11);
  }
  .js .nav.is-open { display: grid; }
  .hero-panel { align-items: end; min-height: 550px; }
  .hero-photo img { object-position: 53% 26%; }
  .hero-panel::after {
    background: linear-gradient(180deg, transparent 8%, rgb(21 9 13 / .12) 25%, rgb(24 11 15 / .76) 57%, #211016 96%);
  }
  .hero-content { width: 100%; padding: 190px 24px 30px; }
  .hero h1 { font-size: clamp(3.3rem, 10.8vw, 4.15rem); margin-top: 13px; }
  .hero h1 em { margin-left: .13em; }
  .hero-description { margin-top: 16px; }
  .hero-actions { margin-top: 21px; gap: 8px; }
  .hero-actions .button { padding-inline: 14px; }
  .brands { padding: 23px 0 25px; gap: 13px; }
  .brand-list { gap: 10px 15px; grid-template-columns: 1.3fr repeat(4, 1fr); }
  .brand-list li { min-height: 36px; width: 100%; }
  .logo-lombarda { width: min(100%, 96px); }
  .logo-audi { width: min(100%, 55px); }
  .logo-cupra { width: min(100%, 34px); }
  .logo-vw, .logo-bmw { width: min(100%, 32px); }
  .section-header { margin-bottom: 24px; }
  .section-header-split { grid-template-columns: 1fr; gap: 0; }
  .sponsor-list { grid-template-columns: 1fr; gap: 12px; margin-top: 21px; }
  .sponsor-list li { grid-template-columns: 48px minmax(0, 1fr); }
  .sponsor-list img { max-width: 41px; max-height: 27px; }
  .about { grid-template-columns: minmax(0, 1fr) minmax(91px, .38fr); column-gap: 16px; row-gap: 23px; }
  .about-portrait { grid-column: 2; grid-row: 1; border-radius: 15px; }
  .about-copy { grid-column: 1 / -1; }
  .contact-panel { grid-template-columns: 1fr; gap: 26px; padding: 30px 25px; border-radius: 23px; }
  .site-footer { min-height: 0; align-items: flex-start; flex-direction: column; gap: 11px; padding: 24px 0 27px; }
}

@media (max-width: 510px) {
  .service-grid, .project-grid { grid-template-columns: 1fr; }
  .service-card { grid-column: auto; grid-template-rows: 195px 1fr; border-radius: 19px; }
  .project-card { border-radius: 19px; }
  .project-photo { aspect-ratio: 1.62; }
  .project-copy { padding: 18px 19px; }
  .project-copy > p:not(.project-brand) { font-size: .94rem; }
}

@media (max-width: 360px) {
  :root { --shell: calc(100% - 24px); --content: calc(100% - 30px); }
  .hero-content { padding-inline: 17px; }
  .hero h1 { font-size: 3.07rem; }
  .hero-actions .button { font-size: .81rem; padding-inline: 12px; }
  .hero-label { letter-spacing: .10em; }
  .section-header h2, .about h2 { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .button:hover, .project-card:hover .project-photo img, .project-card:focus-within .project-photo img { transform: none; }
}
