
:root {
  --black: #000;
  --white: #fff;
  --gold: #c8a96e;
  --gold-light: #e8c97a;
}

/* RESET */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video {
  display: block;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 4px;
}

/* HERO VIDEO */
.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  min-height: 520px;
  width: 100%;
  overflow: hidden;
  background: #000;
}

.hero-video,
.hero-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-poster {
  opacity: 0;
  transition: opacity .3s;
}

.hero.show-fallback .hero-poster {
  opacity: 1;
  z-index: 1;
}

.hero.show-fallback .hero-video {
  opacity: 0;
}

.hero-shade,
.hero-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.hero-shade {
  background: rgba(0, 0, 0, .35);
}

.hero-vignette {
  background: radial-gradient(
    ellipse at center,
    transparent 30%,
    rgba(0, 0, 0, .45) 100%
  );
}

/* HERO LOGO */
.hero-logo {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 32px;
  transform: translateX(-50%);
}

.hero-logo img {
  height: 80px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.fade-in-on-ready {
  opacity: 0;
  transition: opacity .5s ease;
}

.hero.is-ready .fade-in-on-ready {
  opacity: 1;
}

/* HERO CONTENT */
.hero-center {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  height: 100%;
  padding: 24px;
}

.hero h1 {
  margin: 0;
  color: #fff;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(2.25rem, 7vw, 4.75rem);
  font-weight: 500;
  line-height: .95;
  letter-spacing: -.02em;
}

.hero h1 span {
  display: block;
}

/* MENU E PRENOTA */
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 60px;
}

.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  min-width: 170px;
  padding: 0 32px;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(0, 0, 0, .2);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .2em;
  transition: border .2s, background .2s;
}

.outline-button:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .1);
}

/* TRADIZIONE / INNOVAZIONE */
.split-section {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 500px;
  overflow: hidden;
  background: #000;
  user-select: none;
}

.split-stage {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.split-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.split-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.split-base img {
  filter: grayscale(1);
}

.split-color {
  clip-path: inset(0 0 0 100%);
  transition: clip-path .2s ease-out;
}

.split-stage.dragging .split-color {
  transition: none;
}

/* SPLIT HANDLE */
.split-handle-hit {
  position: absolute;
  z-index: 10;
  left: 100%;
  top: 0;
  width: 56px;
  height: 100%;
  transform: translateX(-50%);
  touch-action: none;
  cursor: ew-resize;
}

.split-line {
  position: absolute;
  left: 100%;
  top: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 0 18px rgba(255, 255, 255, .45);
  pointer-events: none;
  transition: left .2s;
}

.split-handle-visual {
  position: absolute;
  z-index: 9;
  left: 100%;
  top: 50%;
  display: flex;
  gap: 8px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left .2s;
}

.split-handle-visual span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  font-size: 18px;
  line-height: 1;
}

.split-stage.dragging .split-line,
.split-stage.dragging .split-handle-visual {
  transition: none;
}

/* SPLIT TEXT */
.split-text {
  position: absolute;
  z-index: 5;
  max-width: 44%;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 18px;
  letter-spacing: .16em;
  pointer-events: none;
  transition: opacity .2s;
}

.split-text-tradition {
  top: 154px;
  right: calc(50% + 45px);
  text-align: right;
}

.split-text-innovation {
  top: 400px;
  left: calc(50% + 33px);
  text-align: left;
  opacity: 0;
}

/* CHI SIAMO */
.split-about-button {
  position: absolute;
 cursor: pointer;
  pointer-events: auto;
  bottom: 111px;
  left: 50%;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  min-height: 44px;
  min-width: 150px;
  padding: 0 28px;
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  transition: all .2s;
    font-family: Arial, Helvetica, sans-serif;
  touch-action: manipulation;
}

.split-about-button.is-dark {
  border-color: rgba(255, 255, 255, .7);
  background: rgba(0, 0, 0, .55);
  color: #fff;
}

.split-about-button.is-dragging {
  border-color: var(--gold);
  background: var(--gold);
  color: #000;
  box-shadow: 0 0 20px rgba(200, 169, 110, .45);
}

/* FEATURE GRID */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  background: #000;
}

.feature-card {
  position: relative;
  min-height: 80vh;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s ease;
  transform-origin: center;
}

.feature-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.42);
  transition: transform .5s ease, filter .5s ease;
}

.feature-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  transition: background .5s;
}

.feature-copy {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100%;
  min-height: 80vh;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  transition: transform .5s;
}

.feature-copy h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.6vw, 2.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.01em;
}

.feature-copy p {
  max-width: 34rem;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .95);
}

.feature-card.is-active > img,
.feature-card:hover > img {
  transform: scale(1.08);
  filter: brightness(1);
}

.feature-card.is-active .feature-overlay,
.feature-card:hover .feature-overlay {
  background: rgba(0, 0, 0, .1);
}

/* FOOTER */
.footer {
  display: flex;
  align-items: center;
  min-height: 75vh;
  padding: 56px 24px;
  background: #000;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  width: 100%;
  max-width: 1280px;
  margin: auto;
}

.footer-column {
  text-align: center;
}

.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
}

.footer-icon svg {
  width: 32px;
  height: 32px;
  stroke: #fff;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-column h2 {
  margin: 20px 0 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.footer-detail {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 16px;
  color: rgba(255, 255, 255, .9);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 1s,
    visibility 1s,
    transform 1s;
}

.footer-detail p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
}

.footer-detail a {
  font-size: 15px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.footer-detail a:hover {
  text-decoration: underline;
}

.footer.revealed .footer-detail,
.footer-column:hover .footer-detail,
.footer-column:focus-within .footer-detail {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* FOOTER BOTTOM */
.footer-bottom {
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  text-align: center;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .12em;
}

.footer-bottom p + p {
  margin-top: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, .4);
}

.footer-bottom a:hover {
  text-decoration: underline;
  color: #fff;
}

/* TABLET PICCOLI */
@media (min-width: 640px) {
  .hero-logo {
    top: 40px;
  }

  .hero-logo img {
    height: 96px;
    max-width: 270px;
  }

  .hero-actions {
    flex-direction: row;
    gap: 20px;
  }

  .feature-copy {
    padding: 32px;
  }

  .feature-copy p {
    font-size: 15px;
  }
}

/* TABLET E DESKTOP */
@media (min-width: 768px) {
  .hero {
    min-height: 620px;
  }

  .hero-video,
  .hero-poster {
    object-position: center 48%;
  }

  .split-stage {
    cursor: ew-resize;
    touch-action: none;
  }

  .split-text {
    font-size: 43px;
    letter-spacing: .18em;
  }

  .split-text-tradition {
    top: 119px;
    right: calc(50% + 245px);
  }

  .split-text-innovation {
    top: auto;
    bottom: 255px;
    left: calc(50% + 165px);
  }

  .split-about-button {
    bottom: 129px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    padding: 64px 56px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* DESKTOP */
@media (min-width: 1024px) {
  .hero-logo {
    top: 8px;
  }

  .feature-card:hover {
    z-index: 2;
    transform: translateY(-12px) scale(1.05);
  }

  .feature-card:hover .feature-copy {
    transform: translateY(-4px);
  }

  .feature-card.is-active:not(:hover) > img {
    transform: none;
    filter: brightness(.42);
  }

  .feature-card.is-active:not(:hover) .feature-overlay {
    background: rgba(0, 0, 0, .45);
  }
}

/* DESKTOP GRANDI */
@media (min-width: 1280px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  /* 3 colonne invece di 4 */
  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-column {
    text-align: left;
  }

  .footer-icon {
    margin-left: 0;
  }
}

/* SMARTPHONE PICCOLI */
@media (max-width: 380px) {
  .split-text {
    font-size: 14px;
  }

  .split-text-tradition {
    right: calc(50% + 30px);
  }

  .split-text-innovation {
    left: calc(50% + 25px);
  }
}

/* ACCESSIBILITA' */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* PERGAMENA - LA NOSTRA STORIA */

.story-dialog {
  position: fixed;
 z-index: 1000;
  inset: 0;
  width: min(92%, 720px);
  max-width: 720px;
  max-height: 90dvh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #382718;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 25px 90px rgba(0,0,0,.65);
}

.story-dialog::backdrop {
  background: rgba(0,0,0,.83);
  backdrop-filter: blur(7px);
}

.story-dialog[open] {
  animation: storyAppear .45s ease both;
}

@keyframes storyAppear {
  from {
    opacity: 0;
    transform: translateY(35px) scale(.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* CARTA ANTICA */

.story-parchment {
  position: relative;
  min-height: 100%;
  padding: 62px 52px 48px;

  background:
    radial-gradient(
      ellipse at 50% 40%,
      rgba(255,250,219,.85),
      transparent 75%
    ),
    radial-gradient(
      ellipse at 0% 0%,
      rgba(139,87,35,.22),
      transparent 40%
    ),
    radial-gradient(
      ellipse at 100% 100%,
      rgba(139,87,35,.25),
      transparent 45%
    ),
    linear-gradient(
      135deg,
      #d4b576 0%,
      #f2dfae 18%,
      #ebd49c 52%,
      #c8a36d 100%
    );

  box-shadow:
    inset 0 0 65px rgba(93,56,20,.2),
    inset 0 0 12px rgba(91,55,18,.25);
}

/* BORDO DECORATIVO */

.story-parchment::before {
  content: "";
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(100,65,30,.38);
  pointer-events: none;
}

/* CONTENUTO */

.story-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  margin: auto;
  text-align: center;
}

.story-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .28em;
  color: #806139;
}

.story-content h2 {
  margin: 0;
  color: #49301b;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 400;
  font-style: italic;
  line-height: 1.1;
}

.story-subtitle {
  margin: 20px 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .2em;
  color: #8a6a40;
}

.story-ornament {
  margin: 24px auto;
  color: #9a713b;
  font-size: 22px;
}

.story-content > p:not(.story-eyebrow):not(.story-subtitle):not(.story-signature) {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px;
  line-height: 1.85;
  color: #49321f;
}

.story-content > p {
  margin-top: 0;
  margin-bottom: 22px;
}

.story-content strong {
  font-weight: 700;
  color: #342113;
}

.story-content .story-intro {
  font-style: italic;
  font-size: 21px !important;
  line-height: 1.65 !important;
  margin-bottom: 34px !important;
}

.story-content .story-ending {
  margin-top: 34px !important;
  font-style: italic;
  font-size: 21px !important;
  line-height: 1.6 !important;
}

.story-signature {
  margin: 12px 0 0;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  color: #73512e;
}

/* PULSANTE CHIUSURA */

.story-close {
  position: absolute;
  top: 24px;
  right: 27px;
  z-index: 5;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(80,52,24,.35);
  border-radius: 50%;
  background: rgba(245,225,178,.65);
  color: #49301b;
  font-family: Arial, sans-serif;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, transform .2s;
}

.story-close:hover {
  background: #f9e6b8;
  transform: rotate(90deg);
}

.story-close:focus-visible {
  outline: 2px solid #49301b;
  outline-offset: 3px;
}

/* SMARTPHONE */

@media (max-width: 600px) {
  .story-dialog {
    width: 94%;
    max-height: 88dvh;
  }

  .story-parchment {
    padding: 65px 26px 35px;
  }

  .story-parchment::before {
    inset: 10px;
  }

  .story-content > p:not(.story-eyebrow):not(.story-subtitle):not(.story-signature) {
    font-size: 15px;
    line-height: 1.75;
  }

  .story-content .story-intro,
  .story-content .story-ending {
    font-size: 18px !important;
  }

  .story-close {
    top: 17px;
    right: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-dialog[open] {
    animation: none;
  }
}
