﻿/* ========================================
   LAYOUT
   ======================================== */

/* Container */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}

/* Main Content */
main {
  min-height: 100vh;
}

/* Background Utilities */
.bg-mountain {
  /* background-image: url("../img/intermonte-mountain.webp"); */
  background-image: url("../img/bgk_area-riservta_2.jpg");
  /*background-image: url("/static/upload/bgk/bgk_area-riservta.jpg");*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Sections */
section {
  padding: 3rem 0;
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 4rem 0;
  overflow: hidden;
  color: #fff;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

@media (max-width: 39.99rem) {
  .hero-background__full { display: none; }
}

@media (min-width: 40rem) {
  .hero-background__thumb { display: none; }
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, #002b71 0%, rgba(0, 43, 113, 0.6) 40%, rgba(0, 43, 113, 0.1) 60%, transparent 100%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-chip {
  display: inline-block;
  padding: 0.2rem 1rem;
  background-color: #BDD7ED;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: #002C5F;
  width: fit-content;
  align-self: flex-start;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}


.hero :is(strong, b) {
  color: inherit;
}


.hero-description {
  font-size: 1.125rem;
  line-height: 1.7;
  margin: 0;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}




/* Carousel Section */
.carousel {
  padding: 0;
  margin: 0;
}

.carousel .swiper {
  width: 100%;
  height: 500px;
}

.carousel .swiper-slide {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.carousel .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Swiper Navigation */
.swiper-button-prev,
.swiper-button-next {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: background 0.3s;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.7);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-size: 20px;
}

.swiper-pagination-bullet {
  background: #fff;
  opacity: 0.5;
}

.swiper-pagination-bullet-active {
  opacity: 1;
  background: #0072ce;
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    min-height: 500px;
    padding: 3rem 0;
  }

  .hero-background::after {
    background: linear-gradient(to right, #002b71 0%, rgba(0, 43, 113, 0.8) 50%, rgba(0, 43, 113, 0.6) 70%, transparent 100%);
  }

  .hero-content {
    max-width: 100%;
    gap: 1.25rem;
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }

  .hero-chip {
    font-size: 0.75rem;
    padding: 0.4rem 0.875rem;
  }

  .btn--outline {
    padding: 0.625rem 1.5rem;
    font-size: 0.9375rem;
  }
  
  .carousel .swiper {
    height: 300px;
  }
}

/* ========================================
   TWO-COLUMN LAYOUT TEMPLATE
   ======================================== */

/* Two-column layout wrapper */
.two-column-template__body {
  padding: 1.5rem 0 4rem 0;
}

.two-column-template__inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: flex-start;
}

.two-column-template__content {
  display: flex;
  flex-direction: column;
  /* gap: 1rem; // task #128221 */
  min-width: 0;
}

/* Two-column hero variant */
.hero-two-column {
  position: relative;
  min-height: 260px;
  border-radius: 16px;
  overflow: hidden;
  /* task #128221 */
  margin-bottom: 1.5rem;
}

.hero-two-column__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

.hero-two-column::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 44, 95, 1) 0%,
    rgba(0, 44, 95, 0) 75%,
    transparent 100%
  );
  /*
  background: linear-gradient(
    90deg,
    #002c5f 0%,
    rgba(0, 44, 95, 0.9) 35%,
    rgba(0, 44, 95, 0.4) 65%,
    transparent 100%
  );
  */
  z-index: 1;
}

.hero-two-column__inner {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem;
  max-width: 520px;
  color: var(--color-text-inverse);
}

@media (max-width: 768px) {
  .hero-two-column__inner {
    padding: 1rem;
  }
}

.hero-two-column__kicker {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.hero-two-column__title {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 1rem 0;
}

.hero-two-column__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Two-column layout - Variante Area Clienti con background e trasparenza */
.two-column-template--client-area {
  background-image: url("../img/bgk_area-riservta_2.jpg"); /* background-image: url("../img/intermonte-mountain.webp"); */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  min-height: 100vh;
}

.two-column-template--client-area::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.6) 40%, rgba(255, 255, 255, 1) 100%);
  z-index: 0;
}

.two-column-template--client-area .two-column-template__body {
  position: relative;
  z-index: 1;
}

.two-column-template--client-area .two-column-template__content {
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
  border-radius: 16px;
  padding: 2.5rem 3rem;
}

/* Two-column layout - Responsive */
@media (max-width: 768px) {
  .two-column-template__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .two-column-template--client-area .two-column-template__content {
    padding: 1rem;
  }
  .two-column-template__body {
    padding: 1rem 0 2rem 0;
  }
}

@media (max-width: 480px) {
  .two-column-template__inner {
    gap: 1.5rem;
  }
  .two-column-template--client-area .two-column-template__content {
    padding: 1rem 0.75rem;
  }
  .two-column-template__body {
    padding: 0.75rem 0 1.5rem 0;
  }
  .container {
    padding: 0 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 450px;
    padding: 2rem 0;
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  .hero-description {
    font-size: 0.9375rem;
  }
}

/* task #128221 */
.content-block:has(> h2) + .content-block:has(> h3),
.content-block:has(> h3) + .content-block:has(> h3) { margin-top: 0; }
.hero-two-column__title { margin-bottom: 0; }
.content-block__body p:first-child { margin-top: 0; }
.content-block__body p:last-child { margin-bottom: 0; }

