:root {
  --bg: #f4f5fa;
  --bg-alt: #eaecf5;
  --ink: #3b3f5c;
  --ink-soft: #625f6e;
  --accent: #008ac9;
  --accent-2: #0078af;
  --surface: #ffffff;
  --line: #ebebeb;
  --radius: 16px;
  --shadow: 0 14px 45px rgba(0, 138, 201, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 20% 0%, #d8eef8 0%, transparent 40%),
    radial-gradient(circle at 85% 20%, #e6ecf8 0%, transparent 35%),
    var(--bg);
  line-height: 1.5;
}

main {
  flex: 1;
  width: 100%;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #111;
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 5000;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.narrow {
  width: min(760px, 100%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  background: rgba(244, 245, 250, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 138, 201, 0.12);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-text {
  font-size: 0.94rem;
}

.main-nav {
  justify-self: center;
  display: inline-flex;
  gap: 1.1rem;
}

.main-nav a,
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.btn-login,
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-login,
.btn-primary {
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #fff;
  border: 1px solid #0066a0;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-login:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 9px 24px rgba(0, 138, 201, 0.28);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font-weight: 600;
}

.mobile-nav {
  display: grid;
  gap: 0.3rem;
  border-top: 1px solid var(--line);
  background: #eef0f8;
  padding: 0.75rem 4%;
}

.mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0;
  font-weight: 600;
}

.mobile-login-link {
  color: var(--accent);
}

.hero {
  padding: 3rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.hero-grid-split {
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  gap: 1.6rem;
  min-height: 460px;
}

.hero-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.inline-logo-title {
  display: inline-block;
  height: 1.1em;
  width: auto;
  vertical-align: -0.12em;
  margin: 0 0.15em;
}

.hero-title-logo {
  line-height: 1.14;
  margin-bottom: 1rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.77rem;
  color: var(--accent-2);
}

h1,
h2,
h3 {
  line-height: 1.14;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4.4vw, 3.45rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.55rem, 3.1vw, 2.2rem);
}

.hero-text {
  color: var(--ink-soft);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.3rem;
}

/* === CAROUSEL === */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #0d1624;
}

.carousel-track {
  display: flex;
  transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

.carousel-slide {
  flex: none;
  min-width: 100%;
  min-height: 380px;
}

.carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 20px;
  backdrop-filter: blur(4px);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.carousel-dot.is-active {
  background: #ffffff;
  transform: scale(1.3);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.75);
}

.hero-card {
  position: relative;
  border-radius: 24px;
  background: linear-gradient(175deg, #0d2340, #061429);
  color: #f7f6f3;
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow);
}

.hero-card-title {
  margin-top: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-card ul {
  margin: 0;
  padding-left: 1rem;
}

.hero-card li {
  margin-bottom: 0.6rem;
}

.pulse {
  position: absolute;
  right: 1rem;
  top: 1rem;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #5ef08b;
  box-shadow: 0 0 0 0 rgba(94, 240, 139, 0.7);
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(94, 240, 139, 0.65); }
  70% { box-shadow: 0 0 0 16px rgba(94, 240, 139, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 240, 139, 0); }
}

.section {
  padding: 2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-alt), #eef0f8);
  border-top: 1px solid rgba(0, 138, 201, 0.1);
  border-bottom: 1px solid rgba(0, 138, 201, 0.1);
}

.section p {
  color: var(--ink-soft);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.service-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.service-grid-three {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
  margin-top: 1.6rem;
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 0.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 0.77rem;
  color: var(--accent);
}

.image-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 138, 201, 0.18);
}

.image-card-img-wrap {
  overflow: hidden;
  height: 230px;
}

.image-card-img-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.38s ease;
}

.image-card:hover .image-card-img-wrap img {
  transform: scale(1.04);
}

.image-card-body {
  padding: 1.1rem 1.2rem 1.3rem;
}

.image-card h2 {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.helpline-banner {
  border-radius: 20px;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: linear-gradient(130deg, #43b649, #2f9f38);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(47, 159, 56, 0.35);
}

.helpline-title {
  margin: 0 0 0.85rem;
  font-weight: 700;
  color: #ffffff !important;
}

.helpline-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.helpline-number {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

#numeri-verdi .helpline-banner {
  background: linear-gradient(130deg, #43b649, #2f9f38);
}

#numeri-verdi .helpline-number,
#numeri-verdi .helpline-number:visited,
#numeri-verdi .helpline-number:hover,
#numeri-verdi .helpline-number:focus {
  color: #ffffff;
  text-decoration: none !important;
}

.helpline-number strong {
  font-size: clamp(1.2rem, 2.4vw, 1.6rem);
  letter-spacing: 0.03em;
}

.helpline-label {
  font-size: 0.82rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.helpline-number:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.04);
}

.contacts-grid,
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: stretch;
}

.contact-card,
.map-placeholder {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.map-placeholder {
  display: grid;
  place-items: center;
  min-height: 210px;
  font-weight: 700;
  color: #1a3d5c;
  background: repeating-linear-gradient(
    -45deg,
    #c4dff2,
    #c4dff2 12px,
    #ebf4fb 12px,
    #ebf4fb 24px
  );
}

.site-footer {
  border-top: 1px solid rgba(0, 138, 201, 0.15);
  background: #eaecf5;
  padding: 1.1rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer nav {
  display: inline-flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.link-button {
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  padding: 0;
}

.link-button:hover {
  color: var(--accent);
}

.noscript-warning {
  background: #0d2c4e;
  color: #fff;
  text-align: center;
  padding: 0.65rem;
}

.cookie-banner {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  width: min(520px, calc(100% - 2rem));
  background: #fff;
  border: 1px solid #008ac9;
  border-radius: 14px;
  box-shadow: 0 20px 40px rgba(9, 11, 10, 0.28);
  padding: 1rem;
  z-index: 3000;
}

.cookie-banner h3 {
  margin: 0 0 0.5rem;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.cookie-actions button {
  border-radius: 999px;
  border: 1px solid #008ac9;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.cookie-actions .btn-accept {
  background: #008ac9;
  color: #fff;
}

.cookie-actions .btn-reject {
  background: #fff;
  color: #3b3f5c;
}

.cookie-actions .btn-customize {
  background: #eaecf5;
  color: #3b3f5c;
  border-color: #c2cae0;
}

.cookie-panel {
  margin-top: 0.9rem;
  border-top: 1px solid #d0dff0;
  padding-top: 0.75rem;
}

.cookie-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin: 0.5rem 0;
}

.cookie-row label {
  font-weight: 600;
}

.section-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.section-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .header-inner {
    grid-template-columns: auto auto auto;
  }

  .main-nav,
  .btn-login {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .hero-grid,
  .carousel,
  .service-grid,
  .service-grid-two,
  .service-grid-three,
  .helpline-grid,
  .contacts-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid-split {
    grid-template-columns: 1fr;
    min-height: unset;
  }

  .carousel {
    min-height: 300px;
  }

  .image-card-img-wrap {
    height: 200px;
  }
}

@media (max-width: 580px) {
  .hero {
    padding-top: 3.6rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    width: auto;
  }
}
