/* ================================================================== */
/* VARIABILI GLOBALI E RESET BASE
================================================================== */
:root {
  --rosso: #bd1212;
  --rosso-light: #ff3131;
  --bianco: #ffffff;
  --nero: #000000;
  --grigio-light: #EDF8F9;
  --container-max: 1400px;
  --transition: all 0.3s ease;
  --header-height: 80px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100vh;
  font-family: 'bodoniroman', serif;
  background: var(--bianco);
  color: var(--nero);
  overflow-x: hidden;
}

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

/* ================================================================== */
/* FONT IMPORTS
================================================================== */
@font-face {
  font-family: 'Alice';
  src: url('font/Alice.ttf') format('truetype');
}

@font-face {
  font-family: 'amster';
  src: url('font/amster.ttf') format('truetype');
}

@font-face {
  font-family: 'Bodonibold';
  src: url('font/BodoniFLF-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'bodoniroman';
  src: url('font/BodoniFLF-Roman.ttf') format('truetype');
}

@font-face {
  font-family: 'PL';
  src: url('font/Pl.ttf') format('truetype');
}

@font-face {
  font-family: 'Didot';
  src: url('font/Didot.otf') format('opentype');
}

@font-face {
  font-family: 'DidotDisplayLP';
  src: url('font/DidotDisplay.ttf') format('truetype');
}

@font-face {
  font-family: 'Poppinsbold';
  src: url('font/Poppins-Bold.ttf') format('truetype');
}

@font-face {
  font-family: 'PoppinsSemiBold';
  src: url('font/Poppins-SemiBold.ttf') format('truetype');
}

@font-face {
  font-family: 'Zing';
  src: url('font/Zing.ttf') format('truetype');
}

/* ================================================================== */
/* HEADER NON FISSO (SCOMPARE QUANDO SCORRI GIÙ)
================================================================== */
.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: var(--bianco);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  padding: 0 clamp(20px, 5vw, 40px);
  height: 100%;
}

.logo {
  font-family: Didot, serif;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--nero);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}

.nav-links a {
  font-family: 'Zing', serif;
  font-size: clamp(0.85rem, 1.1vw, 1.05rem);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--nero);
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--rosso);
}

.nav-cta-header {
  background-color: var(--rosso);
  color: #ffffff !important;
  padding: 8px 18px;
  border: 1px solid var(--rosso);
  font-family: 'Zing', serif;
  transition: var(--transition);
}

.nav-cta-header:hover {
  background-color: #000000;
  border-color: #000000;
  color: #ffffff !important;
}

/* ================================================================== */
/* CONTENITORE PRINCIPALE E LAYOUT
================================================================== */
.CP {
  position: relative;
  width: 100%;
  min-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: 100px;
}

/* Rimozione definitiva della sezione numeri */
.Numeri {
  display: none !important;
}

/* COLLAGE IMMAGINI */
.immagini {
  position: absolute;
  top: calc(var(--header-height) + 180px);
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 0;
  z-index: 1;
}

.immagini img {
  width: 250px;
  height: auto;
  display: block;
}

.Ponte { z-index: 1; }
.Bianca { z-index: 3; }
.Laura { z-index: 2; }

.rettangolorosso {
  position: absolute;
  top: calc(var(--header-height) + 700px);
  left: 0;
  width: 750px;
  height: 90px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background-color: rgba(189, 18, 18, 0.6);
  padding-left: 200px;
  box-sizing: border-box;
}

.paragrafo1 {
  font-family: bodoniroman, serif;
  font-size: 13px;
  color: var(--bianco);
  font-weight: 100;
  transition: all 0.3s ease;
  margin: 0;
  padding: 5px 10px;
  display: inline-block;
}

.paragrafo1:hover {
  font-family: DidotDisplayLP, serif;
  font-style: italic;
  color: var(--nero);
  background-color: var(--bianco);
  font-size: 15px;
}

/* TITOLO E SPECIAL DAY */
.rettangoloTP {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 40px;
  margin-top: 10px;
  color: var(--rosso);
  pointer-events: none;
}

.rettangoloTP * {
  pointer-events: auto;
}

.TitoloP {
  font-family: Didot, serif;
  font-weight: 100;
  font-size: clamp(3rem, 10rem, 11rem);
  color: var(--rosso);
  margin: 0;
  line-height: 0.9;
}

.special {
  position: absolute;
  top: 170px;
  left: 800px;
  font-size: clamp(12px, 15px, 15px);
  font-family: bodoniroman, serif;
  transition: var(--transition);
  margin: 0;
}

.special:hover {
  color: var(--rosso);
}

/* BARRA VERTICALE LATERALE */
.rettangoloverticale1 {
  position: absolute;
  right: 0;
  top: 0;
  width: 60px;
  height: 100%;
  background-color: rgba(189, 18, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  z-index: 100;
}

.paragrafo2 {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  color: var(--bianco);
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
  z-index: 101;
  white-space: nowrap;
}

/* ================================================================== */
/* FORM CONTATTI (STABILE)
================================================================== */
.form-destra {
  position: absolute;
  top: calc(var(--header-height) + 300px);
  left: 800px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 10;
  width: 320px;
  color: var(--nero);
}

.form-row {
  display: flex;
  gap: 10px;
  font-size: 18px;
  width: 100%;
}

.form-row input,
.form-row select,
.Commento {
  outline: none;
  padding: 10px 12px;
  font-size: 16px;
  font-family: Didot, serif;
  box-sizing: border-box;
  color: var(--nero);
  background-color: var(--grigio-light);
  border: 1px solid transparent;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.2s ease;
}

.form-row input:focus,
.form-row select:focus,
.Commento:focus {
  border-color: var(--rosso);
}

.form-row input::placeholder,
.form-row select::placeholder,
.Commento::placeholder {
  color: var(--nero);
  transition: opacity 0.2s;
}

.form-row input:focus::placeholder,
.Commento:focus::placeholder {
  opacity: 0;
}

.form-row select option {
  color: var(--nero);
  background-color: var(--grigio-light);
}

.form-row select option[disabled] {
  color: rgba(0, 0, 0, 0.3);
}

.Commento {
  font-family: DidotDisplayLP, serif;
  font-weight: 100;
  font-size: 16px;
  height: 150px;
  resize: none;
}

.form-row button {
  width: 100%;
  padding: 12px;
  font-size: 20px;
  background-color: var(--rosso);
  color: var(--bianco);
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: Didot, serif;
  font-weight: 100;
  transition: var(--transition);
}

.form-row button:hover {
  background-color: #000000;
}

.swap-text .hover {
  display: none;
}

.swap-text:hover .default {
  display: none;
}

.swap-text:hover .hover {
  display: inline;
  font-family: Didot, serif;
  font-size: 20px;
  font-weight: 100;
}

/* ================================================================== */
/* MEDIA QUERIES & RESPONSIVE DESIGN
================================================================== */

@media (max-width: 767px) {
  :root {
    --header-height: 70px;
  }

  .logo {
    font-size: 0.85rem;
    letter-spacing: 1px;
  }

  .nav-links {
    gap: 8px;
  }

  .nav-links a {
    font-size: 0.7rem;
    letter-spacing: 0.5px;
  }

  .nav-cta-header {
    display: none;
  }
}

@media (max-width: 600px) {
  .immagini,
  .rettangolorosso,
  .paragrafo1,
  .rettangoloverticale1,
  .special {
    display: none;
  }

  .CP {
    min-height: auto;
    padding-bottom: 20px;
  }

  .form-destra {
    position: relative;
    top: auto;
    left: auto;
    width: 90%;
    margin: 20px auto 40px auto;
  }

  .rettangoloTP {
    margin-left: 0;
    padding: 10px;
    align-items: center;
  }

  .TitoloP {
    font-size: 3.5rem;
    text-align: center;
  }

  .form-row {
    width: 100%;
    margin-top: 10px;
    flex-direction: column;
    padding: 0;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .CP {
    min-height: auto;
    padding-bottom: 60px;
  }

  .immagini {
    position: relative;
    top: auto;
    left: auto;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
  }

  .immagini img {
    width: 200px;
    height: auto;
  }

  .rettangoloTP {
    margin: 40px auto 0 auto;
    width: 90%;
    padding: 0;
    align-items: center;
  }

  .TitoloP {
    font-size: clamp(4rem, 8vw, 7rem);
    text-align: center;
  }

  .special {
    position: relative;
    top: auto;
    left: auto;
    margin: 20px 0 0 0;
    text-align: center;
  }

  .rettangolorosso {
    position: relative;
    top: auto;
    left: auto;
    width: 90%;
    margin: 40px auto;
    height: auto;
    padding: 15px;
  }

  .paragrafo1 {
    margin: 0;
    text-align: center;
  }

  .form-destra {
    position: relative;
    top: auto;
    left: auto;
    width: 80%;
    margin: 40px auto;
  }

  .form-row {
    flex-direction: column;
  }

  .rettangoloverticale1 {
    width: 40px;
  }
}