/*
Theme Name: Fleximade Landing
Theme URI: https://www.fleximade.net
Author: Fleximade
Description: One page landing for Fleximade.
Version: 1.0
*/

/* BASIC RESET */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111827;
  background-color: #fbfcff; /* grigio ancora più chiaro */
  line-height: 1.6;
}

/* UTILITIES */
.section {
  padding: 4rem 1.5rem;
}

.section-alt {
  background-color: #f6f7fb; /* grigio un po' più chiaro */
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 2rem;
}

.section-header.center {
  text-align: center;
}

.section-header h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-subtitle {
  max-width: 640px;
  margin: 0.75rem auto 0;
  color: #4b5563;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

.two-columns {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .two-columns {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    align-items: center;
  }
}

.text-block p + p {
  margin-top: 0.9rem;
}

.media-block img {
  width: 100%;
  height: auto;
  border-radius: 1.25rem;
  object-fit: cover;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
}

/* TOP BAR */
.top-bar {
  background-color: #111827;
  color: #e5e7eb;
  font-size: 0.85rem;
  padding: 0.4rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: flex-end; /* solo bandierine a destra */
  gap: 1rem;
}

.language-switcher {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.lang-btn {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 2px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.lang-btn.active {
  opacity: 1;
  transform: translateY(-1px);
}

.lang-btn img {
  width: 20px;
  height: 14px;
  display: block;
  border-radius: 2px;
}

/* NAVIGATION */
.main-nav {
  background-color: #33485a; /* più chiaro stile Voyage */
  color: #f9fafb;
  position: sticky;
  top: 0;
  z-index: 50;
}


.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo img {
  height: 34px;
  width: auto;
}

.logo-text {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 1.1rem;
}

.logo-m {
  color: #b91c1c; /* bordeaux */
}

.logo-tagline {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ca3af;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  color: #d1d5db;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  height: 2px;
  width: 0;
  background: #f97316;
  transition: width 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #f9fafb;
}

/* HERO */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  color: #f9fafb;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
}

/* QUESTO TI MANCAVA: senza position/inset l’overlay non copre nulla */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(28, 44, 61, 0.9), rgba(28, 44, 61, 0.55));
}

.hero-content {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5rem;
}

.hero-since {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 760px;
}

.hero-subtitle {
  max-width: 560px;
  margin-top: 1rem;
  color: #e5e7eb;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn.primary {
  background: #f97316;
  color: #111827;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.35);
}

.btn.primary:hover {
  background: #fb923c;
  transform: translateY(-1px);
}

.btn.outline {
  border-color: #e5e7eb;
  color: #e5e7eb;
  background: transparent;
}

.btn.outline:hover {
  background: rgba(15, 23, 42, 0.3);
}

/* HIGHLIGHT SECTION */
.highlight {
  background: #33485a; /* stesso tono della nav */
  color: #f9fafb;
}


.highlight .section-subtitle {
  color: #e5e7eb;
}

/* PILL LIST */
.pill-list {
  margin: 2rem auto 1rem auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  justify-content: center;
  max-width: 900px;
  text-align: center;
}

.pill-list a {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 250, 251, 0.25);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  color: #f9fafb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.pill-list a:hover {
  background: #f97316;
  border-color: #f97316;
  color: #111827;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(249, 115, 22, 0.35);
}

.cta-inline {
  text-align: center;
  margin-top: 1rem;
}

/* SERVICES LIST */
.services-list {
  list-style: none;
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
  color: #4b5563;
  font-size: 0.9rem;
}

.services-list li::before {
  content: "• ";
  color: #f97316;
}

/* GALLERIES */
.gallery-section .section-intro {
  max-width: 640px;
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.gallery-grid {
  display: grid;
  gap: 1.5rem;
}

.gallery-grid figure {
  background: #ffffff;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: #4b5563;
}

/* CONTACT */
.contact-section {
  background: #132032;
  color: #e5e7eb;
}

.contact-section .section-header h2 {
  color: #f9fafb;
}

.contact-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.contact-card {
  background: #111827;
  border-radius: 1.25rem;
  padding: 1.5rem;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

.contact-card h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

.contact-card p + p {
  margin-top: 0.6rem;
}

.contact-card a {
  color: #f97316;
  text-decoration: none;
}

.contact-card a:hover {
  text-decoration: underline;
}

/* FORM */
.contact-form {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.contact-form label {
  font-size: 0.85rem;
  display: grid;
  gap: 0.25rem;
}

.contact-form input,
.contact-form textarea {
  border-radius: 0.75rem;
  border: 1px solid #374151;
  background: #020617;
  color: #f9fafb;
  padding: 0.5rem 0.75rem;
  font-family: inherit;
  font-size: 0.9rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid #f97316;
  outline-offset: 1px;
}

/* FOOTER */
.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 1rem 1.5rem;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

/* LANGUAGE */
.lang {
  /* lo gestisce JS */
}

/* RESPONSIVE */
@media (max-width: 840px) {
  .nav-links {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: #111827;
    flex-direction: column;
    padding: 0.5rem 1.5rem 1rem;
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
