/* style.css (sostituisci tutto il file con questo) */

:root{
  --bg: #fbf7f2;
  --paper: #ffffff;
  --beige: #f3e7d8;
  --beige-2:#f0e2d2;
  --ink: #221a13;
  --muted:#6f6257;
  --brown:#6f4e33;
  --brown-2:#5f412a;
  --line: rgba(34,26,19,.10);
  --shadow: 0 18px 40px rgba(34,26,19,.10);
  --shadow-sm: 0 10px 24px rgba(34,26,19,.10);
  --radius: 18px;
  --radius-lg: 22px;

  /* IMPORTANT: container più largo + gutters fluidi = contenuti più grandi su schermi grandi */
  --container: 1680px;
  --gutter: clamp(18px, 3vw, 56px);

  /* hero band responsiva */
  --hero-band: clamp(190px, 24vh, 320px);
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background: var(--bg);

  /* scala generale “morbida” su schermi grandi */
  font-size: clamp(15px, 0.95vw, 18px);
}

img{ max-width:100%; display:block; }

.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin-inline:auto;
}

/* HEADER */
.site-header{
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251,247,242,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(34,26,19,.06);
}
.header-inner{
  display:flex;
  align-items:center;
  gap: clamp(12px, 1.4vw, 22px);
  padding: 14px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
  text-decoration:none;
  color:var(--ink);
  font-weight: 600;
}
.brand-mark{
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(180deg, #7a573a, #5b3f29);
  position: relative;
  box-shadow: 0 10px 18px rgba(34,26,19,.12);
}
.brand-mark:before{
  content:"";
  position:absolute;
  left: 11px; top: 8px;
  width: 12px; height: 18px;
  background: rgba(251,247,242,.92);
  clip-path: polygon(40% 0, 70% 20%, 58% 44%, 74% 66%, 45% 100%, 18% 65%, 28% 45%, 16% 25%);
  border-radius: 3px;
}
.brand-name{
  font-size: 18px;
  letter-spacing: .2px;
}

.nav{
  margin-left: auto;
  display:flex;
  align-items:center;
  gap: clamp(14px, 1.7vw, 30px);
}
.nav a{
  text-decoration:none;
  color: rgba(34,26,19,.72);
  font-size: 14px;
  font-weight: 500;
}
.nav a:hover{ color: rgba(34,26,19,.95); }

.nav-toggle{
  display:none;
  margin-left: 6px;
  width: 40px; height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(34,26,19,.14);
  background: var(--paper);
  box-shadow: 0 10px 20px rgba(34,26,19,.08);
}
.nav-toggle span{
  display:block;
  height:2px;
  width: 18px;
  margin: 4px auto;
  background: rgba(34,26,19,.72);
  border-radius: 999px;
}

/* BUTTONS */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  text-decoration:none;
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary{
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(34,26,19,.18);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{ transform: translateY(-1px); }

.btn-outline{
  background: var(--paper);
  color: var(--ink);
  border-color: rgba(34,26,19,.18);
  box-shadow: 0 12px 24px rgba(34,26,19,.08);
}
.btn-outline:hover{ transform: translateY(-1px); }

.btn-ghost{
  background: transparent;
  color: rgba(251,247,242,.92);
  border-color: rgba(251,247,242,.22);
  padding-inline: 10px;
}
.play{
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(251,247,242,.30);
  position: relative;
}
.play:before{
  content:"";
  position:absolute;
  left: 14px; top: 11px;
  width: 0; height: 0;
  border-left: 10px solid rgba(251,247,242,.92);
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

/* HERO (contenuti “riempiono” su schermi grandi) */
.hero{
  position: relative;
  padding: 0;
  /* min-height: calc(100vh - 64px); */
  height: 70vh;
  overflow: hidden;

  /* questo ha aggiunto Yana */
  margin-bottom: 7vh;
}
.hero-bg{
  position:absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(34,26,19,.10), rgba(34,26,19,.06) 55%, rgba(34,26,19,0) 78%),
    url("../img/hero-bg.jpg") center/cover no-repeat;
}
.hero-bottom{
  /* questo ha aggiunto Yana */
  display: none;

  /* questo c'era gia' */
  position:absolute;
  left:0; right:0;
  bottom:0;
  height: var(--hero-band);
  background: var(--bg);
}
.hero-inner{
  position: relative;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(18px, 2.4vw, 38px);
  /* min-height: calc(100vh - 64px); */
  align-items: start;
  padding-top: clamp(44px, 7vh, 84px);
  /* padding-bottom: clamp(14px, 3vh, 32px); */
  padding-bottom: 0;

  /* questo ha aggiunto Yana */
  height: 100%;
}
.hero-left{
  position: relative;
  padding-top: 6px;
  max-width: 760px;
}
.hero h1{
  margin: 0 0 20px;
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(38px, 3.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.2px;
  color: rgba(251,247,242,.96);
  text-shadow: 0 18px 30px rgba(34,26,19,.22);
}
.hero-ctas{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 0;
}

/* Cards sul band chiaro */
.hero-cards{
  position: absolute;
  left: 0;
  bottom: calc(-1 * (var(--hero-band) - 52px));
  display:flex;
  gap: 14px;
  align-items: stretch;
  flex-wrap: wrap;
}

.card{
  border-radius: 14px;
  padding: 14px 14px;
  border: 1px solid rgba(34,26,19,.08);
  box-shadow: 0 14px 30px rgba(34,26,19,.08);
  max-width: 340px; /* più grande su wide screen */
}
.card-white{ background: rgba(255,255,255,.92); }
.card-beige{ background: rgba(243,231,216,.92); }

.card-title{
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}
.card-sub{
  font-size: 12.5px;
  color: rgba(34,26,19,.62);
  margin-top: 6px;
  line-height: 1.35;
}

.mini-avatars{
  display:flex;
  gap: 6px;
}
.mini-avatars span{
  width: 18px; height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d6b493, #8a6342);
  border: 2px solid rgba(255,255,255,.85);
  box-shadow: 0 6px 12px rgba(34,26,19,.12);
}
.mini-avatars span:nth-child(2){ filter: saturate(.85) brightness(1.05); }
.mini-avatars span:nth-child(3){ filter: saturate(.75) brightness(1.10); }
.mini-avatars span:nth-child(4){ filter: saturate(.95) brightness(.95); }

.hero-right{
  position: relative;
  display:flex;
  justify-content:flex-end;
  align-items:flex-end;
  padding-bottom: 0;
  

  /* questo ha aggiunto Yana */
  align-self: flex-end;
}


/* HERO IMAGE: grande e “riempie” */
.hero-person{
  width: min(820px, 46vw);
  height: auto;
  max-height: calc(100vh - var(--hero-band));
  object-fit: contain;


  background: none;
  box-shadow: none;
  border: none;
  border-radius: 0;
}

.scroll{
  position:absolute;
  right: 16px;
  bottom: 28px;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(34,26,19,.18);
  background: rgba(251,247,242,.88);
  display:grid;
  place-items:center;
  text-decoration:none;
  color: rgba(34,26,19,.78);
  box-shadow: 0 14px 30px rgba(34,26,19,.10);
}

/* SECTIONS */
.section{
  padding: clamp(28px, 4vw, 56px) 0;
}

.section-craft{
  padding-top: clamp(18px, 3vw, 32px);
}


.craft-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 3vw, 54px);
  align-items:center;
}

.craft-media{
  display:flex;
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
  justify-content:flex-start;
}

/* cards immagini: più grandi su schermi grandi */
.img-card{
  width: clamp(230px, 18vw, 380px);
  aspect-ratio: 3 / 4;
  height: auto;

  border-radius: var(--radius-lg);
  background-color: #ddd;
  box-shadow: var(--shadow);
  border: 1px solid rgba(34,26,19,.10);

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.craft-copy h2,
.center-title{
  font-family: "Playfair Display", serif;
  font-weight: 600;
  letter-spacing: -0.2px;
}
.craft-copy h2{
  font-size: clamp(28px, 2.2vw, 44px);
  line-height: 1.12;
  margin: 0 0 10px;
}
.lead{
  margin: 0 0 18px;
  color: rgba(34,26,19,.64);
  font-size: 14px;
}

.feature-row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  background: rgba(243,231,216,.60);
  border: 1px solid rgba(34,26,19,.08);
  border-radius: 16px;
  padding: 14px;
}
.feature{
  background: rgba(255,255,255,.26);
  border-radius: 14px;
  padding: 12px;
  border: 1px solid rgba(34,26,19,.06);
}
.feature-head{
  display:flex;
  align-items:center;
  gap: 10px;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 8px;
}
.feature-icon{
  width: 26px; height: 26px;
  border-radius: 10px;
  display:grid;
  place-items:center;
  background: rgba(111,78,51,.10);
  border: 1px solid rgba(111,78,51,.18);
  color: rgba(111,78,51,.85);
}
.feature p{
  margin: 0;
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(34,26,19,.62);
}

/* PROOF SECTION */
.section-proof{
  padding-top: clamp(24px, 4vw, 60px);
  padding-bottom: clamp(54px, 5vw, 90px);
}
.center-title{
  text-align:center;
  font-size: clamp(28px, 2.2vw, 44px);
  /* margin: 0 0 26px; */

  margin: 0 0 4.5vh;
}

.proof-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(26px, 3vw, 54px);
  align-items:start;
}

.proof-media{
  display:flex;
  gap: clamp(14px, 2vw, 22px);
  align-items: stretch;
}
.img-card.big{
  width: clamp(260px, 20vw, 420px);
  aspect-ratio: 4 / 5;
  height: auto;
}

.testimonial-bar{
  margin-top: 16px;
  display:flex;
  align-items:center;
  gap: 12px;
  background: rgba(243,231,216,.75);
  border: 1px solid rgba(34,26,19,.08);
  border-radius: 16px;
  padding: 12px 12px;
  box-shadow: 0 14px 28px rgba(34,26,19,.08);
  width: fit-content;
}
.pill{
  background: rgba(255,255,255,.60);
  border: 1px solid rgba(34,26,19,.10);
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 700;
  min-width: 120px;
  text-align:left;
}
.avatar{
  width: 36px; height: 36px;
  border-radius: 999px;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 0 10px 18px rgba(34,26,19,.10);
}
.stars{
  letter-spacing: 2px;
  color: rgba(111,78,51,.92);
  font-weight: 700;
}
.stars.small{ font-size: 13px; letter-spacing: 1px; margin-top: 10px; }

.quote{
  margin: 12px 0 0;
  padding: 0;
  font-size: 13px;
  color: rgba(34,26,19,.62);
  max-width: 680px;
}

.proof-right{
  display:flex;
  flex-direction: column;
  gap: 14px;
}
.card.wide{
  max-width: none;
  padding: 16px;
  border-radius: 16px;
}

.rating{
  margin-top: 6px;
  background: rgba(251,247,242,.88);
  border: 1px solid rgba(34,26,19,.10);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.rating-head{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.rating-label{ font-weight: 700; }
.rating-score{ color: rgba(34,26,19,.62); font-weight: 700; }
.rating-track{
  height: 8px;
  border-radius: 999px;
  background: rgba(111,78,51,.16);
  overflow:hidden;
}
.rating-fill{
  width: 86%;
  height: 100%;
  background: rgba(111,78,51,.85);
  border-radius: 999px;
}
.rating-foot{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-top: 12px;
  gap: 12px;
}
.muted{ color: rgba(34,26,19,.56); font-size: 12.5px; }

/* FOOTER */
.footer{
  padding: 26px 0 40px;
  border-top: 1px solid rgba(34,26,19,.06);
}
.footer-inner{
  display:flex;
  justify-content: space-between;
  gap: 16px;
  color: rgba(34,26,19,.70);
  font-size: 13px;
}

/* RESPONSIVE */
@media (max-width: 980px){
  .nav{ display:none; }
  .nav.open{
    display:flex;
    position:absolute;
    right: var(--gutter);
    top: 62px;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    background: rgba(255,255,255,.92);
    border: 1px solid rgba(34,26,19,.10);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .nav-toggle{ display:block; }

  .hero{ min-height: auto; }
  .hero-inner{
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 40px;
  }
  .hero-right{ justify-content: flex-start; }
  .hero-person{ width: min(680px, 100%); max-height: none; }
  .hero-cards{ position: static; margin-top: 18px; }

  .craft-grid, .proof-grid{ grid-template-columns: 1fr; }
  .img-card{ width: 48%; }
  .img-card.big{ width: 50%; }
}

@media (max-width: 560px){
  .feature-row{ grid-template-columns: 1fr; }
  .hero-ctas{ flex-wrap: wrap; }

  .img-card{ width: 48%; aspect-ratio: 3 / 4; }
  .img-card.big{ width: 50%; aspect-ratio: 4 / 5; }
}
