@import url('https://rsms.me/inter/inter.css');

:root {
  --primary:   #007A87;
  --secondary: #c6e6e5;
  --accent:    #c2185b;
  --dark:      #2D3436;
  --light:     #F9FCFD;
  font-family: 'Inter', sans-serif; 
}

@supports (font-variation-settings: normal) {
  :root { font-family: 'Inter var', sans-serif; }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: inherit;
  background: var(--light);
  color: var(--dark);
}

/* ── NAV ── */

.main-nav {
  background: var(--secondary);
  height: 80px;
  display: flex;
  align-items: center;
  padding: 0 48px;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 122, 135, 0.10);
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 80px;
}

.nav-logo a {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-logo img {
  height: 60px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links li a {
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 3px;
  transition: color 0.2s;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links li a:hover {
  color: var(--accent);
}

.nav-links li a:hover::after {
  width: 100%;
}

/* ── HERO ── */

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px;
  gap: 60px;
  background: var(--light);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: var(--secondary);
  border-radius: 50%;
  opacity: 0.5;
  z-index: 0;
}

.hero-text {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.8s ease both;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title em {
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.7;
  color: #555;
  max-width: 440px;
  margin-bottom: 40px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(194, 24, 91, 0.25);
}

.hero-cta:hover {
  background: #a31550;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(194, 24, 91, 0.35);
}

.hero-cta svg {
  transition: transform 0.2s;
}

.hero-cta:hover svg {
  transform: translateX(4px);
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.8s 0.15s ease both;
}

.hero-card {
  background: #fff;
  border-radius: 24px;
  padding: 48px 40px;
  box-shadow: 0 16px 64px rgba(0, 122, 135, 0.12);
  max-width: 380px;
  width: 100%;
  text-align: center;
}

.hero-card-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.hero-card p {
  font-size: 0.95rem;
  font-weight: 300;
  color: #777;
  line-height: 1.6;
}

.hero-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.tag {
  background: var(--secondary);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
}

/* ── ANIMATIONS ── */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── RESPONSIVE ── */

@media (max-width: 1100px) {
  .footer-inner {
    padding: 0 40px;
  }
}

@media (max-width: 860px) {
  .main-nav {
    padding: 0 clamp(24px, 5vw, 48px);
  }

  .nav-links {
    gap: 20px;
  }

  .nav-links li a {
    font-size: 0.88rem;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 60px 24px;
    text-align: center;
  }

  .hero::before {
    top: -80px;
    right: -80px;
    width: 300px;
    height: 300px;
  }

  .hero-subtitle {
    margin: 0 auto 40px;
  }

  .hero-cta {
    margin: 0 auto;
  }

  .hero-visual {
    order: -1;
  }
}

@media (max-width: 520px) {
  .nav-links {
    display: none;
  }
}

/* ── FOOTER ── */

footer {
  background: var(--dark);
  color: var(--light);
  padding: 48px 0 28px;
  border-top: 1px solid rgba(249, 252, 253, 0.08);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
}

/* ROW 1 */
.footer-row--top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  padding-bottom: 40px;
}

/* Left: logo + tagline */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1.5;
}

.footer-brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-mini-logo {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
}

.footer-brand-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(249, 252, 253, 0.85);
  line-height: 1.3;
}

.footer-tagline {
  font-size: 0.82rem;
  font-weight: 300;
  color: rgba(249, 252, 253, 0.4);
  line-height: 1.6;
}

/* Center: 2 nav columns */
.footer-nav-cols {
  display: flex;
  gap: 48px;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-heading {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(249, 252, 253, 0.35);
  margin-bottom: 2px;
}

.footer-nav-col a {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(249, 252, 253, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-nav-col a:hover {
  color: var(--light);
}

/* Right: social */
.footer-social-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-social-link {
  color: rgba(249, 252, 253, 0.5);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social-link:hover {
  color: var(--light);
}

/* DIVIDER */
.footer-divider {
  height: 1px;
  background: rgba(249, 252, 253, 0.1);
  width: 100%;
}

/* ROW 2: legal + copyright */
.footer-row--bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-row--legal {
  display: flex;
  align-items: center;
}

.footer-row--legal a {
  font-size: 0.82rem;
  font-weight: 400;
  color: rgba(249, 252, 253, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  padding: 0 14px;
}

.footer-row--legal a:first-child {
  padding-left: 0;
}

.footer-row--legal a + a {
  border-left: 1px solid rgba(249, 252, 253, 0.15);
}

.footer-row--legal a:hover {
  color: var(--light);
}

.footer-copyright {
  font-size: 0.78rem;
  color: rgba(249, 252, 253, 0.3);
  font-weight: 300;
}

/* RESPONSIVE */
@media (max-width: 860px) {
  .footer-inner {
    padding: 0 clamp(24px, 5vw, 48px);
  }

  .footer-row--top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    padding-bottom: 32px;
  }

  .footer-brand {
    align-items: center;
  }

  .footer-nav-cols {
    gap: 32px;
  }

  .footer-nav-col {
    align-items: center;
  }

  .footer-social-col {
    align-items: center;
  }

  .footer-row--bottom {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
  }

  .footer-row--legal a:first-child {
    padding-left: 14px;
  }

  .footer-copyright {
    text-align: center;
  }
}

.hero-photo {
  width: 100%;
  max-width: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── HAMBURGER & MOBILE MENU ── */

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 200;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  transform-origin: center;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 80px;
  left: 0;
  right: 0;
  background: var(--secondary);
  z-index: 99;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  box-shadow: 0 4px 16px rgba(0, 122, 135, 0.12);
}

.mobile-menu.open {
  max-height: 400px;
  padding: 16px 0 24px;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.mobile-menu ul li a {
  display: block;
  padding: 14px 24px;
  text-decoration: none;
  color: var(--primary);
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.2s, background 0.2s;
}

.mobile-menu ul li a:hover {
  color: var(--accent);
  background: rgba(0, 122, 135, 0.06);
}

@media (max-width: 520px) {
  .nav-hamburger {
    display: flex;
        margin-left: auto; /* spinge a destra */

  }

  .mobile-menu {
    display: block;
  }

  .nav-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.main-nav.menu-open {
  box-shadow: none;
}

#nav-placeholder {
  position: sticky;
  top: 0;
  z-index: 100;
}