/* ===== RESET ===== */
a,abbr,acronym,address,b,big,blockquote,body,center,cite,code,dd,del,dfn,div,dl,dt,em,fieldset,font,form,
h1,h2,h3,h4,h5,h6,html,i,iframe,img,ins,kbd,label,legend,li,object,ol,p,pre,q,s,samp,small,span,strike,
strong,sub,sup,tt,u,ul,var { margin:0; padding:0; border:0; outline:0; font-size:100%; vertical-align:baseline; background:transparent; }
body { line-height:1; }
ol,ul { list-style:none; }
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 14px; color: #666; background-color: #fff;
  line-height: 1.7em; font-weight: 500;
  -webkit-font-smoothing: antialiased;
}
a { color: #2ea3f2; text-decoration: none; }
a:hover { text-decoration: none; }
p { padding-bottom: 1em; }
p:last-of-type { padding-bottom: 0; }
strong { font-weight: 700; }
img { max-width: 100%; height: auto; }
h1,h2,h3,h4,h5,h6 {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  color: #333; padding-bottom: 10px; line-height: 1.3em; font-weight: 600;
}
h1 { font-size: 36px; } h2 { font-size: 28px; } h3 { font-size: 20px; } h4 { font-size: 18px; }

/* ===== HEADER ===== */
.site-header {
  background-color: #FFFFFF;
  position: sticky; top: 0; z-index: 100;
  transition: background-color 300ms ease, max-width 300ms ease;
}
.header-inner {
  width: 80%; max-width: 2580px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0;
  transition: width 300ms ease;
}
.logo { display: flex; align-items: center; }
.logo img { height: auto; max-height: 60px; width: auto; }
.main-nav { display: flex; gap: 28px; align-items: center; }
.main-nav a {
  font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700; font-size: 16px; color: #000000 !important;
  text-decoration: none; transition: color 300ms ease;
}
.main-nav a:hover { color: #E02B20 !important; }
.main-nav a.current { color: #E02B20 !important; }

/* Burger menu */
.burger { display: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; align-self: center; }
.burger span { display: block; width: 24px; height: 2px; background: #000; transition: all 300ms; }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== FOOTER ===== */
html { background-color: #030608 !important; min-height: 100%; color-scheme: dark light; }
body { min-height: 100%; }
.site-footer { background: #030608; color: #999; padding: 54px 0 100px; }
.footer-inner {
  width: 80%; max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 5.5%;
}
.footer-decoration { margin-bottom: 16px; }
.footer-decoration img { max-width: 200px; }
.footer-col h4 {
  font-family: 'Red Hat Display', sans-serif; font-weight: 500;
  font-size: 20px; color: #fff; margin-bottom: 12px; padding: 0; line-height: 1em;
}
.footer-col p, .footer-col li {
  font-family: 'Roboto', sans-serif;
  font-size: 14px; line-height: 1.8; color: #999;
}
.footer-col a { color: #999; transition: color 0.3s; }
.footer-col a:hover { color: #e7ac3c; }
.footer-col:last-child { padding-bottom: 40px; }
.social-links { display: flex; gap: 10px; margin-top: 12px; }
.social-links a {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.08); display: flex; align-items: center;
  justify-content: center; font-size: 12px; font-weight: 700; color: #fff;
  transition: background 0.3s;
}
.social-links a:hover { background: #556de0; }

/* ===== PAGE TITLE ===== */
.page-title {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700; font-size: 54px; line-height: 1.2em;
  text-align: center; color: #333;
  padding-bottom: 0; margin-top: 40px; margin-bottom: 60px;
}

/* ===== ANIMATIONS ===== */
.slide-in-left, .slide-in-right {
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.slide-in-left { transform: translateX(-60px); }
.slide-in-right { transform: translateX(60px); }
.slide-in-up { transform: translateY(40px); }
.slide-in-left.visible, .slide-in-right.visible, .slide-in-up.visible {
  opacity: 1; transform: translate(0);
}
.slide-in-up:nth-child(1) { transition-delay: 0s; }
.slide-in-up:nth-child(2) { transition-delay: 0.15s; }
.slide-in-up:nth-child(3) { transition-delay: 0.3s; }

/* ===== HOMEPAGE: Hero Section ===== */
.hero-home {
  padding: 7vw 0 25vw; position: relative; color: #fff;
  overflow: hidden;
}
.hero-home::before {
  content: ''; position: absolute; top: -100px; left: 0; right: 0; bottom: -100px;
  background-image: url('../images/containers-hero.jpg');
  background-size: 200% auto; background-position: top center;
  z-index: 0;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
.hero-home::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 250px;
  background: url("data:image/svg+xml,%3Csvg width='100%25' height='250px' viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M0 140h1280C573.08 140 0 0 0 0z' fill-opacity='.3'/%3E%3Cpath d='M0 140h1280C573.08 140 0 30 0 30z' fill-opacity='.5'/%3E%3Cpath d='M0 140h1280C573.08 140 0 60 0 60z'/%3E%3C/g%3E%3C/svg%3E") no-repeat bottom;
  background-size: 100% 250px;
  transform: scaleX(-1); z-index: 1;
}
.hero-home .row { width: 80%; max-width: 1080px; margin: 0 auto; position: relative; z-index: 2; }
.hero-home .hero-title { text-align: center; margin-bottom: 40px; }
.hero-home .hero-title h1 {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700; font-size: 80px; line-height: 1.2em; color: #fff; padding: 0;
}
.hero-home .hero-columns { display: flex; gap: 5.5%; align-items: flex-start; }
.hero-home .hero-text-col { flex: 0 0 47.25%; }
.hero-home .hero-text-col p {
  font-size: 24px; line-height: 1.8em; color: #fff;
  max-width: 800px; padding-bottom: 1em;
}
.hero-home .hero-form-col { flex: 0 0 47.25%; }
.hero-form {
  background: #fff; border-radius: 10px; padding: 20px 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}
.hero-form h3.form-title {
  font-family: 'Roboto', sans-serif; font-weight: 700;
  color: #333 !important; text-align: center; font-size: 22px;
  margin-bottom: 16px; padding: 0;
}
.hero-form .form-row-half { display: flex; gap: 3%; margin-bottom: 12px; }
.hero-form .form-row-half input { flex: 1; }
.hero-form input, .hero-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid #ddd;
  border-radius: 6px; font-family: 'Roboto', sans-serif; font-size: 14px;
  margin-bottom: 12px; background: #fafafa; color: #000;
  text-align: left;
}
.hero-form input:focus, .hero-form textarea:focus {
  outline: none; border-color: #e02b20;
}
.hero-form textarea { height: 100px; resize: vertical; }
.btn-gradient {
  display: inline-block; padding: 14px 32px;
  border: 2px solid #e02b20; background: #fff; color: #e02b20;
  border-radius: 6px; cursor: pointer; width: 100%;
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700; font-size: 16px; letter-spacing: 3px;
  transition: all 300ms ease;
}
.btn-gradient:hover {
  background: #e02b20; color: #fff;
  box-shadow: 0 10px 20px -5px rgba(224,43,32,0.3);
}

/* ===== HOMEPAGE: Cosa Facciamo ===== */
.cosa-facciamo { padding: 54px 0; }
.cosa-facciamo .section-inner { width: 80%; max-width: 1080px; margin: 0 auto; }
.cosa-facciamo h2 { text-align: center; font-size: 32px; padding-bottom: 30px; }
.blurb-row { display: flex; gap: 5.5%; }
.blurb {
  flex: 1; text-align: center;
  background: #fff; border-radius: 10px; padding: 30px 20px;
  box-shadow: 0 2px 40px rgba(110,130,208,0.12);
  transition: transform 0.3s, box-shadow 0.3s;
}
.blurb:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 50px rgba(110,130,208,0.2);
}
.blurb-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(224,43,32,0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px; color: #e02b20;
}
.blurb-icon i[data-lucide] { width: 28px; height: 28px; }
.blurb h3 { font-size: 18px; padding-bottom: 10px; }
.blurb p { font-size: 16px; color: #666; line-height: 1.7em; padding: 0; }

/* ===== HOMEPAGE: Solution Section ===== */
.solution-section { padding: 54px 0; }
.solution-row {
  width: 80%; max-width: 1080px; margin: 0 auto;
  display: flex; gap: 5.5%; align-items: flex-start;
}
.solution-img { flex: 0 0 57.8%; }
.solution-img img { width: 100%; }
.solution-text { flex: 1; }
.solution-text h2 { font-size: 32px; line-height: 1.3em; padding-bottom: 16px; }
.solution-text p { font-size: 16px; line-height: 1.7em; color: #000; text-align: left; padding: 0; }

/* ===== HOMEPAGE: CTA Button ===== */
.cta-center { text-align: center; padding: 40px 0; }
.btn-cta {
  display: inline-block; padding: 14px 32px;
  background: #fff; color: #e02b20; border: 2px solid #e02b20;
  border-radius: 4px;
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: 3px; text-transform: uppercase;
  transition: all 300ms ease;
}
.btn-cta:hover {
  background: #e02b20; color: #fff;
  box-shadow: 0 10px 20px -5px rgba(224,43,32,0.3);
}

/* ===== HOMEPAGE: Leader Section ===== */
.leader-section { padding: 54px 0; }
.leader-row {
  width: 80%; max-width: 1080px; margin: 0 auto;
  display: flex; gap: 5.5%;
}
.leader-text { flex: 0 0 29.67%; }
.leader-text h2 { font-size: 32px; line-height: 1.3em; padding-bottom: 16px; }
.leader-text p { font-size: 16px; line-height: 1.7em; color: #000; padding: 0; }
.leader-text .red { color: #e02b20; }
.leader-img { flex: 1; }
.leader-img img { width: 100%; }

/* ===== HOMEPAGE: Team Banner ===== */
.team-banner {
  padding: 7vw 0 25vw; text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.team-banner-bg {
  position: absolute; top: -100px; left: 0; right: 0; bottom: -100px;
  background-image: url('../images/containers-team.jpg');
  background-size: 200% auto; background-position: top center;
  z-index: 0;
  will-change: transform;
}
.team-banner-divider {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  height: 250px;
  background: url("data:image/svg+xml,%3Csvg width='100%25' height='250px' viewBox='0 0 1280 140' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff'%3E%3Cpath d='M0 140h1280C573.08 140 0 0 0 0z' fill-opacity='.3'/%3E%3Cpath d='M0 140h1280C573.08 140 0 30 0 30z' fill-opacity='.5'/%3E%3Cpath d='M0 140h1280C573.08 140 0 60 0 60z'/%3E%3C/g%3E%3C/svg%3E") no-repeat top;
  background-size: 100% 250px;
  transform: scaleY(-1);
}
.team-banner-inner { position: relative; z-index: 2; max-width: 1000px; margin: 0 auto; padding: 200px 40px 0; }
.team-banner .team-subtitle {
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: 24px; text-transform: uppercase; letter-spacing: 8px;
  color: rgba(255,255,255,0.9); padding-bottom: 24px; line-height: 1em;
}
.team-banner .team-headline {
  font-family: 'Roboto', sans-serif; font-weight: 700;
  font-size: 48px; line-height: 1.4em; color: #fff; padding: 0;
  max-width: 820px; margin: 0 auto;
}

/* ===== CHI SIAMO PAGE ===== */
.chisiamo-section {
  padding: 40px 0 120px; position: relative;
}
.chisiamo-inner {
  width: 80%; max-width: 1092px; margin: 0 auto;
}
.chisiamo-title {
  text-align: center; margin-bottom: 30px;
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px; line-height: 1.8em;
}
.chisiamo-section-title {
  color: #333; margin-top: 30px; text-align: left;
}
.chisiamo-body {
  font-size: 16px; line-height: 2em; max-width: 1000px;
  margin: 30px auto 0;
}
.chisiamo-body p {
  text-align: left; color: #000; padding-bottom: 1em;
}

/* ===== SERVIZI PAGE ===== */
.servizi-section {
  padding: 40px 0 120px; background-color: #FFFFFF;
}
.servizi-heading-row {
  width: 80%; max-width: 1080px; margin: 0 auto;
  text-align: center; padding-bottom: 20px;
}
.servizi-heading-row .page-title .red { color: #e02b20; }
.servizi-grid {
  width: 80%; max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.s-card {
  background-color: #ffffff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 40px rgba(110,130,208,0.12);
  font-size: 16px; line-height: 2em;
}
/* Desktop: vertical card layout (icon on top, centered) */
.s-card-header {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 30px 20px 0; text-align: center;
}
.s-card-icon {
  display: flex; width: 60px; height: 60px; min-width: 60px;
  border-radius: 50%;
  background: rgba(224,43,32,0.1); color: #e02b20;
  align-items: center; justify-content: center;
}
.s-card-icon i[data-lucide] { width: 28px; height: 28px; }
.s-card h3 {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700; line-height: 1.4em; font-size: 18px;
  padding: 0; flex: 1;
}
.s-card-chevron { display: none; }
/* Desktop: body always visible */
.s-card-body {
  display: block; padding: 10px 20px 30px; text-align: center;
}
.s-card p { font-size: 16px; line-height: 1.7em; color: #666; padding: 0; }

/* ===== CONTATTI PAGE ===== */
.contatti-hero {
  padding: 40px 0 0; text-align: center;
}
.contatti-hero-inner {
  width: 80%; max-width: 1080px; margin: 0 auto;
}
.contatti-intro { padding: 0; }
.contatti-hero-desc {
  font-size: 16px; line-height: 1.7em;
  width: 80%; max-width: 1080px; margin: 0 auto;
  color: #666; font-weight: 400; text-align: left;
}
.contatti-hero-desc p { text-align: left; padding-bottom: 0.5em; }

.contatti-cards-section { padding: 80px 0; }
.contatti-cards-row {
  width: 80%; max-width: 1440px; margin: 0 auto;
  display: flex; gap: 3%;
}
.c-info-card {
  flex: 1; background: #ffffff; border-radius: 10px; overflow: hidden;
  box-shadow: 0 2px 70px rgba(110,130,208,0.18);
  padding: 30px 20px 40px; text-align: center;
  line-height: 1.8em;
}
.c-info-card .c-icon-wrap {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  background: rgba(224,43,32,0.1); color: #e02b20;
}
.c-icon-wrap i[data-lucide] { width: 28px; height: 28px; }
.c-info-card h3 {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700; font-size: 18px; line-height: 1.7em; padding-bottom: 8px;
}
.c-info-card p { font-size: 16px; color: #666; line-height: 1.8em; padding: 0; }

.contatti-form-section { padding: 40px 0 60px; }
.contatti-form-inner { width: 80%; max-width: 700px; margin: 0 auto; }
.contatti-form-inner h2 {
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700; font-size: 36px; line-height: 1.2em;
  text-align: center; padding-bottom: 30px;
}
.cf-row { display: flex; gap: 16px; margin-bottom: 16px; }
.cf-row.full { display: block; margin-bottom: 16px; }
.cf-row input, .cf-row textarea {
  flex: 1; width: 100%; padding: 14px 18px;
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-size: 16px; line-height: 1.8em;
  border: 1px solid #ddd; border-bottom: 3px solid #ddd;
  border-radius: 4px; overflow: hidden;
  background-color: #fafafa;
}
.cf-row textarea { height: 120px; resize: vertical; }
.cf-row input:focus, .cf-row textarea:focus { outline: none; border-color: #e02b20; border-bottom-color: #e02b20; }
.btn-purple-submit {
  display: inline-block; padding: 14px 40px; border: none; cursor: pointer;
  background-color: #fff; color: #e02b20;
  border: 2px solid #e02b20;
  border-radius: 4px; letter-spacing: 5px;
  font-size: 14px; text-transform: uppercase;
  font-family: 'Roboto', Helvetica, Arial, Lucida, sans-serif;
  font-weight: 700;
  transition: all 300ms ease;
}
.btn-purple-submit:hover {
  background-color: #e02b20; color: #fff;
  box-shadow: 0 10px 20px -5px rgba(224,43,32,0.3);
}

.map-fullwidth { width: 100%; }
.map-fullwidth iframe { width: 100%; height: 800px; border: 0; display: block; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .hero-home .hero-title h1 { font-size: 40px; }
  .hero-home .hero-columns { flex-direction: column; }
  .hero-home .hero-text-col, .hero-home .hero-form-col { flex: auto; }
  .hero-home { padding: 100px 0; }
  .hero-home::before { background-size: cover; background-position: top center; }
  .team-banner-bg { background-size: cover; background-position: center; }
  .page-title { font-size: 36px; }
  .contatti-form-inner h2 { font-size: 32px; }
  .solution-row, .leader-row { flex-direction: column; }
  .solution-img, .leader-text, .leader-img { flex: auto; }
  .blurb-row { flex-direction: column; gap: 30px; }
  /* Switch servizi to accordion on mobile */
  .servizi-grid { display: flex; flex-direction: column; gap: 12px; max-width: 600px; }
  .s-card { cursor: pointer; }
  .s-card-header { flex-direction: row; padding: 16px 20px; text-align: left; gap: 16px; }
  .s-card-icon { width: 48px; height: 48px; min-width: 48px; }
  .s-card-icon i[data-lucide] { width: 24px; height: 24px; }
  .s-card-chevron { display: flex; align-items: center; flex-shrink: 0; color: #ccc; transition: transform 300ms; }
  .s-card-chevron i[data-lucide] { width: 20px; height: 20px; }
  .s-card.open .s-card-chevron { transform: rotate(180deg); color: #e02b20; }
  .s-card-body { max-height: 0; overflow: hidden; padding: 0 20px 0 84px; text-align: left; transition: max-height 0.3s ease, padding 0.3s ease; }
  .s-card.open .s-card-body { max-height: 500px; padding: 0 20px 20px 84px; }
  .logo img { max-height: 30px; }
  .team-banner .team-headline { font-size: 32px; }
  .contatti-cards-row { flex-direction: column; gap: 20px; }
  .footer-inner { grid-template-columns: repeat(2, 1fr); }
  .header-inner { width: 90%; padding: 10px 0; align-items: center; }
  .map-fullwidth iframe { height: 500px; }
  .logo { flex-shrink: 1; min-width: 0; }
  .logo img { max-width: 200px; height: auto; }
  /* Burger menu on tablet/mobile */
  .burger { display: flex; flex-shrink: 0; }
  .main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); padding: 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 16px 30px; border-bottom: 1px solid #f0f0f0; font-size: 15px; }
}
@media (max-width: 767px) {
  .hero-home .hero-title h1 { font-size: 32px; }
  .page-title { font-size: 28px; }
  .contatti-form-inner h2 { font-size: 24px; }
  .footer-inner { grid-template-columns: 1fr; }
  .cf-row { flex-direction: column; }
  .map-fullwidth iframe { height: 400px; }
  .logo img { max-width: 200px; }
}
