/* =========================================
   ACETI — CSS Variables & Reset
   ========================================= */
:root {
  --c-bg:       #0f0d0b;
  --c-surface:  #181410;
  --c-border:   #2e2418;
  --c-text:     #e8ddd0;
  --c-muted:    #7a6a58;
  --c-accent:   #c08040;
  --c-accent2:  #e8b06a;
  --c-gold:     #d4a552;

  --ff-display: 'Cormorant Garamond', serif;
  --ff-body:    'Outfit', sans-serif;

  --nav-h: 72px;
  --section-pad: clamp(5rem, 10vw, 9rem);
  --container: 1200px;
  --radius: 4px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

em { font-style: italic; color: var(--c-accent2); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* =========================================
   TYPOGRAPHY
   ========================================= */
.section__label {
  font-family: var(--ff-body);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.4rem;
}

.section__title {
  font-family: var(--ff-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 3rem;
}

/* =========================================
   LAYOUT HELPERS
   ========================================= */
.section {
  padding: var(--section-pad) clamp(1.5rem, 5vw, 5rem);
  max-width: var(--container);
  margin: 0 auto;
}

/* =========================================
   NAVIGATION
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.5rem, 4vw, 3.5rem);
  z-index: 100;
  transition: background var(--transition), border-bottom var(--transition);
}

.nav.scrolled {
  background: rgba(15, 13, 11, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.nav__logo {
  width: 34px; height: 34px;
  color: var(--c-accent);
  flex-shrink: 0;
}

.nav__name {
  font-family: var(--ff-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: .02em;
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 2.5rem;
}

.nav__links a {
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--c-accent);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--c-text);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 24px; height: 1.5px;
  background: var(--c-text);
  transition: var(--transition);
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 4rem) clamp(1.5rem, 6vw, 6rem) 6rem;
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__grain {
  position: absolute;
  inset: -50%;
  width: 200%; height: 200%;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  animation: grain 8s steps(10) infinite;
}

@keyframes grain {
  0%  { transform: translate(0,0); }
  10% { transform: translate(-5%,-10%); }
  20% { transform: translate(-15%,5%); }
  30% { transform: translate(7%,-25%); }
  40% { transform: translate(-5%,25%); }
  50% { transform: translate(-15%,10%); }
  60% { transform: translate(15%,0); }
  70% { transform: translate(0,15%); }
  80% { transform: translate(3%,35%); }
  90% { transform: translate(-10%,10%); }
  100%{ transform: translate(0,0); }
}

.hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.blob1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #c0804044 0%, transparent 70%);
  top: -100px; right: -80px;
}
.blob2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, #80402022 0%, transparent 70%);
  bottom: 0; left: 10%;
}

.hero__content {
  position: relative;
  max-width: 660px;
}

.hero__eyebrow {
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 1.8rem;
}

.hero__title {
  font-family: var(--ff-display);
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 300;
  line-height: 1.02;
  margin-bottom: 1.8rem;
}

.hero__sub {
  font-size: 1rem;
  color: var(--c-muted);
  max-width: 420px;
  margin-bottom: 2.8rem;
  line-height: 1.8;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem; right: clamp(1.5rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  color: var(--c-muted);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  animation: bobScroll 2.5s ease-in-out infinite;
}

@keyframes bobScroll {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-block;
  padding: .85rem 2.2rem;
  font-family: var(--ff-body);
  font-size: .82rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
}

.btn--outline {
  border: 1px solid var(--c-accent);
  color: var(--c-accent2);
  background: transparent;
}
.btn--outline:hover {
  background: var(--c-accent);
  color: var(--c-bg);
}

.btn--filled {
  background: var(--c-accent);
  color: var(--c-bg);
  border: 1px solid var(--c-accent);
  font-weight: 500;
}
.btn--filled:hover {
  background: var(--c-accent2);
  border-color: var(--c-accent2);
}

/* =========================================
   SWIPER GALLERY
   ========================================= */
.gallery {
  padding-top: 0;
  padding-bottom: var(--section-pad);
  border-top: 1px solid var(--c-border);
}

.slide__img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

.swiper {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.swiper__track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
}

.swiper__slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}

.slide__img-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}

.slide__img-placeholder {
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: .8rem;
  font-family: var(--ff-body);
  letter-spacing: .1em;
  text-transform: uppercase;
  min-height: 320px;
}

.slide__caption {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slide__num {
  font-family: var(--ff-display);
  font-size: 3.5rem;
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
}

.slide__caption p {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 320px;
}

.swiper__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.swiper__btn {
  width: 48px; height: 48px;
  border: 1px solid var(--c-border);
  border-radius: 50%;
  background: none;
  color: var(--c-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.swiper__btn:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.swiper__dots {
  display: flex;
  gap: .6rem;
}

.swiper__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--c-border);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.swiper__dot.active {
  background: var(--c-accent);
  transform: scale(1.4);
}

/* =========================================
   PRODUCTS
   ========================================= */
.products {
  border-top: 1px solid var(--c-border);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.product-card {
  padding: 2.8rem 2rem;
  background: var(--c-surface);
  border-right: 1px solid var(--c-border);
  transition: background var(--transition);
  position: relative;
}

.product-card:last-child { border-right: none; }

.product-card:hover {
  background: #1e1810;
}

.product-card--featured {
  background: #1c160e;
}

.product-card__icon {
  font-size: 1.8rem;
  color: var(--c-accent);
  margin-bottom: 1.2rem;
}

.product-card h3 {
  font-family: var(--ff-display);
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: .8rem;
}

.product-card p {
  font-size: .88rem;
  color: var(--c-muted);
  line-height: 1.7;
}

.product-card__badge {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: var(--c-accent);
  color: var(--c-bg);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .65rem;
  border-radius: 99px;
}

/* =========================================
   PAGE HERO (inner pages)
   ========================================= */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) clamp(1.5rem, 6vw, 6rem) 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--c-border);
}

.page-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
}

/* =========================================
   STORY (who.html)
   ========================================= */
.story__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.story__img-frame {
  position: relative;
}

.story__portrait {
  aspect-ratio: 3/4;
  min-height: 460px;
  border-radius: var(--radius);
}

.story__img-deco {
  position: absolute;
  top: -16px; right: -16px;
  width: 100%; height: 100%;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  z-index: -1;
}

.story__chapter {
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-accent);
  display: block;
  margin-bottom: 1rem;
}

.story__heading {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.story__text-col p {
  color: var(--c-muted);
  margin-bottom: 1.2rem;
  font-size: .95rem;
  line-height: 1.85;
}

/* =========================================
   VALUES
   ========================================= */
.values {
  border-top: 1px solid var(--c-border);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
}

.value-item__num {
  font-family: var(--ff-display);
  font-size: 2.8rem;
  color: var(--c-border);
  font-weight: 300;
  margin-bottom: .6rem;
  line-height: 1;
}

.value-item h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .6rem;
}

.value-item p {
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.75;
}

/* =========================================
   TEAM
   ========================================= */
.team { border-top: 1px solid var(--c-border); }

.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.team__card {
  padding: 2rem;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  background: var(--c-surface);
  transition: border-color var(--transition);
}

.team__card:hover { border-color: var(--c-accent); }

.team__avatar-wrap {
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.team__avatar {
  aspect-ratio: 1;
  min-height: 180px;
}

.team__card h3 {
  font-family: var(--ff-display);
  font-size: 1.3rem;
  font-weight: 400;
  margin-bottom: .2rem;
}

.team__role {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: .8rem;
}

.team__card p:last-child {
  font-size: .85rem;
  color: var(--c-muted);
  line-height: 1.7;
}

/* =========================================
   CONTACT PAGE
   ========================================= */
.contact-section__layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: start;
}

.contact-info__title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 2.2rem;
}

.contact-info__items {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item__icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--c-accent);
  margin-top: .15rem;
}

.contact-item strong {
  display: block;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: .2rem;
  font-weight: 400;
}

.contact-item p {
  font-size: .92rem;
  color: var(--c-text);
  line-height: 1.6;
}

.contact-item a {
  color: var(--c-accent2);
  transition: color var(--transition);
}
.contact-item a:hover { color: var(--c-text); }

/* FORM */
.contact-form-wrap .contact-info__title { margin-bottom: 2rem; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.form-group label {
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: .85rem 1rem;
  border-radius: var(--radius);
  font-family: var(--ff-body);
  font-size: .92rem;
  font-weight: 300;
  outline: none;
  transition: border-color var(--transition);
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1L6 7L11 1' stroke='%237a6a58' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--c-border);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--c-accent);
}

.form-group textarea { resize: vertical; }

.form-note {
  font-size: .75rem;
  color: var(--c-muted);
  margin-top: -.4rem;
}

.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 3rem;
  border: 1px solid var(--c-accent);
  border-radius: var(--radius);
  color: var(--c-accent2);
}

.form-success span { font-size: 2rem; }
.form-success p { color: var(--c-muted); font-size: .95rem; }
.form-success.visible { display: flex; }

/* MAP */
.map-section {
  border-top: 1px solid var(--c-border);
  height: 360px;
  overflow: hidden;
}

.map-placeholder {
  width: 100%; height: 100%;
  background: var(--c-surface);
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  color: var(--c-muted);
  text-align: center;
}

.map-placeholder__inner small {
  font-size: .78rem;
  color: var(--c-border);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  border-top: 1px solid var(--c-border);
  padding: 3rem clamp(1.5rem, 4vw, 3.5rem);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--ff-display);
  font-size: 1.3rem;
}

.footer__copy {
  font-size: .78rem;
  color: var(--c-muted);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
}

.footer__nav a {
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--c-text); }

/* =========================================
   PAGE TRANSITIONS
   ========================================= */
body {
  animation: fadeIn .5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 900px) {
  .products__grid,
  .values__grid,
  .team__grid {
    grid-template-columns: 1fr 1fr;
  }

  .story__layout,
  .contact-section__layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .swiper__slide {
    grid-template-columns: 1fr;
  }

  .slide__img-wrap {
    aspect-ratio: 16/9;
  }

  .slide__img-placeholder { min-height: 220px; }
}

@media (max-width: 640px) {
  .nav__links {
    display: none;
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    background: rgba(15,13,11,.97);
    backdrop-filter: blur(24px);
  }

  .nav__links.open {
    display: flex;
  }

  .nav__links a {
    font-size: 1.2rem;
    letter-spacing: .12em;
  }

  .nav__toggle {
    display: flex;
    z-index: 200;
  }

  .products__grid,
  .values__grid,
  .team__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

.aceti__list {
  display: flex;
  flex-direction: column;
}

.aceto {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--c-border);
  transition: all var(--transition);
}

.aceto:not(:last-child) {
  margin-bottom: 1rem;
}

.aceti__intro-strong {
  font-family: var(--ff-display);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 600;
  line-height: 1.4;
  color: var(--c-text);

  max-width: 700px;
  margin: 2rem auto 3rem; /* <-- questo centra il blocco */
  text-align: center;     /* <-- questo centra il testo */

  display: block;
}

.aceto:hover {
  padding-left: 12px;
}
