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

:root{
  /* Colori brand */
  --make-bg: #111;
  --make-bg-2: #1a1a1a;
  --make-text: #eee;
  --make-white: #fff;
  --make-muted: #ddd;
  --make-dark-2: #222;
  --make-dark-3: #333;
  --make-border: #444;

  --make-red: #e3062a;
  --make-red-2: #ff4b5c;
  --make-grad: linear-gradient(135deg, var(--make-red), var(--make-red-2));

  /* Effetti */
  --shadow-soft: 0 12px 30px rgba(0,0,0,0.25);
  --shadow-strong: 0 18px 40px rgba(0,0,0,0.35);
}

html{
  scroll-behavior: smooth;
  scroll-snap-type: y proximity; /* snap solo la hero */
}
body{
  font-family: 'Quicksand', sans-serif;
  background: var(--make-bg);
  color: var(--make-text);
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
.container{ width: 90%; max-width: 1200px; margin: auto; }

/* ==========================================================================  
   2) TIPOGRAFIA & BASE  
   ========================================================================== */
.big-title{
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  color: var(--make-white);
  margin-bottom: 40px;
}

/* ==========================================================================  
   3) LAYOUT GENERALE & POPUP  
   ========================================================================== */
.section-full{
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bg-diagonal{
  position: absolute;
  inset: 0;
  background-color: #222;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
  z-index: 0;
}
.reverse-diag{
  clip-path: polygon(0 15%, 100% 0, 100% 100%, 0% 100%);
}
.accent-bg{
  background-color: var(--make-red);
  opacity: 0.1;
}
/* Header */
.site-header{
  position: fixed; top: 0; width: 100%; background: transparent;
  z-index: 1500; transition: opacity .4s;
}
.site-header.hide-header{ opacity: 0; pointer-events: none; }

.header-flex{
  display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
}
.logo{ height: 50px; }

/* Hamburger */
.menu-trigger{
  position: fixed; top: 20px; right: 24px; z-index: 2100;
  width: 36px; height: 30px; cursor: pointer;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: opacity .4s, transform .4s;
}
.menu-trigger .line{
  display: block; width: 100%; height: 4px; background: var(--make-white);
  transition: transform .4s ease, opacity .4s ease;
}
.menu-trigger.open .line1{ transform: rotate(45deg) translate(5px, 5px); }
.menu-trigger.open .line2{ opacity: 0; }
.menu-trigger.open .line3{ transform: rotate(-45deg) translate(7px, -7px); }
.menu-trigger.hide-trigger{ opacity: 0; }

/* Side menu */
.side-menu{
  position: fixed; top: 0; right: -320px; width: 320px; height: 100%;
  background: #1a1a1a; color: var(--make-white);
  padding: 60px 20px; transition: right .5s ease; z-index: 2000;
}
.side-menu.open{ right: 0; }
.side-menu-links{ list-style: none; margin-top: 100px; }
.side-menu-links li{ margin-bottom: 30px; }
.side-menu-links a{
  color: var(--make-white); text-decoration: none; font-size: 1.3rem; transition: color .3s;
}
.side-menu-links a:hover{ color: var(--make-red); }
.side-menu-socials{
  margin-top: 60px; display: flex; gap: 20px; justify-content: center;
}
.side-menu-socials a{ font-size: 1.4rem; color: var(--make-white); transition: color .3s; }
.side-menu-socials a:hover{ color: var(--make-red); }

/* Lingua */
.lang-switch-design{
  position: relative; cursor: pointer; color: var(--make-white); font-weight: 600;
  transition: color .3s; z-index: 1600;
}
.lang-switch-design:hover{ color: var(--make-red); }
.lang-switch-design .lang-other{
  display: none; position: absolute; top: 130%; left: 0; background: #333;
  padding: 6px 12px; border-radius: 6px; font-size: .9rem;
}
.lang-switch-design.open .lang-other{ display: block; }

/* ==========================================================================  
   5) HERO  
   ========================================================================== */

.hero-full{ scroll-snap-align: start; }
.hero-bg-diag{
  position: absolute; inset: 0;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); overflow: hidden;
}
.hero-video{
  position: absolute; width: 120%; height: 120%; top: -10%; left: -10%;
  object-fit: cover; transform: scale(1.1);
}
.light-particles{
  position: absolute; inset: 0; pointer-events: none;
  background: url('images/particles.png') repeat center; opacity: .3;
}
.hero-content{ position: relative; z-index: 2; text-align: center; color: var(--make-white); padding: 0 20px; }
.hero-title{
  font-family: 'Space Grotesk', sans-serif; font-size: 4rem; line-height: 1.1; margin-bottom: 20px;
}
.hero-subtitle{ font-size: 1.6rem; margin-bottom: 30px; }
.scroll-invite{
  font-size: 1rem; color: var(--make-white);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  text-decoration: none; cursor: pointer; transition: color .3s;
}
.scroll-invite:hover{ color: var(--make-red); }
.scroll-invite i{ font-size: 1.3rem; animation: bounce 1.5s infinite; }
@keyframes bounce{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
.prod-full{
  display: flex;
  align-items: center;
  justify-content: center;
}
.prod-content{
  position: relative;
  z-index: 2;
  text-align: center;
  padding-bottom: 60px; /* spazio extra sotto */
}

/* Swiper container */
.prod-grid.swiper {
  width: 100%;
  padding-bottom: 40px;
}

.prod-grid .swiper-wrapper {
  display: flex;
  align-items: center;
}

/* Card compatte (4 per pagina desktop, 2 mobile) */
.prod-item{
  position: relative;
  width: 240px;
  height: 330px;
  overflow: hidden;
  cursor: pointer;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  box-shadow: var(--shadow-soft);
  transition: transform .35s ease, box-shadow .35s ease;
  margin: auto;
}

.prod-item:hover{
  transform: translateY(-6px);
  box-shadow: var(--shadow-strong);
}

.prod-item .prod-bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

/* Maschera */
.prod-mask{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.15);
  transition: background .4s;
  z-index: 1;
}
.prod-item:hover .prod-mask{
  background: rgba(0,0,0,.05);
}

/* Contenuto */
.prod-link{
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-decoration: none;
}

/* Logo */
.prod-logo{
  position: relative;
  width: 110px;
  height: 110px;
  display: grid;
  place-items: center;
  transition: transform .35s ease;
}
.prod-item:hover .prod-logo{
  transform: scale(1.05);
}

.prod-logo svg{
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.25));
  transition: transform .35s ease, filter .35s ease;
}
.prod-item:hover .prod-logo svg{
  transform: translateY(-2px);
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.35));
}

/* Titolo */
.prod-item h3{
  margin-top: 18px;
  color: var(--make-white);
  font-size: 1.2rem;
  transform: translateY(10px);
  opacity: .9;
  transition: transform .35s ease, opacity .35s ease;
}
.prod-item:hover h3{
  transform: translateY(0);
  opacity: 1;
}

/* Hover shape */
.prod-item .prod-logo::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: transparent;
  opacity: 0;
  transform: scale(.9);
  border-radius: 22px;
  transition: all .35s ease;
}
.prod-item:hover .prod-logo::before{
  background: var(--make-grad);
  opacity: 1;
  transform: scale(1);
}

/* Forme diverse */
.shape-circle .prod-logo::before{ border-radius: 999px; }
.shape-rounded .prod-logo::before{ border-radius: 24px; }
.shape-rect-h .prod-logo{ width: 148px; height: 105px; }
.shape-rect-h .prod-logo::before{ border-radius: 18px; transform: scale(.92); }
.shape-rect-v .prod-logo{ width: 105px; height: 148px; }
.shape-rect-v .prod-logo::before{ border-radius: 18px; transform: scale(.92); }
.shape-diamond .prod-logo::before{
  clip-path: polygon(50% 0,100% 50%,50% 100%,0 50%); border-radius: 0;
}
.shape-hex .prod-logo::before{
  clip-path: polygon(25% 6%,75% 6%,100% 50%,75% 94%,25% 94%,0 50%); border-radius: 0;
}
.shape-mesh .prod-logo::before{ border-radius: 999px; background: var(--make-grad); }
.shape-mesh .prod-logo::after{
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 999px;
  background:
    linear-gradient(0deg, rgba(255,255,255,.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0;
  transition: opacity .35s ease;
  z-index: -1;
}
.shape-mesh:hover .prod-logo::after{
  opacity: 1;
}

/* Swiper Pagination */
.prod-grid .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(255,255,255,0.25);
  opacity: 1;
  transition: background .3s ease, transform .3s ease;
  border-radius: 50%;
}
.prod-grid .swiper-pagination-bullet-active {
  background: var(--make-grad);
  transform: scale(1.3);
}
/* ==========================================================================
   7) CHI SIAMO, REALIZZAZIONI, ECOWORK
   ========================================================================== */
.about-full, .realizza-full, .ecowork-full{
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.about-wrapper{
  display: flex; align-items: center; gap: 60px; z-index: 2;
}
.about-text{ max-width: 500px; color: var(--make-white); text-align: left; }
.about-text h2{ font-size: 3rem; margin-bottom: 20px; }
.about-text p{ font-size: 1.2rem; color: var(--make-muted); }
.about-visual img{
  border-radius: 16px; width: 100%; max-width: 500px; object-fit: cover;
}
.realizza-content, .ecowork-content{ position: relative; z-index: 2; color: var(--make-white); }

/* ==========================================================================
   8) CONTATTI
   ========================================================================== */
.contact-full{
  position: relative; display: flex; align-items: flex-start; justify-content: center;
  gap: 40px; padding: 100px 20px; flex-wrap: wrap;
}
.contact-form-wrapper{ flex: 1 1 45%; }
.contact-form{ display: grid; gap: 20px; }
.contact-form input, .contact-form textarea{
  width: 100%; padding: 16px; background: var(--make-bg-2);
  border: 1px solid var(--make-border); border-radius: 8px; color: var(--make-white);
  transition: border-color .3s;
}
.contact-form input:focus, .contact-form textarea:focus{
  border-color: var(--make-red); outline: none;
}
.btn-submit{
  background: var(--make-red); color: var(--make-white);
  padding: 14px 36px; border-radius: 8px; font-weight: 600; font-size: 1.1rem;
  border: none; cursor: pointer; transition: transform .3s, background .3s; text-align: center;
}
.btn-submit:hover{ transform: scale(1.05); background: #b0041f; }

.map-box{
  flex: 1 1 45%; min-height: 350px; border-radius: 12px; overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); display: flex; flex-direction: column;
}
.map-socials{
  display: flex; justify-content: center; gap: 28px; padding: 16px 12px; background: var(--make-bg);
}
.map-socials a{ font-size: 1.8rem; color: var(--make-white); transition: color .3s; }
.map-socials a:hover{ color: var(--make-red); }
.site-footer{
  background: #0c0c0c;
  color: var(--make-text);
  padding: 60px 20px;
  scroll-snap-align: none;
}
.footer-grid{
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-left{ flex: 1 1 45%; }
.footer-logo{ height: 40px; margin-bottom: 20px; }
.footer-left p{ line-height: 1.6; font-size: .95rem; }
.footer-left a{ color: var(--make-white); text-decoration: none; }
.footer-left a:hover{ color: var(--make-red); }

.footer-socials{
  margin-top: 20px;
  display: flex;
  gap: 20px;
}
.footer-socials a{
  font-size: 1.4rem;
  color: var(--make-white);
  transition: color .3s;
}
.footer-socials a:hover{ color: var(--make-red); }

.footer-right{ flex: 1 1 45%; }
.footer-right h4{
  margin-bottom: 15px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.2rem;
}
.footer-legal-links{ list-style: none; }
.footer-legal-links li{ margin-bottom: 10px; }
.footer-legal-links a{
  color: var(--make-white);
  text-decoration: none;
  transition: color .3s;
}
.footer-legal-links a:hover{ color: var(--make-red); }

/* ==========================================================================  
   10) BACK TO TOP  
   ========================================================================== */
.back-to-top{
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--make-red);
  color: var(--make-white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
  z-index: 3000;
}
.back-to-top.show{
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================  
   11) RESPONSIVE  
   ========================================================================== */
/* TABLET */
@media (max-width: 992px){
  .about-wrapper{ flex-direction: column; }
  .contact-full{ flex-direction: column; align-items: center; }
  .contact-form-wrapper, .map-box{ flex: 1 1 100%; width: 100%; }
  .map-box iframe{ height: 300px; }
}

/* MOBILE */
@media (max-width: 768px){
  .hero-title{ font-size: 2.4rem; }
  .hero-subtitle{ font-size: 1.2rem; }
  .about-visual{ display: none; }
  .menu-trigger{ top: 70px; }
  .footer-grid{ flex-direction: column; text-align: center; }
}

/* PICCOLI SMARTPHONE */
@media (max-width: 480px){
  .prod-item{
    width: 200px;
    height: 290px;
  }
  .prod-logo{
    width: 90px;
    height: 90px;
  }
  .prod-logo svg{
    width: 44px;
    height: 44px;
  }
  .prod-item h3{
    font-size: 1.05rem;
  }
}