:root {
  --primary: #d44423;
  --primary-dark: #a2331b;
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 10px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
.container { max-width: 100%; margin: 0 auto;}

header {
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.nav-wrapper { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.5rem; }
.logo-link { display: flex; align-items: center; margin-right: 1rem; }
.logo { height: 40px; width: auto; }
.site-title { font-size: 1.75rem; font-weight: 700; display: flex; }
.site-title .highlight { color: var(--primary); }
.site-title .muted { color: var(--text-muted);}
nav a { font-weight: 500; padding: 0.4rem 0.8rem; border-radius: var(--radius); transition: background 0.2s; }
nav a:hover { background: var(--primary); color: #fff; }

nav ul li.active a {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Hamburger */
.menu-toggle { display:none; }
.hamburger {
  display:none;
  width:30px; height:24px;
  flex-direction:column; justify-content:space-between;
  cursor:pointer;
}
.hamburger span {
  display:block; height:4px; background:var(--text);
  border-radius:2px; transition:transform 0.3s;
  background: var(--text-muted);
}
nav ul { display:flex; gap:1.5rem; list-style:none; }

/* Hero Section */
.hero {
  height: 100vh;
  background: url('https://source.unsplash.com/1600x900/?festival,food') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(0,0,0,0.6), rgba(212,68,35,0.6));
}
.hero-content {
  position: relative;
  max-width: 800px;
  padding: 0 1rem;
  animation: fadeInUp 1s ease-out;
}
.hero h1 {
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6);
}
.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: rgba(255,255,255,0.9);
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.hero .btn {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2rem;
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  transition: background 0.3s, transform 0.3s;
}
.hero .btn:hover {
  background: var(--primary-dark);
  transform: translateY(-4px) scale(1.05);
}
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 30px; height: 50px;
  border: 2px solid #fff;
  border-radius: var(--radius);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}
.scroll-indicator span {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: scroll 1.5s infinite;
}
@keyframes scroll {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(20px); opacity: 0; }
}

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

/* Reset other sections spacing */
section {
    background: var(--surface);
    /*margin-top: 3rem;*/
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
section h2 {
    font-size: 2rem;
    text-align: center;
    padding: 2rem 1rem 1rem;
}

.testimonials {
  margin-top: 3rem;
}

.feature-grid, .testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
    gap: 2rem;
    padding: 0 2rem 2rem;
}
.feature-item, .testimonial-item {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    text-align: center;
}
.feature-item h3 {
    margin-bottom: .5rem;
    color: var(--primary);
}
.feature-item p, .testimonial-item p {
    color: var(--text-muted);
}

.product-gallery {
  padding: 0 1.5rem; 
}

.demo {
  padding: 0 1.5rem; 
}

.features {
    padding: 4rem 1.5rem;
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.demo iframe {
    width: 100%;
    height: 420px;
    border: none;
    border-radius: var(--radius);
    margin-top: 8%;
}

footer {
    text-align: center;
    font-size: .9rem;
    color: var(--text-muted);
    padding: 2rem 1rem;
    background: var(--surface);
    border-top: 1px solid var(--border);
}
.logo {
  height: 60px;
  width: auto;
}
.logo-link {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .nav-wrapper {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    position: relative;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 20px;
    cursor: pointer;
    z-index: 1001;
  }

  .hamburger span {
    height: 3px;
    background-color: var(--text-muted);
    border-radius: 2px;
    transition: 0.3s;
  }

  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    display: none;
    z-index: 1000;
  }

  .menu-toggle:checked + label + nav {
    display: block;
  }

  nav ul {
    flex-direction: column;
    padding: 1rem 0;
  }

  nav li {
    text-align: center;
    margin: 0.5rem 0;
  }

  nav a {
    display: block;
    padding: 0.75rem;
    color: var(--text);
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s;
  }

  nav a:hover {
    background-color: var(--primary);
    color: #fff;
  }

  /* Hero responsive */
  .hero h1 { font-size: 2.5rem; }
  .hero p { font-size: 1rem; }
  .hero .btn { width: 100%; padding: 1rem; }

  .gallery-grid {
    grid-template-columns: 1fr !important; /* forza 1 colonna */
  }

  .gallery-grid img {
    width: 100%;
    height: auto;
    object-fit: cover;
    margin-top: 20px;
  }
}

.terms-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terms-label a {
  color: var(--primary);
  text-decoration: underline;
}

/* COOKIE */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--text);
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 9999;
  box-shadow: 0 -2px 6px rgba(0,0,0,0.1);
  animation: fadeInUp 0.5s ease-out;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.cookie-banner a {
  color: var(--primary);
  font-weight: 500;
}
.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.cookie-btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.cookie-btn:hover {
  background: var(--primary-dark);
}
.cookie-btn.secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.cookie-btn.secondary:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.product-gallery {
  background: var(--surface);
  padding: 2rem 3rem; /* più spazio verticale */
  border-radius: 0; /* facoltativo: rimuove bordi stondati */
  box-shadow: none; /* opzionale: toglie l'ombra */
  margin-top: 5rem;
}

.product-gallery h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.gallery-item img:hover {
  transform: scale(1.03);
}

.caption {
  margin-top: 0.5rem;
  font-size: 1rem;
  color: #444;
  font-weight: 500;
}

/* CONTACT */

.contact .contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto; /* CENTRATURA */
  width: 100%;
}

.contact input,
.contact textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
  margin-top: 20px;
}

.contact button {
  background: var(--primary);
  color: #fff;
  padding: .75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
}

.contact button:hover {
  background: var(--primary-dark);
}

.contact {
  background: var(--surface);
  padding: 3rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin: 3rem auto;
  max-width: 800px;
}

.contact h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.contact p {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

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

.terms-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.terms-label input[type="checkbox"] {
  margin: 0;
  transform: scale(1.2);
}

.contact-form button {
  background: var(--primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: var(--primary-dark);
}

.button-contact {
  margin-top: 30px;
}

.contact-info {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
} 

.image-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.image-modal img {
  display: block;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
}

.image-modal .close-btn {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  padding: 1rem;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  box-sizing: border-box;
}

.modal-content {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  margin: 5vh auto;
  border-radius: 8px;
  object-fit: contain;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

@media (max-width: 600px) {
  .close-btn {
    top: 10px;
    right: 15px;
    font-size: 28px;
  }

  .modal-content {
    max-width: 100%;
    max-height: 80vh;
    margin: 10vh auto;
  }
}

.checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text);
  margin-top: 1rem;
  line-height: 1.4;
}

.checkbox-wrapper input[type="checkbox"] {
  margin-top: 0.2rem;
  transform: scale(1.1);
  width: auto;
  accent-color: var(--primary); /* se il browser lo supporta */
}

.checkbox-wrapper a {
  color: var(--primary);
  text-decoration: underline;
}

.checkbox-wrapper a:hover {
  text-decoration: none;
}

.contact.terms-page {
  background: var(--surface);
  padding: 3rem 2rem;
  max-width: 900px;
  margin: 3rem auto;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  font-family: "Segoe UI", Roboto, sans-serif;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text, #333);
}

.terms-page h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--primary);
}

.terms-page p {
  margin-bottom: 1.2rem;
  text-align: justify;
}

.terms-page h3 {
  font-size: 1.35rem;
  margin-top: 2.5rem;
  margin-bottom: 0.8rem;
  color: var(--primary-dark, #005fa3);
  border-left: 4px solid var(--primary);
  padding-left: 0.6rem;
}

.terms-page ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.terms-page ul li {
  margin-bottom: 0.4rem;
}

.terms-page a {
  color: var(--primary);
  text-decoration: underline;
  word-break: break-word;
}

.terms-page a:hover {
  text-decoration: none;
}

/* Responsive migliorato */
@media (max-width: 600px) {
  .contact.terms-page {
    padding: 2rem 1rem;
    font-size: 1rem;
  }

  .terms-page h2 {
    font-size: 1.75rem;
  }

  .terms-page h3 {
    font-size: 1.2rem;
  }
}

.alert-success {
  color: #155724;
  background-color: #d4edda;
  padding: 10px;
  border: 1px solid #c3e6cb;
  border-radius: 4px;
  margin-top: 10px;
}

.alert-danger {
  color: #721c24;
  background-color: #f8d7da;
  padding: 10px;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin-top: 10px;
}
