:root {
  --main-blue: #1d6be2;
  --accent: #ff9300;
  --light: #f6f8fa;
  --dark: #232931;
  --white: #fff;
  --shadow: 0 4px 16px rgba(0,0,0,0.07);
  --radius: 18px;
  --transition: 0.3s cubic-bezier(.25,.8,.25,1);
}

body {
  font-family: 'Montserrat', Arial, sans-serif;
  margin: 0;
  background: var(--light);
  color: var(--dark);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 14px;
  z-index: 120;
}
.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  margin: 5px 0;
  background: var(--main-blue);
  border-radius: 3px;
  transition: all 0.33s cubic-bezier(.68,-0.55,.27,1.55);
}
@media (max-width: 700px) {
  nav#mainNav {
    position: fixed;
    top: 0; right: -100vw;
    width: 78vw;
    max-width: 320px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 18px rgba(0,0,0,0.13);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 68px 0 0 32px;
    gap: 24px;
    font-size: 1.19rem;
    transition: right 0.32s cubic-bezier(.68,-0.55,.27,1.55);
    z-index: 110;
  }
  nav#mainNav.open {
    right: 0;
  }
  .hamburger {
    display: flex;
  }
  header {
    padding: 15px 16px;
  }
}
.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}
/* Blocca scroll quando nav aperto */
body.menu-open {
  overflow: hidden;
}


header {
  background: var(--white);
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  font-size: 2rem;
  font-weight: 700;
  color: var(--main-blue);
  letter-spacing: 1px;
}

nav a {
  margin-left: 28px;
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: color var(--transition);
}

nav a:hover {
  color: var(--main-blue);
}

.hero {
  position: relative;
  width: 100vw;
  min-height: 70vh;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 70vh;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  z-index: 1;
}

.slide.active {
  opacity: 1;
  z-index: 2;
}

.overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(29, 107, 226, 0.5);
  z-index: 3;
}

.slide-content {
  position: relative;
  color: var(--white);
  text-align: center;
  z-index: 4;
  max-width: 680px;
  margin: 0 auto;
}

.slide-content h1 {
  font-size: 3rem;
  margin-bottom: 18px;
  letter-spacing: 1px;
  font-weight: 700;
}

.slide-content p {
  font-size: 1.3rem;
  margin-bottom: 30px;
}

.cta {
  display: inline-block;
  padding: 14px 38px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 12px rgba(255,147,0,0.11);
  font-size: 1.1rem;
  transition: background var(--transition);
}

.cta:hover {
  background: var(--main-blue);
}

.slider-controls {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9;
  display: flex;
  gap: 10px;
}

.slider-controls button {
  background: var(--white);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-size: 1.6rem;
  color: var(--main-blue);
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: background var(--transition);
}

.slider-controls button:hover {
  background: var(--accent);
  color: var(--white);
}

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dots span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--white);
  opacity: 0.4;
  cursor: pointer;
  transition: opacity var(--transition), background var(--transition);
}

.slider-dots span.active {
  opacity: 1;
  background: var(--accent);
}

.services {
  background: var(--white);
  padding: 60px 0 40px 0;
  text-align: center;
}

.services h2 {
  font-size: 2.2rem;
  margin-bottom: 36px;
  color: var(--main-blue);
}

.service-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 38px;
}

.service-card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 310px;
  padding: 24px 18px 28px 18px;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 28px rgba(29,107,226,0.09);
}

.service-card img {
  width: 100%;
  border-radius: var(--radius);
  margin-bottom: 18px;
  object-fit: cover;
  height: 145px;
}

.service-card h3 {
  color: var(--main-blue);
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.service-card p {
  font-size: 1rem;
  color: #5e6570;
}

.about {
  padding: 58px 0;
  background: var(--light);
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 54px;
  max-width: 920px;
  margin: 0 auto;
}

.profile-pic {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.about h2 {
  color: var(--main-blue);
  margin-bottom: 20px;
}

.about p {
  font-size: 1.2rem;
  color: #444c55;
}

.reviews {
  background: var(--white);
  padding: 52px 0;
  text-align: center;
}

.reviews h2 {
  color: var(--main-blue);
  margin-bottom: 34px;
}

.review-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.review-card {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  width: 300px;
  font-size: 1.05rem;
  color: #3d4756;
  position: relative;
}

.review-card p {
  margin-bottom: 18px;
  font-style: italic;
}

.review-card span {
  color: var(--accent);
  font-weight: 700;
}

.contact {
  background: var(--light);
  padding: 54px 0;
  text-align: center;
}

.contact h2 {
  color: var(--main-blue);
  margin-bottom: 30px;
}

#contactForm {
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contactForm input, #contactForm textarea {
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 1px solid #d4d9df;
  font-size: 1rem;
  background: var(--white);
  transition: border var(--transition);
}

#contactForm input:focus, #contactForm textarea:focus {
  outline: none;
  border: 1.5px solid var(--main-blue);
}

#contactForm button {
  background: var(--main-blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  padding: 14px 0;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}

#contactForm button:hover {
  background: var(--accent);
}

#formMsg {
  margin-top: 10px;
  font-size: 1rem;
}

footer {
  background: var(--main-blue);
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 34px;
  flex-wrap: wrap;
  font-size: 1rem;
}

.footer-social a {
  margin-left: 22px;
  display: inline-block;
}

.footer-social img {
  width: 24px;
  height: 24px;
  filter: invert(1);
  opacity: 0.83;
  transition: opacity var(--transition);
}

.footer-social img:hover {
  opacity: 1;
}

/* Responsive Styles */
@media (max-width: 950px) {
  .about-container {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .service-cards, .review-cards {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 650px) {
  header {
    flex-direction: column;
    gap: 14px;
    padding: 13px 8px;
  }
  .hero, .slider {
    min-height: 380px;
    height: 380px;
  }
  .slide-content h1 {
    font-size: 1.8rem;
  }
  .slide-content p {
    font-size: 1rem;
  }
  .service-card, .review-card {
    width: 94vw;
    max-width: 340px;
  }
  .profile-pic {
    width: 120px;
    height: 120px;
  }
  footer {
    flex-direction: column;
    gap: 12px;
    padding: 14px 8px;
  }
}



/* --- SEZIONE ULTIMI LAVORI --- */
.works {
  background: var(--white);
  padding: 60px 0 48px 0;
  text-align: center;
}

.works h2 {
  font-size: 2.2rem;
  margin-bottom: 36px;
  color: var(--main-blue);
}

.works-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 34px;
}

.work-item {
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.work-item:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 28px rgba(29,107,226,0.09);
}

.work-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.work-desc {
  padding: 14px 10px 16px 10px;
  width: 100%;
  background: var(--white);
}

.work-desc strong {
  display: block;
  color: var(--main-blue);
  font-size: 1.04rem;
  margin-bottom: 3px;
}

.work-desc span {
  color: #576274;
  font-size: 0.97rem;
}

/* Responsive per la gallery */
@media (max-width: 950px) {
  .works-gallery {
    flex-direction: column;
    align-items: center;
  }
  .work-item {
    width: 94vw;
    max-width: 360px;
  }
  .work-item img {
    height: 140px;
  }
}




/* --- HERO DETTAGLIO --- */
.detail-hero {
  position: relative;
  width: 100vw;
  min-height: 34vh;
  max-height: 330px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: 0;
}
.detail-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(29, 107, 226, 0.45);
  backdrop-filter: blur(2px);
  z-index: 2;
}
.detail-hero-content {
  position: relative;
  z-index: 3;
  color: var(--white);
  text-align: center;
  padding: 38px 16px 24px 16px;
  width: 100%;
  max-width: 660px;
}
.detail-hero-content h1 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.detail-hero-content p {
  font-size: 1.08rem;
}

/* --- DETTAGLIO DESC --- */
.detail-desc {
  background: var(--white);
  padding: 34px 0 16px 0;
}
.detail-desc-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 14px;
  text-align: left;
}
.detail-desc h2 {
  color: var(--main-blue);
  margin-bottom: 10px;
}
.detail-desc p {
  color: #4d5662;
  font-size: 1.13rem;
  margin-bottom: 16px;
  line-height: 1.6;
}
.detail-desc ul {
  margin: 0;
  padding-left: 18px;
  color: var(--main-blue);
  font-size: 1.01rem;
}
.detail-desc ul li {
  margin-bottom: 6px;
  color: #3a4659;
}

/* --- GALLERY DETTAGLIO --- */
.detail-gallery {
  background: var(--light);
  padding: 28px 0 18px 0;
}
.detail-gallery h2 {
  text-align: center;
  color: var(--main-blue);
  margin-bottom: 22px;
  font-size: 1.28rem;
}
.gallery-images {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.gallery-images img {
  width: 110px;
  height: 82px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #fff;
}
@media (min-width: 500px) {
  .gallery-images img { width: 165px; height: 112px; }
}

/* --- FAQ --- */
.detail-faq {
  background: var(--white);
  padding: 24px 0;
}
.detail-faq h2 {
  text-align: center;
  color: var(--main-blue);
  margin-bottom: 18px;
}
.faq-list {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 10px;
}
.faq-item {
  margin-bottom: 8px;
  border-radius: var(--radius);
  background: var(--light);
  box-shadow: 0 2px 8px rgba(29,107,226,0.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 14px 12px;
  background: none;
  border: none;
  outline: none;
  text-align: left;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--main-blue);
  cursor: pointer;
  transition: background 0.2s;
  position: relative;
}
.faq-question::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-size: 1.28rem;
  margin-left: 10px;
  transition: transform 0.25s;
}
.faq-question.open::after {
  content: '−';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #f7fafc;
  color: #38445a;
  padding: 0 14px;
  font-size: 0.98rem;
  transition: max-height 0.4s cubic-bezier(.51,.02,.35,1.41);
}
.faq-question.open + .faq-answer {
  padding: 12px 14px;
}

/* --- CTA finale --- */
.detail-cta {
  background: var(--light);
  text-align: center;
  padding: 38px 0 22px 0;
}
.large-cta {
  padding: 18px 48px;
  font-size: 1.24rem;
  border-radius: 30px;
  font-weight: 800;
}

@media (max-width: 650px) {
  .detail-hero-content h1 { font-size: 1.45rem; }
  .gallery-images img { width: 92vw; max-width: 270px; height: 94px; }
  .detail-cta { padding: 26px 0 16px 0; }
}



input[name="_honey"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  position: absolute !important;
  left: -9999px !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}
