﻿:root {
 --red: #b5121b;
 --red-dark: #8f0f17;
 --paper: #f4f4f1;
 --paper-light: #fafaf8;
 --white: #ffffff;
 --text: #242424;
 --muted: #666666;
 --line: #deded8;
 --soft: #eeeeea;
 --shadow: 0 18px 45px rgba(40, 40, 40, .10);
}

* {
 box-sizing: border-box;
}

body {
 margin: 0;
 font-family: Arial, Helvetica, sans-serif;
 color: var(--text);
 background: var(--paper);
}

 body.mobile-menu-open {
  overflow: hidden;
 }

a {
 color: inherit;
}

/* MOBILE TOPBAR */

.mobile-topbar {
 display: none;
}

.mobile-menu-overlay {
 display: none;
}

.mobile-menu-close {
 display: none;
}

/* LAYOUT */

.layout {
 min-height: 100vh;
}

.sidebar {
 position: fixed;
 left: 0;
 top: 0;
 bottom: 0;
 width: 290px;
 background: linear-gradient(180deg, #ffffff 0%, #f1f1ed 100%);
 border-right: 1px solid var(--line);
 padding: 34px 28px;
 overflow-y: auto;
 z-index: 9999;
}

.main-content {
 margin-left: 290px;
 min-height: 100vh;
 background: var(--paper-light);
}

/* LOGO */

.logo-area {
 display: flex;
 justify-content: center;
 align-items: center;
 text-decoration: none;
 margin-bottom: 24px;
 padding-bottom: 20px;
 border-bottom: 1px solid var(--line);
}

 .logo-area img {
  display: block;
  width: 175px;
  height: auto;
 }

/* MENU */

.main-menu {
 display: flex;
 flex-direction: column;
 gap: 4px;
}

.menu-link {
 position: relative;
 display: block;
 width: 100%;
 text-decoration: none;
 padding: 10px 0 10px 18px;
 font-size: 14px;
 line-height: 1.25;
 text-transform: uppercase;
 letter-spacing: .035em;
 color: #2d2d2d;
 transition: all .22s ease;
}

 .menu-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 4px;
  height: 18px;
  background: transparent;
  border-radius: 10px;
  transition: background .22s ease;
 }

 .menu-link:hover,
 .menu-link.strong {
  color: var(--red);
 }

  .menu-link:hover::before,
  .menu-link.strong::before {
   background: var(--red);
  }

.main-menu,
.menu-group,
.menu-group-toggle {
 position: relative;
 z-index: 10000;
}

.menu-group-toggle {
 border: 0;
 background: transparent;
 cursor: pointer;
 text-align: left;
 font-family: inherit;
}

 .menu-group-toggle::after {
  content: "+";
  float: right;
  color: var(--red);
  font-weight: bold;
  padding-right: 4px;
 }

.menu-group.open .menu-group-toggle::after {
 content: "−";
}

.menu-group .submenu {
 display: none;
}

.menu-group.open .submenu {
 display: flex;
}

.submenu {
 margin: 2px 0 12px 18px;
 padding-left: 16px;
 border-left: 1px solid var(--line);
 flex-direction: column;
 gap: 3px;
}

 .submenu a {
  text-decoration: none;
  font-size: 12px;
  line-height: 1.35;
  color: #555;
  padding: 4px 0;
 }

  .submenu a::before {
   content: "›";
   color: var(--red);
   margin-right: 6px;
  }

  .submenu a:hover {
   color: var(--red);
  }

/* CTA SIDEBAR */

.side-cta {
 margin-top: 22px;
 display: flex;
 flex-direction: column;
 gap: 10px;
}

.side-contact,
.side-quote {
 display: block;
 width: 100%;
 text-decoration: none;
 text-align: center;
 padding: 12px 14px;
 font-size: 13px;
 font-weight: 700;
 text-transform: uppercase;
 letter-spacing: .04em;
 border-radius: 2px;
}

.side-contact {
 color: var(--red);
 background: #fff;
 border: 1px solid var(--red);
}

.side-quote {
 color: #fff;
 background: var(--red);
 border: 1px solid var(--red);
}

.side-contact:hover {
 background: #f8f8f5;
}

.side-quote:hover {
 background: var(--red-dark);
}

/* LINGUE / CERTIFICAZIONE */

.language-switch {
 display: flex;
 justify-content: center;
 gap: 12px;
 margin-top: 20px;
 padding-top: 22px;
 border-top: 1px solid var(--line);
}

 .language-switch a {
  font-size: 13px;
  text-decoration: none;
  color: #555;
  font-weight: bold;
 }

  .language-switch a:hover {
   color: var(--red);
  }

.cert-box {
 margin-top: 18px;
 border: 1px solid var(--line);
 background: rgba(255,255,255,.72);
 padding: 11px 14px;
 text-align: center;
}

.cert-label {
 text-transform: uppercase;
 color: #777;
 font-size: 10px;
 letter-spacing: .08em;
 margin-bottom: 6px;
}

.cert-value {
 font-size: 14px;
 color: var(--red);
 font-weight: 700;
 letter-spacing: .04em;
}

/* HERO */

.hero {
 position: relative;
 min-height: 720px;
 overflow: hidden;
 border-bottom: 1px solid var(--line);
 background: #e9e9e5;
}

.hero-bg {
 position: absolute;
 inset: 0;
 background-size: cover;
 background-position: center center;
 opacity: 0;
 animation: heroFade 24s infinite;
 transform: scale(1.03);
}

.hero-bg-1 {
 background-image: url("../../immagini/hero/sagoma.webp");
 animation-delay: 0s;
}

.hero-bg-2 {
 background-image: url("../../immagini/hero/nautica.webp");
 animation-delay: 8s;
}

.hero-bg-3 {
 background-image: url("../../immagini/hero/alluminio.webp");
 animation-delay: 16s;
}

@keyframes heroFade {
 0% {
  opacity: 0;
 }

 8% {
  opacity: 1;
 }

 30% {
  opacity: 1;
 }

 38% {
  opacity: 0;
 }

 100% {
  opacity: 0;
 }
}

.hero-overlay {
 position: absolute;
 inset: 0;
 background: linear-gradient(90deg, rgba(250,250,248,.92) 0%, rgba(250,250,248,.78) 34%, rgba(250,250,248,.24) 68%, rgba(250,250,248,.04) 100%);
 z-index: 2;
}

.hero-content {
 position: relative;
 z-index: 5;
 min-height: 720px;
 display: grid;
 grid-template-columns: 38% 62%;
 align-items: center;
}

.hero-text {
 position: relative;
 z-index: 8;
 padding: 80px 30px 80px 70px;
}

.eyebrow {
 color: var(--red);
 font-size: 13px;
 font-weight: bold;
 letter-spacing: .17em;
 text-transform: uppercase;
 margin-bottom: 18px;
}

.hero h1 {
 font-size: 54px;
 line-height: 1.06;
 margin: 0 0 26px;
 color: #202020;
 max-width: 620px;
}

 .hero h1 span {
  color: var(--red);
 }

.hero p {
 max-width: 520px;
 font-size: 19px;
 line-height: 1.65;
 color: #333;
 margin-bottom: 24px;
}

.hero-payoff {
 margin-top: 18px;
 font-size: 13px;
 text-transform: uppercase;
 letter-spacing: .08em;
 color: #444;
}

.btn-red {
 display: inline-flex;
 align-items: center;
 gap: 18px;
 background: var(--red);
 color: #fff;
 text-decoration: none;
 padding: 15px 26px;
 font-weight: bold;
 border-radius: 2px;
 box-shadow: 0 10px 25px rgba(181, 18, 27, .22);
 margin-top: 28px;
}

 .btn-red:hover {
  background: var(--red-dark);
 }

/* AREA 3D */

.hero-3d {
 position: relative;
 z-index: 7;
 width: 100%;
 height: 680px;
 display: flex;
 align-items: center;
 justify-content: center;
 overflow: visible;
}

#girante3d {
 width: 100%;
 height: 100%;
 cursor: grab;
 pointer-events: auto;
}

 #girante3d canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
  pointer-events: auto;
 }

/* SEZIONI */

.section {
 padding: 54px 70px;
 background: #ffffff;
}

.section-title {
 margin: 0 0 26px;
 font-size: 25px;
 text-transform: uppercase;
 letter-spacing: .06em;
 color: #222;
}

 .section-title::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  background: var(--red);
  margin-top: 12px;
 }

/* SETTORI */

.sectors-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 border-top: 1px solid var(--line);
 border-left: 1px solid var(--line);
 background: #fff;
}

.sector-card {
 min-height: 150px;
 padding: 24px 18px;
 border-right: 1px solid var(--line);
 border-bottom: 1px solid var(--line);
 text-decoration: none;
 text-align: center;
 background: #fff;
 transition: all .22s ease;
}

 .sector-card:hover {
  background: #f8f8f5;
  box-shadow: inset 0 -3px 0 var(--red);
 }

.sector-icon {
 height: 58px;
 display: flex;
 align-items: center;
 justify-content: center;
 margin-bottom: 18px;
}

 .sector-icon i {
  font-size: 42px;
  color: var(--red);
  transition: transform .25s ease;
 }

.sector-card:hover .sector-icon i {
 transform: scale(1.08);
}

.sector-card strong {
 display: block;
 font-size: 14px;
 text-transform: uppercase;
 letter-spacing: .03em;
}

/* FASCIA FEATURE */

.feature-band {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 border-top: 1px solid var(--line);
 border-bottom: 1px solid var(--line);
}

.feature {
 min-height: 210px;
 padding: 34px;
 background: #fff;
 border-right: 1px solid var(--line);
}

 .feature.highlight {
  background: #deded6;
 }

 .feature h3 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 25px;
  line-height: 1.15;
  text-transform: uppercase;
 }

 .feature p {
  margin: 0;
  color: #4f4f4f;
  line-height: 1.55;
  font-size: 15px;
 }

/* FOOTER SEO */

.seo-footer {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: 28px;
 padding: 42px 70px;
 background: #eeeeea;
 border-top: 1px solid var(--line);
}

 .seo-footer h4 {
  margin: 0 0 12px;
  color: var(--red);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: .06em;
 }

 .seo-footer a {
  display: block;
  text-decoration: none;
  color: #333;
  font-size: 13px;
  line-height: 1.65;
 }

  .seo-footer a:hover {
   color: var(--red);
  }

/* COPYRIGHT / DATI LEGALI */

.copyright {
 padding: 20px 70px;
 background: #f8f8f5;
 color: #666;
 font-size: 13px;
 border-top: 1px solid var(--line);
}

.footer-legal {
 display: flex;
 flex-direction: column;
 gap: 6px;
 margin-bottom: 14px;
 font-size: 13px;
 line-height: 1.5;
 color: #555;
}

 .footer-legal strong {
  color: #222;
  font-size: 14px;
 }

 .footer-legal a {
  color: var(--red);
  text-decoration: none;
 }

  .footer-legal a:hover {
   text-decoration: underline;
  }

.footer-copy {
 padding-top: 14px;
 border-top: 1px solid var(--line);
 font-size: 12px;
 color: #777;
}

 .footer-copy a {
  color: var(--red);
  text-decoration: none;
 }

  .footer-copy a:hover {
   text-decoration: underline;
  }

/* COOKIE */

.cookie-banner {
 position: fixed;
 right: 28px;
 bottom: 28px;
 max-width: 430px;
 background: rgba(250, 250, 248, .98);
 color: #222;
 padding: 22px;
 border: 1px solid var(--line);
 box-shadow: var(--shadow);
 display: flex;
 gap: 18px;
 align-items: center;
 z-index: 99999;
}

 .cookie-banner p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: #555;
 }

 .cookie-banner button {
  border: 0;
  background: var(--red);
  color: #fff;
  padding: 11px 18px;
  cursor: pointer;
  font-weight: bold;
 }



/* RESPONSIVE */

@media (max-width: 1200px) {
 .hero-content {
  grid-template-columns: 1fr;
 }

 .hero-text {
  padding: 54px 42px;
 }

 .hero-3d {
  height: 500px;
 }

 .hero h1 {
  font-size: 42px;
 }

 .sectors-grid {
  grid-template-columns: repeat(2, 1fr);
 }

 .feature-band {
  grid-template-columns: repeat(2, 1fr);
 }

 .seo-footer {
  grid-template-columns: repeat(2, 1fr);
 }
}

@media (max-width: 850px) {

 .mobile-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(250, 250, 248, .96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
  z-index: 10050;
  backdrop-filter: blur(8px);
 }

 .mobile-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
 }

  .mobile-logo img {
   display: block;
   width: 105px;
   height: auto;
   margin-top: 0;
  }

 .mobile-menu-toggle {
  width: 48px;
  height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  padding: 0;
 }

  .mobile-menu-toggle span {
   width: 24px;
   height: 2px;
   display: block;
   background: var(--red);
   transition: transform .25s ease, opacity .25s ease;
  }

 body.mobile-menu-open .mobile-menu-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
 }

 body.mobile-menu-open .mobile-menu-toggle span:nth-child(2) {
  opacity: 0;
 }

 body.mobile-menu-open .mobile-menu-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
 }

 .mobile-menu-overlay {
  position: fixed;
  inset: 0;
  display: block;
  background: rgba(0,0,0,.45);
  z-index: 10020;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
 }

 body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  visibility: visible;
 }

 .mobile-menu-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--red);
  cursor: pointer;
  font-size: 20px;
  z-index: 10070;
 }

 .sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(86vw, 340px);
  height: 100vh;
  padding: 28px 24px 34px;
  transform: translateX(-105%);
  transition: transform .28s ease;
  z-index: 10060;
  box-shadow: 16px 0 40px rgba(0,0,0,.18);
 }

 body.mobile-menu-open .sidebar {
  transform: translateX(0);
 }

 .sidebar .logo-area {
  padding-right: 44px;
 }

 .main-menu,
 .menu-group,
 .menu-group-toggle {
  z-index: auto;
 }

 .main-content {
  margin-left: 0;
  padding-top: 88px;
 }

 .hero {
  min-height: calc(100vh - 88px);
 }

 .hero-content {
  min-height: calc(100vh - 88px);
 }

 .hero h1 {
  font-size: 38px;
 }

 .hero p {
  font-size: 17px;
 }

 .section,
 .hero-text,
 .seo-footer,
 .copyright {
  padding-left: 24px;
  padding-right: 24px;
 }

 .sectors-grid,
 .feature-band,
 .seo-footer {
  grid-template-columns: 1fr;
 }

 .cookie-banner {
  left: 16px;
  right: 16px;
  bottom: 16px;
  max-width: none;
  flex-direction: column;
  align-items: flex-start;
 }
}

@media (max-width: 520px) {

 .mobile-topbar {
  height: 82px;
  padding: 12px 16px;
 }

 .mobile-logo img {
  width: 96px;
  height: auto;
  margin-top: 0;
 }

 .main-content {
  padding-top: 82px;
 }

 .hero {
  min-height: calc(100vh - 82px);
 }

 .hero-content {
  min-height: calc(100vh - 82px);
 }

 .hero h1 {
  font-size: 32px;
 }

 .hero-text {
  padding-top: 44px;
  padding-bottom: 44px;
 }

 .hero-3d {
  height: 360px;
 }

 .btn-red {
  width: 100%;
  justify-content: center;
  text-align: center;
 }

 .sidebar {
  width: 88vw;
 }

 .menu-link {
  font-size: 13px;
 }

 .submenu a {
  font-size: 12px;
 }
}


.mobile-lang-switch {
 display: flex;
 align-items: center;
 gap: 10px;
 margin-left: auto;
 margin-right: 14px;
}

 .mobile-lang-switch a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #555;
  transition: color .2s ease;
 }

  .mobile-lang-switch a:hover {
   color: var(--red);
  }



.desktop-lang-switch {
 position: fixed;
 top: 22px;
 right: 32px;
 z-index: 9000;
 display: flex;
 gap: 12px;
 background: rgba(250,250,248,.88);
 border: 1px solid var(--line);
 padding: 8px 12px;
 box-shadow: 0 10px 25px rgba(0,0,0,.06);
}

 .desktop-lang-switch a {
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  color: #555;
 }

  .desktop-lang-switch a:hover {
   color: var(--red);
  }

@media (max-width: 850px) {
 .desktop-lang-switch {
  display: none;
 }
}



.home-seo-intro {
 background: #ffffff;
}

.home-seo-text {
 max-width: 980px;
}

 .home-seo-text h2 {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.2;
  color: #222;
 }

 .home-seo-text p {
  max-width: 900px;
  font-size: 17px;
  line-height: 1.75;
  color: #444;
 }


.home-seo-intro {
 background: #ffffff;
}

.home-seo-grid {
 display: grid;
 grid-template-columns: 1.15fr .85fr;
 gap: 56px;
 align-items: center;
}

.home-seo-text {
 max-width: 760px;
}

 .home-seo-text h2 {
  margin: 0 0 22px;
  font-size: 34px;
  line-height: 1.2;
  color: #222;
 }

 .home-seo-text p {
  font-size: 17px;
  line-height: 1.75;
  color: #444;
 }

.home-seo-image img {
 width: 100%;
 display: block;
 border-radius: 2px;
 object-fit: cover;
 box-shadow: 0 20px 50px rgba(0,0,0,.14);
}

@media (max-width: 980px) {

 .home-seo-grid {
  grid-template-columns: 1fr;
 }

 .home-seo-image {
  order: -1;
 }
}



.home-cta-section {
 background: #f4f4f1;
}

.home-cta-box {
 display: grid;
 grid-template-columns: 1fr auto;
 gap: 34px;
 align-items: center;
 background: #ffffff;
 border: 1px solid var(--line);
 padding: 38px;
 box-shadow: 0 18px 45px rgba(40,40,40,.08);
}

 .home-cta-box h2 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1.2;
 }

 .home-cta-box p {
  margin: 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.7;
  color: #444;
 }

@media (max-width: 850px) {
 .home-cta-box {
  grid-template-columns: 1fr;
  padding: 28px;
 }
}