:root {
  --blue-deep: #003d7a;
  --blue-mid: #0077b6;
  --blue-light: #48cae4;
  --italy-green: #009246;
  --italy-red: #ce2b37;
  --white: #ffffff;
  --off-white: #f4f8fc;
  --gray-100: #e8eef4;
  --gray-500: #5c6b7a;
  --gray-900: #1a2332;
  --shadow: 0 12px 40px rgba(0, 61, 122, 0.12);
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Space Grotesk", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1140px, 92vw);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--blue-deep);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 999;
}
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--blue-deep);
}
.logo span { color: var(--italy-green); }

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-list a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-500);
  transition: color 0.2s;
}
.nav-list a:hover { color: var(--blue-deep); }

.nav-cta {
  background: var(--blue-mid) !important;
  color: var(--white) !important;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta:hover { background: var(--blue-deep) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-100);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background: url("https://images.unsplash.com/photo-1607860108855-64acf2078ed9?auto=format&fit=crop&w=1920&q=80") center/cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 61, 122, 0.88) 0%, rgba(0, 119, 182, 0.75) 50%, rgba(0, 146, 70, 0.55) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  padding-block: 4rem;
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  opacity: 0.9;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--italy-green), var(--white), var(--italy-red));
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-lead {
  font-size: 1.1rem;
  opacity: 0.92;
  margin-bottom: 2rem;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--white);
  color: var(--blue-deep);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2); }

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.hero-stats dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.75;
  margin-bottom: 0.25rem;
}
.hero-stats dd {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

/* Sections */
.section { padding-block: 5rem; }
.section-alt { background: var(--off-white); }

.section-head {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 3rem;
}

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 0.75rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-intro { color: var(--gray-500); }

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}

.media-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.media-card:hover { transform: translateY(-4px); }

.media-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.media-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.media-card:hover .media-card-img img { transform: scale(1.05); }

.media-card h3,
.media-card p { padding-inline: 1.5rem; }
.media-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}
.media-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  padding-bottom: 1.5rem;
}

.price-tag {
  display: inline-block;
  margin: 0 1.5rem 1.5rem;
  padding: 0.35rem 0.85rem;
  background: var(--off-white);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--blue-deep);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item:nth-child(1) { grid-column: span 7; grid-row: span 2; min-height: 320px; }
.gallery-item:nth-child(2) { grid-column: span 5; min-height: 155px; }
.gallery-item:nth-child(3) { grid-column: span 5; min-height: 155px; }
.gallery-item:nth-child(4) { grid-column: span 4; min-height: 200px; }
.gallery-item:nth-child(5) { grid-column: span 4; min-height: 200px; }
.gallery-item:nth-child(6) { grid-column: span 4; min-height: 200px; }

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem 1.25rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Trust */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.trust-item {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.trust-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.trust-item h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}
.trust-item p { font-size: 0.88rem; color: var(--gray-500); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.price-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  border: 2px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.price-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow); }

.price-card.featured {
  border-color: var(--blue-mid);
  box-shadow: var(--shadow);
  position: relative;
}
.price-card.featured::before {
  content: "Più scelto";
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--italy-green);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.3rem 1rem;
  border-radius: 999px;
}

.price-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--blue-deep);
  margin-bottom: 0.25rem;
}
.price-amount small { font-size: 1rem; font-weight: 500; color: var(--gray-500); }

.price-card > p { color: var(--gray-500); font-size: 0.9rem; margin-bottom: 1.5rem; }

.price-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}
.price-features li {
  padding: 0.4rem 0;
  font-size: 0.9rem;
  padding-left: 1.5rem;
  position: relative;
}
.price-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--italy-green);
  font-weight: 700;
}

.price-card .btn {
  width: 100%;
  background: var(--blue-mid);
  color: var(--white);
}
.price-card .btn:hover { background: var(--blue-deep); }
.price-card.featured .btn { background: var(--italy-green); }
.price-card.featured .btn:hover { background: #007a3d; }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.testimonial-stars { color: #f5a623; font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }

.testimonial blockquote {
  font-size: 0.95rem;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.testimonial-author img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--gray-500); }

/* Contact */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  margin-bottom: 1rem;
}

.contact-details {
  list-style: none;
  margin-top: 2rem;
}
.contact-details li {
  display: flex;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: 0.95rem;
}
.contact-details strong { min-width: 90px; color: var(--blue-deep); }

.contact-form {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--gray-100);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-mid);
}
.form-group textarea { resize: vertical; min-height: 100px; }

.contact-form .btn {
  width: 100%;
  background: var(--blue-mid);
  color: var(--white);
  border: none;
  cursor: pointer;
}
.contact-form .btn:hover { background: var(--blue-deep); }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-brand .logo { color: var(--white); }
.footer-brand p { margin-top: 0.75rem; font-size: 0.88rem; max-width: 280px; }

.footer-links h4 {
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.italy-stripe {
  display: inline-flex;
  height: 4px;
  width: 48px;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}
.italy-stripe span { flex: 1; }
.italy-stripe span:nth-child(1) { background: var(--italy-green); }
.italy-stripe span:nth-child(2) { background: var(--white); }
.italy-stripe span:nth-child(3) { background: var(--italy-red); }

/* Responsive */
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-list {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--gray-100);
    box-shadow: var(--shadow);
  }
  .nav-list.open { display: flex; }

  .gallery-item:nth-child(n) {
    grid-column: span 12;
    min-height: 200px;
  }

  .contact-wrap { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
