:root {
  --ivory: #fdfbf9;
  --champagne-gold: #bfa47a;
  --dusty-rose: #ead4cc;
  --soft-black: #1f1f1f;
}

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

body {
  font-family: "Open Sans", sans-serif;
  color: var(--soft-black);
  background: var(--ivory);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-weight: 400;
}

p {
  font-weight: 400;
}

h1,
h2,
h3,
h4 {
  font-family: "Libre Bodoni", serif;
  margin-bottom: 20px;
}

a {
  transition: color 0.3s ease;
}

a:hover {
  color: var(--champagne-gold);
}

img {
  margin-bottom: 20px;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

li {
  font-size: 1.125rem;
}

section {
  padding: 4rem 1.25rem;
}

@media (max-width: 768px) {
  section {
    padding: 2rem 1rem;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.flex {
  display: flex;
}

.mt-25 {
  margin-top: 25px;
}

.w-50 {
  width: 50%;
}

.w-100 {
  width: 100%;
}
.w-75 {
  width: 75%;
}
.w-25 {
  width: 25%;
}
.w-33 {
  width: 33.3333%;
}
.w-66 {
  width: 66.6667%;
}
.w-20 {
  width: 20%;
}
.w-80 {
  width: 80%;
}

@media (max-width: 768px) {
  .w-50,
  .w-100,
  .w-75,
  .w-25,
  .w-33,
  .w-66,
  .w-20,
  .w-80 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .flex {
    flex-direction: column;
  }
}

.items-center {
  justify-content: center;
  align-items: center;
}

/* HEADER */

.top-bar {
  display: none;
}

header {
  position: fixed;
  top: 0px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  z-index: 1000;
  background-image: linear-gradient(180deg, #ffffff 40%, #ffffff00);
  transition: all 0.3s ease;
}

header img {
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .top-bar {
    display: block;
    position: relative;
    z-index: 1000000;
    margin: 0 0 10px 0;
    text-align: center;
    color: #333;
    text-transform: uppercase;
    font-weight: 600;
  }

  header {
    padding-top: 30px;
  }
}

nav {
  display: flex;
  justify-content: center;
}

nav img {
  max-height: 100px;
  margin: 0 auto;
  text-align: center;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: url("assets/img/elthir-9.jpg") center/cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    var(--ivory) 10%,
    rgba(253, 251, 249, 0.6) 40%,
    rgba(253, 251, 249, 0) 70%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  margin-top: 60px;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
    margin: 100px 0px;
    gap: 20px;
  }

  .hero h1 {
    font-size: 2rem !important;
    margin-bottom: 1rem;
    line-height: 1;
  }
  .hero p {
    font-size: 20px !important;
  }
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.25;
}

.hero p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.rating {
  display: flex;
  gap: 20px;
  align-items: center;
}

.stars {
  display: flex;
  gap: 0.5rem;
}

.star {
  width: 20px;
  height: 20px;
  fill: var(--champagne-gold);
}

.form-card {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(6px);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.form-card input,
.form-card textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font: inherit;
  margin-bottom: 1rem;
}

input[type="date"] {
  display: block;
  -webkit-appearance: textfield;
  -moz-appearance: textfield;
  min-width: 95%;
  line-height: 50px !important;
  height: 50px !important;
  background: white;
}

.form-card select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  font: inherit;
  background: white;
  margin-bottom: 1rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg fill='%231f1f1f' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
}

.form-card button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.75rem;
  background: var(--champagne-gold);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}

.form-card button:hover {
  background: black;
  color: white;
}

/* Steps */
.steps {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 40px 0;
}

.steps-reversed {
  direction: rtl; /* 👈 Inverte la direzione della griglia */
  text-align: left; /* opzionale per mantenere il testo allineato correttamente */
}

.steps ul {
  list-style: none;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

video {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 100%;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.centered {
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
  padding: 6rem 2rem 2rem;
  font-size: 2.5rem;
}

.centered p {
  font-size: 1.5rem;
}

.steps img {
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.steps ol {
  font-size: 1.125rem;
  list-style: none;
}

.steps li + li {
  margin-top: 0.75rem;
}


.step-format video {
  object-fit: cover;
}

.badge-new {
  background: var(--champagne-gold);
  color: #fff;
  padding: 0.35rem .5rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
  width: fit-content;
  text-align: left;
    margin-right: auto;
}

/* Step 2 section */

.flex {
  width: 100%;
}

@media (max-width: 768px) {
  .flex:has(.img-wrapper) {
    flex-direction: column-reverse;
  }

  .centered {
    text-align: center;
    margin: 0 auto;
    max-width: 600px;
    padding: 3rem 2rem 0rem;
    font-size: 2.5rem;
  }

  .cta h2 {
    line-height: 1;
  }
}

.cta-btn {
  margin-bottom: 20px;
  display: block;
  width: fit-content;
  background: var(--champagne-gold) !important;
  color: #fff !important;
  text-decoration: none;
}

.cta-btn,
button {
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-btn:hover,
button:hover {
  transform: scale(1.03);
}

/* Reviews */
.reviews {
  background: var(--dusty-rose);
}

.slider {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  scroll-snap-align: start;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin: 0 50px;
  min-height: 250px;
}

@media (max-width: 768px) {
  .review-card {
    margin: 0 20px;
    min-height: auto;
  }
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.review-card .stars {
  justify-content: center;
}

.review-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1rem auto;
  display: none;
}

.review-card svg {
  width: 16px;
  height: 16px;
  fill: var(--champagne-gold);
}

.review-card p {
  font-size: 0.95rem;
  margin: 0.75rem 0;
}
/* Masonry gallery */
.gallery {
  column-count: 2;
  column-gap: 1rem;
}

@media (min-width: 900px) {
  .gallery {
    column-count: 3;
  }
}

.gallery img {
  width: 100%;
  display: block;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  transition: opacity 0.3s;
  cursor: pointer;
  break-inside: avoid;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.03);
  opacity: 0.9;
}

/* Accordion FAQ */
.accordion-item {
  border: 1px solid #ddd;
  border-radius: 0.75rem;
  margin-bottom: 1rem;
  overflow: hidden;
}

.accordion-header {
  background: #fff;
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  font-size: 20px;
}

.accordion-header::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 5px;
  font-size: 1.75rem;
  transition: transform 0.3s;
}

.accordion-item.active .accordion-header::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  background: var(--ivory);
}

.accordion-item.active .accordion-content {
  padding: 1rem;
  max-height: 200px;
}

/* CTA */
.cta {
  position: relative;
  background: url("https://images.unsplash.com/photo-1532635241-7444e8adadbf")
    center/cover no-repeat;
  color: #fff;
  text-align: center;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(191, 164, 122, 0.6);
  mix-blend-mode: multiply;
}

.cta-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.cta button,
.cta-btn {
  padding: 1rem 2rem;
  border: none;
  border-radius: 1rem;
  background: #fff;
  color: var(--soft-black);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

.cta button:hover,
.cta-btn:hover {
  background: black !important;
  color: white !important;
}

/* Footer */
footer {
  background: var(--soft-black);
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.875rem;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.75rem;
}

footer p {
  font-size: 0.875rem;
  margin-top: 1rem;
}

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

/* SINGLE PARFUM */

.single-parfum {
  padding: 20px 20px;
  margin: 50px auto;
}

.single-parfum:nth-child(even) {
  background: var(--ivory);
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-fade {
  view-timeline-name: --fade-up;
  view-timeline-axis: block;
  animation-name: fadeUp;
  animation-duration: 1s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  animation-timeline: --fade-up;
  animation-range: entry 0% cover 40%;
}

.single-parfum {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 50px;
  padding: 0px 20px;
  gap: 2rem;
}

.single-parfum.reverse {
  flex-direction: row-reverse;
}

.single-parfum .img-wrapper,
.single-parfum .text {
  width: 100%;
  padding: 1rem;
}

.single-parfum .text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.single-parfum .text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .single-parfum,
  .single-parfum.reverse {
    flex-direction: column;
  }

  .single-parfum .img-wrapper,
  .single-parfum .text {
    width: 100%;
  }

  .accordion-header {
    background: #fff;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    font-size: 18px;
  }
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero-fragranze .cta-btn,
.cta-fragranze .cta-btn {
  text-align: center;
}

.hero-fragranze {
  min-height: 80vh !important;
}

.footer-content img {
  margin: 0 auto 20px auto;
}

.single-parfum img,
.single-parfum .img-wrapper {

  object-fit:cover;
}

.formati ul {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  list-style: none;
}

.slick-list {
  padding: 40px 0;
}

.slick-dots {
  bottom: 0 !important;
}

.slick-dots li button:before {
  font-size: 12px;
  color: var(--champagne-gold);
}

.iubenda-tp-alert-btn[data-tp-float][data-tp-float="bottom-right"],
.iubenda-tp-alert-btn[data-tp-float][data-tp-float="top-right"],
.iubenda-tp-btn[data-tp-float][data-tp-float="bottom-right"],
.iubenda-tp-btn[data-tp-float][data-tp-float="top-right"],
.iubenda-uspr-btn[data-tp-float][data-tp-float="bottom-right"],
.iubenda-uspr-btn[data-tp-float][data-tp-float="top-right"] {
  display: none !important;
}

button,
.cta-btn {
  transition: all 0.3s ease;
}
button:hover,
.cta-btn:hover {
  background-color: #333;
  color: #fff;
}

.gdpr {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.gdpr input {
  width: 14px;
  height: 14px;
  border: 1px solid #ddd;
  border-radius: 0.5rem;
  cursor: pointer;
  margin: 0;
}

.gdpr p {
  font-size: 0.875rem !important;
  color: #333;
  margin: 0;
}

.lb-nav a.lb-prev,
.lb-nav a.lb-next {
  opacity: 1 !important;
}

.lb-details {
  display: none !important;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cta-footer {
  font-size: 18px;
}
