:root {
  --bg: #050812;
  --bg-alt: #090c18;
  --bg-soft: #101528;
  --accent: #39ffb6;
  --accent-soft: rgba(57, 255, 182, 0.2);
  --accent-strong: #00e196;
  --text: #f7f7ff;
  --text-soft: #b5bdd7;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.16);
  --danger: #ff4b6e;
  --shadow-soft: 0 22px 45px rgba(0, 0, 0, 0.7);
  --radius-lg: 18px;
  --radius-full: 999px;
  --transition-fast: 0.2s ease;
  --transition-med: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111526 0, #050812 42%, #01030a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 0.4em;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 0.9em;
  color: var(--text-soft);
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* HEADER / NAV */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    to bottom,
    rgba(3, 6, 18, 0.94),
    rgba(3, 6, 18, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 0.75rem;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  width: 100%;
  gap: 0.75rem;
}

.lang-switcher {
  position: fixed;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.4rem;
  border-radius: 999px;
  background: rgba(3, 6, 18, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem;
  border: 2px solid transparent;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  line-height: 0;
  cursor: pointer;
  opacity: 0.72;
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast),
    background var(--transition-fast);
}

.lang-flag {
  display: block;
  line-height: 0;
}

.lang-flag svg {
  display: block;
  width: 30px;
  height: 20px;
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.lang-btn:hover {
  opacity: 1;
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.12);
}

.lang-btn--active {
  opacity: 1;
  border-color: var(--accent);
  background: rgba(57, 255, 182, 0.12);
  box-shadow: 0 0 14px rgba(57, 255, 182, 0.35);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.logo-mark {
  background: radial-gradient(circle at 10% 0, #39ffb6, #00b3ff);
  color: #020308;
  font-weight: 700;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-full);
  box-shadow: 0 0 18px rgba(57, 255, 182, 0.6);
}

.logo-text {
  font-weight: 600;
  color: var(--text-soft);
}

.nav {
  position: relative;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.nav-list a {
  color: var(--text-soft);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), #00b3ff);
  transition: width var(--transition-fast);
}

.nav-list a:hover {
  color: var(--text);
}

.nav-list a:hover::after {
  width: 100%;
}

.btn-nav {
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: radial-gradient(circle at 0 0, rgba(57, 255, 182, 0.1), transparent);
}

/* Mobile nav */
.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(3, 7, 18, 0.8);
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.nav-open .nav-toggle span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.nav-open .nav-list {
  max-height: 360px;
  opacity: 1;
  pointer-events: auto;
}

/* HERO */

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg {
  position: absolute;
  inset: -40px;
  background-image: url("./images/hero-bg.jpg");
  background-size: cover;
  background-position: center 38%;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.03) brightness(1);
  transform: scale(1.03);
}

.hero-overlay-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.75),
    rgba(0, 0, 0, 0.65) 40%,
    rgba(0, 0, 0, 0.85)
  );
}

.hero-content {
  padding: 5.4rem 0 4.6rem;
  max-width: 700px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 0.9rem;
}

.hero .eyebrow {
  margin-bottom: 0.7rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 3vw + 1.4rem, 3.6rem);
  line-height: 1.03;
  margin: 0;
}

.accent {
  color: var(--accent);
  text-shadow: 0 0 18px rgba(57, 255, 182, 0.65);
}

.hero-subtitle {
  margin-top: 1.15rem;
  margin-inline: auto;
  max-width: 40rem;
  font-size: 0.94rem;
  line-height: 1.5;
  text-align: center;
  text-wrap: pretty;
}

.hero-subtitle p {
  margin: 0;
  line-height: inherit;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.5rem;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.5rem;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--transition-med),
    color var(--transition-med),
    transform var(--transition-fast),
    box-shadow var(--transition-med),
    border-color var(--transition-med);
}

.btn-primary {
  background: linear-gradient(120deg, var(--accent), #00b3ff);
  color: #020308;
  font-weight: 600;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.8);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.9);
}

.btn-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-soft);
  background: rgba(5, 8, 20, 0.8);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(5, 8, 20, 1);
}

.hero-cta .btn-primary,
.hero-cta .btn-secondary {
  flex: 0 1 auto;
  min-width: 11.75rem;
  width: 11.75rem;
  max-width: calc(50% - 0.5rem);
  padding: 0.82rem 1.25rem;
  text-align: center;
  line-height: 1.25;
}

.hero-cta .btn-secondary {
  border: 1px solid var(--accent);
  color: var(--text);
  font-weight: 500;
  background: rgba(5, 8, 20, 0.82);
  box-shadow:
    0 0 0 1px rgba(57, 255, 182, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.55);
}

.hero-cta .btn-secondary:hover {
  border-color: var(--accent-strong);
  color: var(--text);
  background: rgba(57, 255, 182, 0.1);
  box-shadow:
    0 0 18px rgba(57, 255, 182, 0.35),
    0 16px 32px rgba(0, 0, 0, 0.65);
  transform: translateY(-1px);
}

.hero-cta .btn-primary {
  font-weight: 600;
}

.btn-full {
  width: 100%;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 2.5rem;
}

.hero-number {
  font-size: 1.4rem;
  font-weight: 600;
}

.hero-icon {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.4rem;
  line-height: 1;
}

.hero-label {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--text-soft);
}

.hero-highlights > div {
  padding: 0.9rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: radial-gradient(circle at 0 0, rgba(57, 255, 182, 0.09), transparent 60%);
  backdrop-filter: blur(14px);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* SECTIONS */

.section {
  padding: 4.6rem 0;
}

.section.section-bg {
  position: relative;
  z-index: 1;
  background: none !important;
}

.section.section-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: saturate(1.1) contrast(1.03) brightness(1);
}

.section.section-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
      to bottom,
      rgba(5, 8, 18, 1) 0%,
      rgba(5, 8, 18, 0.85) 6%,
      rgba(0, 0, 0, 0.7) 12%,
      rgba(0, 0, 0, 0.65) 25%,
      rgba(0, 0, 0, 0.65) 75%,
      rgba(0, 0, 0, 0.7) 88%,
      rgba(5, 8, 18, 0.85) 94%,
      rgba(5, 8, 18, 1) 100%
    );
  pointer-events: none;
}

.section-bg-about::before {
  background-image: url("./images/section-about.jpg");
  background-position: center 35%;
}

.section-bg-cortina::before {
  background-image: url("./images/section-cortina.jpg");
  background-position: center 42%;
}

.section-bg-tours::before {
  background-image: url("./images/section-tours.jpg");
  background-position: center 40%;
}

.section-bg-gallery::before {
  background-image: url("./images/section-gallery.jpg");
  background-position: center 45%;
}

.section-bg-ebike::before {
  background-image: url("./images/section-ebike.jpg");
  background-position: center 48%;
}

.section-bg-contact::before {
  background-image: url("./images/section-contact.jpg");
  background-position: center 50%;
}

.section-alt {
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.04), transparent 55%),
    radial-gradient(circle at bottom, rgba(0, 0, 0, 0.85), #050812 66%);
}

.section-header {
  text-align: left;
  margin-bottom: 2rem;
}

.section-header-center {
  text-align: center;
}

.section-header-center .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.section-intro {
  max-width: 34rem;
  font-size: 0.98rem;
}

/* ABOUT SECTION */

#about .about-layout {
  display: flex;
  justify-content: center;
  padding-inline: 0;
}

#about .section-text.about-panel {
  width: min(920px, 100%);
  text-align: center;
  margin-inline: auto;
  padding: clamp(1.75rem, 3vw, 2.6rem) clamp(1.25rem, 3vw, 2.4rem)
    clamp(2rem, 3.5vw, 2.75rem);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(57, 255, 182, 0.12), transparent 52%),
    linear-gradient(165deg, rgba(14, 20, 40, 0.82), rgba(5, 8, 20, 0.88));
  backdrop-filter: blur(18px);
  box-shadow:
    0 4px 1px rgba(255, 255, 255, 0.04) inset,
    0 28px 56px rgba(0, 0, 0, 0.55);
}

#about .about-eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}

#about .about-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 2vw + 1rem, 2.15rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.15;
  background: linear-gradient(120deg, #f7f7ff 0%, #e8ecff 45%, #c8d4f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

#about .about-title-line {
  width: min(5.5rem, 28vw);
  height: 3px;
  margin: 0 auto 1.15rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--accent), #00b3ff, transparent);
  opacity: 0.95;
}

#about .about-lead {
  max-width: 38rem;
  margin: 0 auto;
  color: rgba(247, 247, 255, 0.92);
  font-size: 1.02rem;
  line-height: 1.75;
  text-wrap: balance;
}

#about .guides-grid {
  margin-top: 2.15rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

#about .guide-profile {
  position: relative;
  z-index: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.15rem 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    radial-gradient(circle at 50% 0%, rgba(57, 255, 182, 0.12), transparent 55%),
    linear-gradient(160deg, rgba(18, 24, 44, 0.95), rgba(6, 10, 22, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  transition: transform var(--transition-fast), box-shadow var(--transition-med),
    border-color var(--transition-fast);
}

#about .guide-profile::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -25% -62% -25%;
  height: 130px;
  background: radial-gradient(circle, rgba(57, 255, 182, 0.2), transparent 68%);
  pointer-events: none;
}

#about .guide-profile:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 255, 182, 0.45);
  box-shadow:
    0 26px 50px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(57, 255, 182, 0.12);
}

#about .guide-profile:hover .guide-photo {
  background: linear-gradient(145deg, rgba(57, 255, 182, 0.65), rgba(0, 179, 255, 0.35));
}

#about .guide-photo {
  position: relative;
  z-index: 1;
  padding: 4px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(57, 255, 182, 0.45), rgba(0, 179, 255, 0.2));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

#about .avatar {
  position: relative;
  z-index: 1;
  width: 158px;
  height: 158px;
  border-radius: 18px;
  border: none;
  box-shadow: none;
}

#about .avatar img {
  object-position: 50% 30%;
}

#about .avatar-sebastiano img {
  object-position: 50% 14%;
}

#about .avatar-mattia img {
  object-position: 50% 30%;
}

#about .guide-profile h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.02em;
}

#about .about-bio {
  max-width: 42rem;
  margin: 2rem auto 0;
  padding: 1.35rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(57, 255, 182, 0.18);
  background: linear-gradient(
    165deg,
    rgba(57, 255, 182, 0.07),
    rgba(10, 16, 28, 0.92) 42%,
    rgba(6, 10, 22, 0.96)
  );
  color: rgba(247, 247, 255, 0.9);
  font-size: 0.96rem;
  line-height: 1.78;
  text-align: center;
  text-wrap: pretty;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

.ebike-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 1.35rem;
  align-items: start;
  margin-top: 1.5rem;
}

.ebike-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 0;
}

.card-ebike {
  padding: 1.6rem;
}

.card-ebike-icon {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
  line-height: 1;
}

.card-ebike h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card-ebike p {
  font-size: 0.92rem;
  margin-bottom: 0.6rem;
}

.card-ebike.featured {
  border-color: rgba(57, 255, 182, 0.4);
  background: linear-gradient(
    135deg,
    rgba(57, 255, 182, 0.1),
    rgba(0, 179, 255, 0.06)
  );
}

.ebike-benefits {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
  font-size: 0.9rem;
}

.ebike-benefits li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.35rem;
}

.ebike-benefits li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.85rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: center;
}

.section-text h2 {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.cards-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.2rem;
  margin-top: 1.6rem;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(
    145deg,
    rgba(16, 21, 40, 0.98),
    rgba(7, 10, 25, 0.96)
  );
  box-shadow: var(--shadow-soft);
  padding: 1.2rem 1.3rem;
}

.card-person {
  padding: 1.6rem 1.6rem;
}

.card-person-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.card-person h3 {
  font-size: 1.15rem;
}

.card-person p {
  font-size: 0.95rem;
  line-height: 1.5;
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent-soft);
  flex-shrink: 0;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 38%;
}

.avatar-sebastiano img {
  object-position: 50% 14%;
}

.avatar-mattia img {
  object-position: 50% 38%;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.16rem 0.6rem;
  font-size: 0.72rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
}

.badge-accent {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.stack-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.ebike-media-stack {
  grid-template-columns: minmax(0, 1fr);
  gap: 0.85rem;
  max-width: 320px;
  width: 100%;
  justify-self: end;
}

.media-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  min-height: 160px;
}

.media-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 160px;
  filter: saturate(1.1) contrast(1.05);
  transform: scale(1.03);
  transition: transform 0.8s ease;
}

.media-card:hover img {
  transform: scale(1.07);
}

.media-label {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.5rem 0.9rem;
  border-radius: 14px;
  font-size: 0.78rem;
  background: rgba(2, 4, 12, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.media-label-top {
  top: 1rem;
  bottom: auto;
}

#ebike .media-label-top {
  top: auto;
  bottom: 1rem;
}

.media-label span:last-child {
  color: var(--accent);
}

/* CORTINA SECTION */

.cortina-media {
  display: grid;
  gap: 0.9rem;
}

.cortina-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.6rem;
  align-items: start;
}

.cortina-heading {
  grid-column: 1 / -1;
  text-align: center;
  margin-bottom: 0.2rem;
}

.cortina-image-main {
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 26px 52px rgba(0, 0, 0, 0.9);
}

.cortina-image-main img,
.cortina-photo {
  width: 100%;
  object-fit: cover;
}

.cortina-image-main img,
.cortina-photo-main {
  height: 260px;
  object-position: 50% 45%;
}

.cortina-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.cortina-thumbs img,
.cortina-photo-thumb-1,
.cortina-photo-thumb-2 {
  border-radius: 16px;
  height: 138px;
  opacity: 1;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28);
  filter: saturate(1.08) contrast(1.04);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast),
    filter var(--transition-fast);
}

.cortina-photo-thumb-1 {
  object-position: 50% 22%;
}

.cortina-photo-thumb-2 {
  object-position: 50% 62%;
}

.cortina-thumbs img:hover {
  transform: translateY(-2px) scale(1.015);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.34);
  filter: saturate(1.14) contrast(1.06);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1.2rem;
}

.feature-list h3 {
  font-size: 1.02rem;
}

.feature-list p {
  font-size: 0.94rem;
}

#cortina .section-intro,
#cortina .feature-list h3,
#cortina .feature-list p {
  font-size: 1rem;
  line-height: 1.6;
}

/* PRICING */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card-pricing h3 {
  font-size: 1.15rem;
}

.pricing-tag {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pricing-duration {
  font-size: 0.86rem;
  color: var(--text-soft);
  margin-bottom: 0.7rem;
}

.card-pricing ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem;
  font-size: 0.9rem;
}

.card-pricing ul li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}

.card-pricing ul li::before {
  content: "▹";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.card-pricing.featured {
  border-color: rgba(57, 255, 182, 0.7);
  background: linear-gradient(
    135deg,
    rgba(57, 255, 182, 0.12),
    rgba(0, 179, 255, 0.08)
  );
  transform: translateY(-4px);
}

.card-pricing.featured .pricing-tag {
  font-size: 1.05rem;
}

.card-pricing .badge-accent {
  margin-bottom: 0.4rem;
}

.fine-print {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.pricing-note {
  margin-top: 1.6rem;
  font-size: 0.9rem;
}

/* GALLERY */

#gallery .section-header .section-intro {
  max-width: 36rem;
  text-wrap: pretty;
}

@media (min-width: 901px) {
  #gallery .section-header .section-intro {
    max-width: none;
    white-space: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-item {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(1.1);
  transform: scale(1.04);
  transition: transform 0.6s ease;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.09);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* CONTACT */

.section-contact {
  background: radial-gradient(circle at top left, rgba(57, 255, 182, 0.1), transparent 55%),
    radial-gradient(circle at bottom right, rgba(0, 179, 255, 0.08), #050812 66%);
}

.contact-details {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.4rem;
}

.contact-item h3 {
  font-size: 0.92rem;
}

.contact-item a {
  color: var(--accent);
  font-weight: 500;
}

.contact-item a:hover {
  text-decoration: underline;
}

.contact-form {
  padding: 1.5rem 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 0 0, rgba(57, 255, 182, 0.12), transparent 65%),
    rgba(4, 7, 18, 0.96);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.85);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.form-field label {
  font-size: 0.8rem;
  color: var(--text-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(10, 16, 32, 0.94);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.6rem 0.7rem;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(57, 255, 182, 0.6);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #7b86a1;
}

/* FOOTER */

.footer {
  --footer-logo-size: clamp(7rem, 22vw, 12rem);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.85rem 0 2.15rem;
  background: rgba(3, 6, 18, 0.98);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  align-items: center;
  gap: 1.25rem 2rem;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.footer-copy {
  margin: 0;
}

.footer-end {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.65rem;
  min-height: var(--footer-logo-size);
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  width: 100%;
  max-width: min(100%, calc(var(--footer-logo-size) * 2.75 + 8rem));
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.footer-logo--badge {
  width: var(--footer-logo-size);
  height: var(--footer-logo-size);
  border-radius: 50%;
}

.footer-logo--partner {
  width: auto;
  height: var(--footer-logo-size);
  max-width: min(18rem, 42vw);
  border-radius: 0;
}

.footer-logo:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.footer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.footer-logo--partner img {
  width: auto;
  max-width: 100%;
  height: 100%;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-links a {
  color: var(--accent);
}

.footer-links a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */

@media (max-width: 900px) {
  #contact .grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  #contact .section-text {
    order: 1;
  }

  #contact .section-media {
    order: 2;
  }

  #tours .pricing-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  #tours .card-pricing {
    width: 100%;
  }

  #cortina .cortina-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
  }

  #cortina .cortina-heading {
    margin-bottom: 0;
  }

  #cortina .cortina-media {
    width: 100%;
  }

  #cortina .cortina-copy {
    text-align: left;
  }

  #about .grid-2 {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  #about .section-text {
    text-align: center;
  }

  #about .section-intro {
    margin-left: auto;
    margin-right: auto;
  }

  #about .cards-list {
    gap: 1rem;
  }

  #about .section-media {
    margin-top: 0.2rem;
  }

  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ebike-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ebike-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .ebike-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ebike-media-stack {
    justify-self: stretch;
    max-width: none;
  }

  .stack-media {
    grid-template-columns: minmax(0, 1fr);
  }

  #about .guides-grid {
    gap: 1rem;
  }

  #about .avatar {
    width: 138px;
    height: 138px;
  }

  .hero-content {
    padding-top: 4.6rem;
  }
}

/* iPad verticale */
@media (min-width: 581px) and (max-width: 1024px) and (orientation: portrait) {
  #tours .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    align-items: stretch;
  }

  #tours .card-pricing {
    width: auto;
    padding: 1rem 0.85rem;
  }

  #tours .card-pricing h3 {
    font-size: 0.95rem;
  }

  #tours .card-pricing ul {
    font-size: 0.78rem;
  }

  #tours .pricing-tag {
    font-size: 0.88rem;
  }

  #tours .pricing-duration {
    font-size: 0.75rem;
  }

  #tours .card-pricing .badge-accent {
    font-size: 0.65rem;
    padding: 0.14rem 0.5rem;
  }
}

/* iPad verticale, iPad orizzontale, telefono orizzontale */
@media (max-width: 1024px) and (orientation: portrait),
  (orientation: landscape) and (max-height: 520px),
  (orientation: landscape) and (min-width: 769px) and (max-width: 1366px) and (pointer: coarse) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.4rem;
  }

  .header-row {
    width: 100%;
  }

  .lang-switcher {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 0;
    z-index: 1;
  }

  .hero-content {
    padding-top: 4.4rem;
  }

  .hero-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    align-items: stretch;
  }

  .hero-highlights > div {
    padding: 0.7rem 0.55rem;
    min-height: 100%;
  }

  .hero-icon {
    font-size: 1.5rem;
    margin-bottom: 0.3rem;
  }

  .hero-label {
    font-size: 0.66rem;
    line-height: 1.35;
  }

}

@media (max-width: 1024px) and (orientation: portrait) and (min-width: 581px),
  (orientation: landscape) and (max-height: 520px) {
  #cortina .cortina-image-main img,
  #cortina .cortina-photo-main {
    height: 260px;
  }

  #cortina .cortina-thumbs img,
  #cortina .cortina-photo-thumb-1,
  #cortina .cortina-photo-thumb-2 {
    height: 138px;
  }

  #ebike .ebike-media-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
    width: 100%;
    margin-inline: 0;
    justify-self: stretch;
    gap: 0.9rem;
  }

  #ebike .media-card {
    min-height: clamp(155px, 24vw, 220px);
  }

  #ebike .media-card img {
    min-height: clamp(155px, 24vw, 220px);
    height: 100%;
    object-position: center center;
  }

  #ebike .media-label {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.74rem;
  }

  #ebike .media-label-top {
    top: auto;
    bottom: 0.75rem;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(1120px, 96vw);
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding-inline: 0;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    gap: 0.4rem;
  }

  .header-row {
    width: 100%;
  }

  .lang-switcher {
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    margin: 0;
    z-index: 1;
  }

  .logo-text {
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    position: absolute;
    top: 120%;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.7rem 0.9rem;
    border-radius: 16px;
    background: rgba(2, 5, 16, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.9);
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
    transition: max-height 0.2s ease, opacity 0.2s ease;
  }

  .btn-nav {
    width: 100%;
    text-align: center;
  }

  .hero-content {
    max-width: 680px;
    padding-top: 4.2rem;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 4.2vw + 0.8rem, 2.8rem);
    line-height: 1.04;
  }

  .hero-subtitle {
    margin-top: 1.05rem;
    max-width: 36rem;
    font-size: 0.93rem;
    line-height: 1.46;
  }

  .section-text h2 {
    font-size: 1.45rem;
  }

  .hero-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.7rem;
  }

  .hero-highlights > div {
    padding: 0.65rem;
  }

  .hero-icon {
    font-size: 1.45rem;
  }

  .hero-label {
    font-size: 0.68rem;
  }

  .pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .card,
  .card-person,
  .card-ebike {
    padding: 1rem;
  }

  .card-pricing h3,
  .card-ebike h3,
  .card-person h3 {
    font-size: 1rem;
  }

  .card-pricing ul,
  .card-ebike p,
  .card-person p,
  .feature-list p {
    font-size: 0.84rem;
  }

  .pricing-duration,
  .fine-print,
  .ebike-benefits {
    font-size: 0.78rem;
  }

  .avatar {
    width: 84px;
    height: 84px;
  }

  .media-card,
  .media-card img {
    min-height: 145px;
  }

  #cortina .cortina-image-main img,
  #cortina .cortina-photo-main {
    height: 260px;
  }

  #cortina .cortina-thumbs img,
  #cortina .cortina-photo-thumb-1,
  #cortina .cortina-photo-thumb-2 {
    height: 138px;
  }

  .gallery-item img {
    height: 130px;
  }

  .contact-form {
    margin-top: 1.2rem;
  }

  .footer {
    --footer-logo-size: clamp(5.75rem, 38vw, 8.5rem);
    padding: 1.5rem 0 1.85rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .footer-copy {
    order: 2;
  }

  .footer-end {
    order: 1;
    width: 100%;
    align-items: stretch;
    gap: 0.75rem;
  }

  .footer-links {
    align-self: flex-start;
  }

  .footer-logos {
    align-self: stretch;
    justify-content: space-between;
    max-width: none;
  }
}

@media (max-width: 540px) {
  .section {
    padding: 3.6rem 0;
  }

  .hero {
    min-height: 82vh;
  }

  .hero-cta {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0.55rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    min-width: 9.1rem;
    width: 9.1rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.82rem;
  }

  .btn-primary,
  .btn-secondary {
    padding: 0.62rem 0.92rem;
    font-size: 0.82rem;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-highlights {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 2rem;
  }

  .pricing-grid,
  .ebike-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ebike-layout,
  .ebike-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #about .guides-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.9rem;
  }

  #about .guide-profile {
    padding: 1rem 0.95rem;
  }

  #about .about-bio {
    margin-top: 1.5rem;
    padding: 1.1rem 1rem;
    font-size: 0.88rem;
    line-height: 1.7;
  }

  #about .avatar {
    width: 120px;
    height: 120px;
    border-radius: 18px;
  }

  .card,
  .card-person,
  .card-ebike {
    padding: 0.8rem;
  }

  .card-pricing h3,
  .card-ebike h3,
  .card-person h3 {
    font-size: 0.92rem;
  }

  .card-pricing ul,
  .card-ebike p,
  .card-person p,
  .feature-list p {
    font-size: 0.76rem;
  }

  .gallery-item img {
    height: 115px;
  }

  #ebike .media-card,
  #ebike .media-card img {
    min-height: 135px;
  }

  #cortina .cortina-image-main img,
  #cortina .cortina-photo-main {
    height: 240px;
  }

  #cortina .cortina-thumbs img,
  #cortina .cortina-photo-thumb-1,
  #cortina .cortina-photo-thumb-2 {
    height: 128px;
  }
}

/* Sfondi sezione su telefono: foto in alto + sfumatura nei toni dell'immagine */
@media (max-width: 768px) {
  .hero-bg {
    inset: 0;
    transform: none;
    background-position: center 36%;
  }

  .hero-overlay-gradient {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.68) 0%,
      rgba(0, 0, 0, 0.42) 42%,
      rgba(0, 0, 0, 0.75) 82%,
      rgba(0, 0, 0, 0.9) 100%
    );
  }

  .section.section-bg {
    background: linear-gradient(
      180deg,
      #1a2a3c 0%,
      #142030 28%,
      #101a28 52%,
      #0c141f 76%,
      #090f18 100%
    ) !important;
  }

  .section.section-bg::before {
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.72) 52%,
      rgba(0, 0, 0, 0.28) 68%,
      transparent 82%
    );
    mask-image: linear-gradient(
      to bottom,
      #000 0%,
      #000 38%,
      rgba(0, 0, 0, 0.72) 52%,
      rgba(0, 0, 0, 0.28) 68%,
      transparent 82%
    );
  }

  .section.section-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(12, 20, 32, 0.15) 0%,
      rgba(14, 24, 38, 0.22) 34%,
      rgba(12, 20, 34, 0.38) 56%,
      rgba(10, 17, 28, 0.5) 78%,
      rgba(9, 15, 24, 0.58) 100%
    );
  }

  .section.section-bg.section-bg-cortina {
    background: linear-gradient(
      180deg,
      #1c3044 0%,
      #162838 30%,
      #111f2e 56%,
      #0c161f 100%
    ) !important;
  }

  .section.section-bg.section-bg-ebike {
    background: linear-gradient(
      180deg,
      #1a2836 0%,
      #14222e 30%,
      #101a26 56%,
      #0b121a 100%
    ) !important;
  }

  .section.section-bg.section-bg-tours {
    background: linear-gradient(
      180deg,
      #1b2e40 0%,
      #152636 30%,
      #101c2a 56%,
      #0b141e 100%
    ) !important;
  }

  .section.section-bg.section-bg-gallery {
    background: linear-gradient(
      180deg,
      #1a2c3e 0%,
      #142430 30%,
      #101a28 56%,
      #0b121a 100%
    ) !important;
  }

  .section.section-bg.section-bg-about {
    background: linear-gradient(
      180deg,
      #1a2a38 0%,
      #142230 30%,
      #101a26 56%,
      #0b1218 100%
    ) !important;
  }

  .section.section-bg.section-bg-contact {
    background: linear-gradient(
      180deg,
      #1b2c3c 0%,
      #152430 30%,
      #101c28 56%,
      #0b141c 100%
    ) !important;
  }

  .section-bg-cortina::before {
    background-position: center 40%;
  }

  .section-bg-ebike::before {
    background-position: center 46%;
  }

  .section-bg-tours::before {
    background-position: center 38%;
  }

  .section-bg-gallery::before {
    background-position: center 44%;
  }

  .section-bg-about::before {
    background-position: center 30%;
  }

  .section-bg-contact::before {
    background-position: center 48%;
  }
}

@media (max-width: 540px) {
  .hero-bg {
    background-position: center 34%;
  }

  .lang-switcher {
    padding: 0.28rem 0.34rem;
  }

  .lang-flag svg {
    width: 26px;
    height: 17px;
  }

  .logo-text {
    font-size: 0.68rem;
  }

}

/* Telefono verticale: gallery leggibile + sfondi sezione più fluidi */
@media (max-width: 768px) and (orientation: portrait) {
  #gallery .section-header .section-intro {
    white-space: normal;
    overflow: visible;
    overflow-wrap: break-word;
    max-width: 100%;
    margin-inline: auto;
    padding-inline: 0.15rem;
    color: #e4e9f5;
    font-size: 0.94rem;
    line-height: 1.58;
    text-align: center;
  }

  .section.section-bg::before {
    -webkit-mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      #000 5%,
      #000 30%,
      rgba(0, 0, 0, 0.9) 48%,
      rgba(0, 0, 0, 0.55) 62%,
      rgba(0, 0, 0, 0.18) 78%,
      transparent 94%
    );
    mask-image: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.4) 0%,
      #000 5%,
      #000 30%,
      rgba(0, 0, 0, 0.9) 48%,
      rgba(0, 0, 0, 0.55) 62%,
      rgba(0, 0, 0, 0.18) 78%,
      transparent 94%
    );
  }

  .section.section-bg::after {
    background: linear-gradient(
      to bottom,
      rgba(5, 8, 18, 0.97) 0%,
      rgba(5, 8, 18, 0.82) 5%,
      rgba(0, 0, 0, 0.62) 12%,
      rgba(0, 0, 0, 0.58) 26%,
      rgba(0, 0, 0, 0.55) 50%,
      rgba(0, 0, 0, 0.58) 74%,
      rgba(0, 0, 0, 0.66) 88%,
      rgba(5, 8, 18, 0.88) 96%,
      rgba(5, 8, 18, 1) 100%
    );
  }

  .section.section-bg.section-bg-cortina,
  .section.section-bg.section-bg-ebike,
  .section.section-bg.section-bg-tours,
  .section.section-bg.section-bg-gallery,
  .section.section-bg.section-bg-about,
  .section.section-bg.section-bg-contact {
    background: linear-gradient(
      180deg,
      rgba(14, 22, 34, 0.98) 0%,
      rgba(12, 19, 30, 0.94) 18%,
      rgba(10, 16, 26, 0.92) 45%,
      rgba(9, 14, 22, 0.94) 72%,
      rgba(8, 12, 20, 0.98) 100%
    ) !important;
  }
}


