/* Inter Font */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/Inter-Bold.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('../fonts/Inter-ExtraBold.woff2') format('woff2');
}

/* Privacy Policy page spacing */
.faq-wrap {
  margin-top: 150px; /* spazio extra per header fisso + logo */
}
@media (max-width: 600px) {
  .faq-wrap { margin-top: 110px; }
}
.faq-wrap + .site-footer { margin-top: 30px; }
/* Deeplink offset: quando si apre #faq-xxx, non farsi coprire dall'header */
.faq-item { scroll-margin-top: 150px; }
@media (max-width: 600px){ .faq-item { scroll-margin-top: 110px; } }

.privacy-policy {
  margin-top: 120px; /* spazio per header fisso */
  margin-bottom: 40px;
  padding: 32px 24px 32px 24px;
  background: #fff;
  border-radius: 12px;
  max-width: 900px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 600px) {
  .privacy-policy {
    padding: 18px 4vw 18px 4vw;
    margin-top: 90px;
  }
}
/* Caroselli quadrati custom */
.di-carousels-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: 0;
  padding-left: 20px;
  padding-right: 200px;
}
.square-carousel {
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: #fafafa;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  padding: 20px;
  max-width: 450px;
  margin: 0 auto;
  position: relative;
}
.square-carousel .carousel-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: 12px;
  box-shadow: none;
  margin-bottom: 0;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.square-carousel .carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  width: 100%;
  height: 100%;
}
.square-carousel .carousel-slide {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.square-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px;
}
.square-carousel .carousel-label {
  margin: 18px 0 10px;
  font-size: 20px;
  letter-spacing: 0.12em;
}
.carousel-label-btn {
  margin: 18px 0 10px;
  font-size: 20px;
  letter-spacing: 0.12em;
  background: #1a1a1a;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.carousel-label-btn:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img {
  transform: scale(1.15);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 0 20px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}

:root{
  --wrap: 1200px;
  --bg: #e8dfd5;
  --text: #1a1a1a;
  --muted:#666;
  --accent:#1a1a1a;
  --btn-bg:#1a1a1a;
  --btn-ghost-bg:rgba(255,255,255,0.85);
  /* Offset globale per header fisso */
  --header-offset: 120px;
}

/* Spazio di sicurezza sotto l'header fisso (usa su body o main della pagina) */
.page-offset-top{ padding-top: var(--header-offset); }
.anchor-offset{ scroll-margin-top: var(--header-offset); }

@media (max-width: 520px){
  :root{ --header-offset: 90px; }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Georgia, serif;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* layout container */
.wrap{
  max-width:var(--wrap);
  margin:0 auto;
  padding:0 32px;
}

/* Header */
.site-header{
  position:fixed;
  top:0;
  left:0;
  right:0;
  z-index:60;
  background:linear-gradient(rgba(255,255,255,0.85), rgba(255,255,255,0.65));
  border-bottom:1px solid rgba(0,0,0,0.06);
  backdrop-filter: blur(4px);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:100px;
}
/* ensure larger logo doesn't change header height */
.site-header{ overflow:visible }
.logo img{ height:120px; display:block }

/* nav left */
.main-nav ul{
  display:flex;
  gap:18px;
  list-style:none;
  margin:0;
  padding:0;
  align-items:center;
}
.main-nav a{
  text-decoration:none;
  color:var(--muted);
  font-size:13px;
  letter-spacing:0.04em;
}
.main-nav a[aria-current="page"]{ color:var(--text); font-weight:600 }

/* Dropdown menu styles */
.main-nav .has-dropdown {
  position: relative;
}
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  min-width: 180px;
  padding: 8px 0;
  margin-top: 8px;
  list-style: none;
  z-index: 1000;
}
.has-dropdown:hover .dropdown-menu {
  display: block;
}
.dropdown-menu li {
  margin: 0;
  padding: 0;
}
.dropdown-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--text);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.2s ease;
}
.dropdown-menu a:hover {
  background: #f7f6f2;
  color: var(--accent);
}

/* logo center */
.logo{
  position:absolute;
  left:50%;
  transform:translateX(-50%);
  text-decoration:none;
  font-family:"Inter", sans-serif;
  font-weight:800;
  letter-spacing:0.02em;
  color:var(--accent);
  font-size:20px;
}

/* header actions right */
.header-actions{ display:flex; gap:10px; align-items:center; margin-left:auto }
.icon-btn{
  background:transparent;
  border:0;
  font-size:16px;
  cursor:pointer;
}

/* Hero */
.hero{
  min-height: 100dvh; /* altezza reale viewport su mobile */
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  background-position:center;
  background-size:cover;
  margin-top:0; /* header già gestito dal body */
}

/* Fallback per browser che non supportano 100dvh */
@supports not (min-height: 100dvh) {
  .hero{
    min-height:82vh;
  }
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url('../homepage/24fd3ce9-87ef-4924-8d5e-20a3d39a2c88_65b01e2b-0b3c-4b87-a6a8-f9033b717983.png');
  background-size:cover;
  background-position:center;
  opacity:0.85;
  z-index:0;
}
.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(0deg, rgba(0,0,0,0.28), rgba(0,0,0,0.02));
  mix-blend-mode:multiply;
  z-index:1;
  pointer-events:none;
}
.hero-inner{
  position:relative;
  text-align:center;
  color:#fff;
  padding:60px 20px;
  z-index:2;
  width:100%;
}

/* translucent banner for titles inside hero */
.hero-banner{
  display:inline-block;
  background:rgba(0,0,0,0.55);
  padding:18px 26px;
  border-radius:6px;
  backdrop-filter:saturate(110%) blur(2px);
}
.hero-title{
  margin:0 0 20px;
  font-family:"Inter", sans-serif;
  font-weight:800;
  line-height:1.02;
  font-size: clamp(36px, 8vw, 72px);
  text-shadow: 0 2px 0 rgba(0,0,0,0.05);
}
.hero-lead{
  max-width:820px;
  margin:0 auto 26px;
  color: rgba(255,255,255,0.95);
  font-size:18px;
  font-weight:500;
}

/* Hero specifico per Chi Siamo */
#hero-chi-siamo::before{
  background-image:url('../vinile interni/interno1.png');
}

/* Artist Page - Fullscreen Hero */
.artist-hero-fullscreen {
  width: 100%;
  min-height: 100dvh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 0;
}

/* Fallback per artist hero */
@supports not (min-height: 100dvh) {
  .artist-hero-fullscreen {
    min-height: 100vh;
  }
}

/* Artist Quote Section */
.artist-quote-section {
  padding: 80px 20px;
  background: var(--bg);
}
.artist-quote {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  border: none;
}
.artist-quote p {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text);
  font-weight: 400;
  font-style: italic;
  margin: 0 0 20px;
  text-align: center;
}
.artist-quote-author {
  text-align: center;
  font-size: 18px;
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
  margin-top: 24px;
}

/* CTA */
.btn{
  display:inline-block;
  text-decoration:none;
  padding:12px 18px;
  border-radius:4px;
  font-weight:600;
  font-size:14px;
  margin:6px;
  color:var(--accent);
  background: transparent;
  border:1px solid rgba(0,0,0,0.06);
}
.btn-primary{
  background:var(--btn-bg);
  color:#fff;
  border:0;
  box-shadow:0 6px 18px rgba(0,0,0,0.18);
}
.btn-ghost{
  background:var(--btn-ghost-bg);
  color:var(--accent);
}

/* Teaser / Intro */
.teaser-section{
  background:transparent;
  padding:48px 0;
  margin-top:18px;
}
.teaser-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
}
.teaser-text .section-title{ margin:0; font-size:26px; font-family:"Inter"; }
.teaser-actions .btn{ margin-left:8px }

/* Features */
.features{
  margin-top:38px;
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:30px;
  align-items:start;
  padding:48px 0 36px;
  background:transparent;
  text-align:center;
}
.feature-icon{ font-size:28px; margin-bottom:10px }
.feature h3{ font-family:"Inter"; font-size:36px; margin:6px 0; }
.feature p{ color:var(--muted); max-width:320px; margin:0 auto; }

/* Collection */
.collection{
  padding:48px 0;
  text-align:left;
  background:var(--bg);
}
.collection#catalogo{ background:#ddd6cc; }
.collection .section-title{ font-size:44px; margin:6px 0 18px; font-family:"Inter"; color:var(--text) }

.collection-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-bottom:28px;
}
.collection-item{
  position:relative;
  display:block;
  overflow:hidden;
  border-radius:2px;
  background:#fff;
}
.collection-item img{
  width:100%;
  height:340px;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}
.collection-item:hover img{ transform:scale(1.02) }
.collection-item .tag{
  position:absolute;
  left:18px;
  bottom:18px;
  background:#fff;
  padding:8px 10px;
  font-size:13px;
  border-radius:2px;
  font-weight:700;
  box-shadow:0 6px 20px rgba(0,0,0,0.12);
}

/* Collection lead center */
.collection-lead{
  text-align:center;
  max-width:760px;
  margin:32px auto 10px;
  font-size:18px;
  color:var(--text);
  line-height:1.6;
}
.btn-link{ display:block; margin:8px auto 44px; text-align:center }

/* Masonry grid for homepage gallery */
.masonry-grid{ column-count:3; column-gap:14px; }
.masonry-grid .masonry-item{ display:block; break-inside:avoid; }
.masonry-grid img{ width:100%; display:block; border-radius:8px; margin:0 0 14px; box-shadow:0 4px 18px rgba(0,0,0,0.08); cursor:zoom-in; }

/* Lightbox */
.lightbox{ position:fixed; inset:0; display:flex; align-items:center; justify-content:center; background:rgba(0,0,0,0.90); opacity:0; visibility:hidden; transition:opacity .2s ease; z-index:1000; padding:0; }
.lightbox.open{ opacity:1; visibility:visible; }
.lightbox-img{ width:100%; height:100%; object-fit:contain; border-radius:0; box-shadow:none; }
.lightbox-close{ position:absolute; top:18px; right:18px; width:36px; height:36px; border-radius:50%; border:0; background:rgba(255,255,255,0.9); font-size:22px; line-height:1; cursor:pointer; z-index:1001; }

@media (max-width:1000px){ .masonry-grid{ column-count:2 } }
@media (max-width:520px){ .masonry-grid{ column-count:1 } }

/* Collaborazioni / Quiz sections */
.collaborations, .quiz-section{
  padding:46px 0;
  text-align:center;
  background:#fff;
}
.section-title{ font-size:28px; margin-bottom:8px; font-family:"Inter"; }

/* Collaborazioni gallery */
.collab-gallery{ padding:40px 0 20px }
.gallery-collab{
  display:grid;
  grid-template-columns:2fr 1fr;
  grid-template-areas:
    "a b"
    "c c";
  gap:28px;
}
.collab-card{ background:#fff; border-radius:6px; overflow:hidden; box-shadow:0 8px 26px rgba(0,0,0,0.06) }
.collab-card img{ width:100%; height:100%; display:block; object-fit:cover }
.collab-card.a{ grid-area:a; height:360px }
.collab-card.b{ grid-area:b; height:260px }
.collab-card.c{ grid-area:c; height:420px }
.collab-card-body{ padding:12px 14px }
.collab-card-title{ margin:6px 0 2px; font-family:"Inter"; font-size:18px }
.collab-card-meta{ font-size:12px; color:var(--muted); margin-bottom:6px }
.collab-card-text{ font-size:13px; color:#404040; margin:0 }

/* Footer */
.site-footer{
  padding:26px 0;
  background:transparent;
  border-top:1px solid rgba(0,0,0,0.04);
  margin-top:30px;
}
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); font-size:14px }
.footer-nav{ display:flex; gap:14px }
.footer-nav a{ text-decoration:none; color:var(--muted); font-size:13px }

/* Design Intelligente Section */
.design-intelligente{
  padding:80px 0;
  background:#ddd6cc;
  color:#111;
}
.di-title{
  font-family:"Inter", sans-serif;
  font-weight:800;
  font-size:clamp(48px, 7vw, 82px);
  text-align:center;
  margin:0 0 60px;
  line-height:1.1;
  letter-spacing:-0.02em;
}
.di-row{
  display:grid;
  grid-template-columns:1.2fr 0.8fr;
  gap:50px;
  align-items:center;
  margin-bottom:60px;
}
.di-row-reverse{
  grid-template-columns:0.8fr 1.2fr;
}
.di-row-stacked{
  grid-template-columns:1fr;
  gap:30px;
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}
.di-text-block{
  padding:0 20px;
}
.di-text-block p{
  font-size:15px;
  line-height:1.8;
  margin:0 0 20px;
  color:#2a2a2a;
}
.di-text-block p:last-child{
  margin-bottom:0;
}
.di-text-center{
  text-align:center;
  padding:0 40px;
}
.di-img-block{
  width:100%;
  overflow:hidden;
  border-radius:4px;
  box-shadow:0 8px 24px rgba(0,0,0,0.15);
  max-width:400px;
  height:350px;
}
.di-img-block img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center 65%;
}
.di-img-centered{
  max-width:500px;
  margin:0 auto;
  height:400px;
}
.di-carousels{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:30px;
  margin-top:60px;
}
.di-carousel{
  position:relative;
  width:100%;
}
.carousel-container{
  overflow:hidden;
  border-radius:0;
  box-shadow:none;
}
.carousel-track{
  display:flex;
  transition:transform 0.4s ease;
}
.carousel-slide{
  min-width:100%;
  flex-shrink:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:transparent;
}
.carousel-slide img{
  width:auto;
  max-width:340px;
  height:260px;
  object-fit:contain;
  display:block;
  margin-left:auto;
  margin-right:auto;
  box-shadow:0 2px 16px rgba(0,0,0,0.08);
}
.carousel-btn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(255,255,255,0.9);
  border:none;
  width:36px;
  height:36px;
  border-radius:50%;
  cursor:pointer;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:10;
  box-shadow:0 2px 8px rgba(0,0,0,0.15);
  transition:background 0.2s;
}
.carousel-btn:hover{
  background:rgba(255,255,255,1);
}
.carousel-prev{
  left:10px;
}
.carousel-next{
  right:10px;
}
.carousel-label{
  text-align:center;
  margin:15px 0 0;
  font-family:"Inter", sans-serif;
  font-weight:700;
  font-size:18px;
  letter-spacing:0.1em;
  color:#111;
}

/* Contact Section */
.contact-section{
  padding:80px 0;
  background:#e8e4df;
}
.contact-title{
  font-family:"Inter", sans-serif;
  font-weight:800;
  font-size:clamp(36px, 5vw, 48px);
  text-align:center;
  margin:0 auto 30px;
  max-width: 900px;
  color:#333;
}
.contact-form{
  max-width:600px;
  background:#fff;
  padding:40px;
  border-radius:12px;
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
  margin: 0 auto; /* center horizontally */
}
.form-group{
  margin-bottom:24px;
}
.form-group label{
  display:block;
  margin-bottom:8px;
  font-weight:600;
  color:#333;
  font-size:14px;
}
.form-select,
.form-input,
.form-textarea{
  width:100%;
  padding:12px 16px;
  border:1px solid #ddd;
  border-radius:8px;
  font-size:15px;
  font-family:inherit;
  transition:border-color 0.2s;
}
.form-select:focus,
.form-input:focus,
.form-textarea:focus{
  outline:none;
  border-color:#111;
}
.form-textarea{
  resize:vertical;
  min-height:100px;
}
.form-checkbox{
  display:flex;
  align-items:center;
  gap:10px;
  cursor:pointer;
  font-size:14px;
}
.form-checkbox input[type="checkbox"]{
  width:18px;
  height:18px;
  cursor:pointer;
}
.contact-form .btn{
  width:100%;
  padding:14px;
  font-size:16px;
  cursor:pointer;
  border:none;
  margin:0;
}
.contact-note{
  margin:16px 0 0;
  font-size:12px;
  color:#666;
  text-align:center;
  line-height:1.5;
}

/* Responsive */
@media (max-width:1000px){
  .features{ grid-template-columns:1fr; text-align:center }
  .main-nav ul{ display:none }
  .collection-grid{ grid-template-columns:1fr; }
  .hero-inner{ padding:40px 18px }
  .gallery-collab{ grid-template-columns:1fr; grid-template-areas:"a" "b" "c" }
  .collab-card.a,.collab-card.b,.collab-card.c{ height:auto }
  /* Design Intelligente responsive */
  .di-row{ grid-template-columns:1fr; gap:30px }
  .di-row-reverse{ grid-template-columns:1fr }
  .di-text-block{ padding:0 }
  .di-text-center{ padding:0 }
  .di-carousels-3 { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width:520px){
  .hero-title{ font-size:28px }
  .collection-item img{ height:220px }
  .header-inner{ height:60px }
  .logo img{ height:80px }
  .di-title{ font-size:36px; margin-bottom:40px }
  .design-intelligente{ padding:50px 0 }
  .di-row{ margin-bottom:40px }
  .carousel-slide img{ height:220px }
}


/* ===========================
   RECENSIONI - Review System
   =========================== */

/* Review Form Section */
.review-form-section {
  margin-top: 120px;
  margin-bottom: 60px;
  padding: 0 20px;
}

.review-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.review-form-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 12px;
}

.review-form-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 40px;
}

.review-form {
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.form-group {
  margin-bottom: 28px;
}

.form-group label {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  transition: all 0.3s ease;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a1a1a;
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.char-count {
  display: block;
  font-size: 13px;
  color: #999;
  margin-top: 6px;
  text-align: right;
}

/* Star Rating */
.star-rating {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 8px;
  font-size: 40px;
  line-height: 1;
}

.star-rating input[type="radio"] {
  display: none;
}

.star-rating label {
  cursor: pointer;
  color: #ddd;
  transition: all 0.2s ease;
  margin: 0;
}

.star-rating label:hover,
.star-rating label:hover ~ label,
.star-rating input[type="radio"]:checked ~ label {
  color: #ffd700;
  transform: scale(1.1);
}

.rating-value {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  font-weight: 500;
}

/* Image Upload */
.image-upload-area {
  position: relative;
  margin-bottom: 16px;
}

.file-input {
  display: none;
}

.file-input-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  border: 2px dashed #ccc;
  border-radius: 12px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-input-label:hover {
  border-color: #1a1a1a;
  background: #f5f5f5;
}

.upload-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.upload-text {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.upload-info {
  font-size: 13px;
  color: #999;
}

/* Image Preview */
.image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f5;
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.preview-remove:hover {
  background: rgba(0,0,0,0.9);
  transform: scale(1.1);
}

/* Checkbox */
.checkbox-group {
  margin-top: 24px;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.checkbox-label span {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.checkbox-label a {
  color: #1a1a1a;
  text-decoration: underline;
}

/* Form Actions */
.form-actions {
  margin-top: 32px;
  text-align: center;
}

.btn-submit {
  min-width: 200px;
  padding: 14px 32px;
  font-size: 16px;
}

.btn-loader {
  display: inline-block;
}

/* Form Messages */
.form-message {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 15px;
  font-weight: 500;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Recent Reviews Section */
.recent-reviews {
  margin-top: 60px;
  padding-top: 60px;
  border-top: 2px solid #e0e0e0;
}

.recent-reviews h2 {
  font-size: 32px;
  font-weight: 700;
  color: #1a1a1a;
  text-align: center;
  margin-bottom: 40px;
}

/* Reviews Display on Homepage */
.reviews-section {
  background: transparent;
  padding: 80px 20px;
  margin: 60px 0;
  text-align: center;
}

.reviews-header {
  text-align: center;
  margin-bottom: 50px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.reviews-header h2 {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.reviews-header p {
  font-size: 18px;
  color: #666;
}

/* Wrapper scrollabile orizzontale */
.reviews-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px 10px;
}

/* Scrollbar (facoltativo) */
.reviews-scroll-wrapper::-webkit-scrollbar {
  height: 6px;
}
.reviews-scroll-wrapper::-webkit-scrollbar-thumb {
  background: rgba(0,0,0,0.2);
  border-radius: 3px;
}
.reviews-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

/* Contenitore delle recensioni in riga */
.reviews-grid {
  display: flex;
  gap: 18px;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  padding: 10px 0;
}

/* Card recensioni più piccole e rettangolari */
.review-card {
  flex: 0 0 auto;
  min-width: 240px;
  max-width: 260px;
  background: #fafafa;
  border-radius: 18px;
  padding: 20px 18px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.reviewer-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
}

.review-date {
  font-size: 13px;
  color: #999;
}

.review-stars {
  font-size: 18px;
  color: #ffd700;
  line-height: 1;
}

.review-comment {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  margin-bottom: 16px;
}

.review-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.review-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.review-images img:hover {
  transform: scale(1.05);
}

.reviews-cta {
  text-align: center;
  margin-top: 50px;
}

.reviews-cta .btn {
  padding: 14px 32px;
  font-size: 16px;
}

/* QR Code Section (per homepage) */
.qr-review-banner {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  padding: 60px 20px;
  text-align: center;
  border-radius: 16px;
  margin: 60px auto;
  max-width: 1200px;
  color: #fff;
}

.qr-review-banner h3 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.qr-review-banner p {
  font-size: 18px;
  margin-bottom: 30px;
  opacity: 0.9;
}

.qr-code-container {
  display: inline-block;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  margin-bottom: 20px;
}

.qr-code-container img {
  display: block;
  width: 200px;
  height: 200px;
}

.qr-review-banner .btn-ghost {
  background: transparent;
  border: 2px solid #fff;
  color: #fff;
}

.qr-review-banner .btn-ghost:hover {
  background: #fff;
  color: #1a1a1a;
}

/* Responsive per recensioni + hero mobile */
@media (max-width: 768px) {
  /* HERO: niente centraggio verticale, sposto il contenuto sotto al logo */
  .hero{
    align-items: flex-start;
  }
  .hero-inner{
    padding-top: calc(var(--header-offset) + 50px);
    padding-bottom: 40px;
  }

  .review-form-section {
    margin-top: 90px;
  }
  
  .review-form-title {
    font-size: 32px;
  }
  
  .review-form {
    padding: 28px 20px;
  }
  
  .star-rating {
    font-size: 36px;
  }

  /* riduco un po' le card e lo spacing su mobile */
  .reviews-grid {
    gap: 16px;
  }

  .review-card {
    min-width: 220px;
    max-width: 240px;
    padding: 18px 16px;
  }
  
  .reviews-section {
    padding: 50px 0;
  }
  
  .reviews-header h2 {
    font-size: 32px;
  }
  
  .qr-review-banner h3 {
    font-size: 26px;
  }
  
  .qr-code-container img {
    width: 160px;
    height: 160px;
  }
}

@media (max-width: 520px) {
  .review-form-title {
    font-size: 28px;
  }
  
  .review-form-subtitle {
    font-size: 16px;
  }
  
  .star-rating {
    font-size: 32px;
  }
  
  .image-preview {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
}
