/* Import CSS files in order */
@import url("reset.css");
@import url("base.css");
@import url("color.css");
@import url("typography.css");
@import url("component.css");

:root {
  --header-height: 12rem;
  --section-padding: var(--xl);
}
@media (width < 1200px) {
  :root {
    --section-padding: var(--lg);
  }
}
@media (width < 992px) {
  :root {
    --section-padding: var(--md);
  }
}

/* Header */
header {
  height: var(--header-height);
  background-color: var(--body-color);
  border-bottom: 0.1rem solid #cecbb8e0;
  transition: var(--transition);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 9999;
}
header.header-scrolled {
  height: calc(var(--header-height) - 3rem);
}
header + * {
  margin-top: var(--header-height);
}
header .container {
  height: 100%;
  display: flex;
  gap: var(--gutter);
}
header .logo {
  height: 100%;
  background-color: var(--primary-color);
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 27rem;
}
header .logo::before {
  position: absolute;
  right: 0;
  top: 0;
  width: 100vw;
  height: 100%;
  content: "";
  background-color: var(--primary-color);
  z-index: -1;
}
header .logo a {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 0 var(--gutter-half);
}
header .logo img {
  min-width: 12.7rem;
  max-width: 12.6rem;
}
.header-logo,
.header-content {
  flex: 1 0 0%;
  display: flex;
}
.header-content {
  align-items: center;
  justify-content: flex-end;
  gap: 0 2rem;
}
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0 var(--gutter-half);
  transition: var(--transition);
}
nav a {
  white-space: nowrap;
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 1rem;
  text-align: center;
  line-height: 1;
  padding: var(--gutter-half) 0;
  transition: var(--transition);
}

@media (width > 1199px) {
  header nav {
    width: 100%;
    max-width: 90rem;
  }
  nav a:hover, nav a.active {
    color: var(--primary-color);
  }
}
@media (width < 1200px) {
  header {
    height: calc(var(--header-height) - 3rem);
  }
  header + * {
    margin-top: calc(var(--header-height) - 3rem);
  }
  nav {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    justify-content: center;
    background-color: var(--primary-color);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
  }
  nav a {
    color: white;
    font-size: calc(var(--fs-lg) + 1rem);
  }
  nav.active {
    opacity: 1;
    visibility: visible;
  }
  header .logo {
    position: relative;
    z-index: 9999;
  }
}
@media (width < 768px) {
  .header-content {
    gap: 0 var(--gutter-half);
  }
  header .logo img {
    min-width: 10rem;
  }
}

/* Footer */
footer {
  background-color: var(--primary-color);
}
.footer-content {
  padding: var(--section-padding) 0;
}
.copyright:not(:first-child) {
  border-top: 0.1rem solid var(--tertiary-color);
}
.copyright {
  padding: var(--gutter) 0;
}
.copyright .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gutter-half);
}
.copyright p {
  color: var(--tertiary-color);
  font-family: var(--fw-medium);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem var(--gutter);
}
.footer-links a {
  white-space: nowrap;
  color: white;
}
.footer-links a:hover {
  text-decoration: underline;
}
.logos {
  display: flex;
  align-items: center;
  gap: var(--gutter);
  flex-wrap: wrap;
}
.footer-content-column .logos:not(:last-child) {
  margin-bottom: var(--lg);
}
.footer-content-column:first-child {
  max-width: 57rem;
}
.footer-content-column-block p {
  color: black;
}
.footer-content-column-block > :not(:last-child) {
  margin-bottom: var(--gutter-half);
}
.footer-content-column-block .fs-sm {
  border-bottom: 0.1rem solid black;
}
.logo-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gutter);
}
.footer-content .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--gutter);
}
.address-block-row p,
.address-block-row p a {
  color: var(--tertiary-color);
}
.address-block-row:not(:last-child) {
  margin-bottom: var(--gutter);
}
.address-block-row > :not(:last-child) {
  margin-bottom: 1rem;
}
.footer-content-column-address {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gutter) var(--xl);
}
.other-links li {
  display: flex;
}
.other-links li:not(:last-child) {
  margin-bottom: var(--gutter-half);
}
.other-links li a {
  display: block;
  line-height: 1;
  color: var(--tertiary-color);
}
@media (width < 992px) {
  .footer-content-column .logos:not(:last-child) {
    margin-bottom: var(--gutter);
  }
  .footer-content-column-address {
    display: flex;
    flex-wrap: wrap;
    gap: var(--gutter);
  }
}

/* Section */
.section {
  padding: var(--section-padding) 0;
}
.section > :not(:last-child), .section-block:not(:last-child) {
  margin-bottom: calc(var(--section-padding) - 2rem);
}

/* Hero Section */
.hero-section {
  padding: var(--section-padding) 0;
}
.hero-section .hero-section-block:first-child{background-image: url('../images/grafica-hero.svg'); background-position: center top; background-repeat: no-repeat; background-size: auto auto;}
.hero-section .hero-section-block.primary-bg{position: relative; isolation: isolate;}
.hero-section .hero-section-block.primary-bg::before{position: absolute; left: 0; bottom: 0; width: 100%; height: 75%; content: ""; background-image: url('../images/grafica-red.svg'); background-position: center top; background-repeat: no-repeat; background-size: 100% auto; z-index: -1; opacity: 5%; pointer-events: none;}
@media (width < 992px) {
  .hero-section .hero-section-block:first-child{background-size: 150vw auto;}
}
@media (width < 768px) {
  .hero-section .hero-section-block:first-child{background-size: 200vw auto;}
  .hero-section .hero-section-block.primary-bg::before{width: 150vw; opacity: 10%;}
}


.hero-section-block:not(:last-child) {
  margin-bottom: var(--md);
}
.hero-section-block:first-child .container {
  display: flex;
  flex-direction: column;
}
.hero-section-container{align-items: center; gap: var(--sm);}
.hero-banner {
  width: 100%;
  aspect-ratio: 3.5/1;
  overflow: hidden;
}
.hero-banner img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.hero-section.page-hero-section .hero-section-block {
  margin-bottom: 0 !important;
}
.hero-section.page-hero-section .hero-section-block:last-child {
  padding: var(--xl) 0;
}
@media (width < 1200px) {
  .hero-banner {
    aspect-ratio: 3.2/1;
  }
  .hero-section.page-hero-section .hero-section-block:last-child {
    padding: var(--lg) 0;
  }
}
@media (width < 992px) {
  .hero-banner {
    aspect-ratio: 2.2/1;
  }
  .hero-section.page-hero-section .hero-section-block:last-child {
    padding: var(--md) 0;
  }
}
@media (width < 768px) {
  .hero-banner {
    aspect-ratio: 2/1;
  }
}

/* Section Headding */
.section-headding {
  min-height: 10rem;
  display: flex;
  align-items: center;
  border-top: 0.1rem solid rgba(var(--secondary-color-rgb), 30%);
  border-bottom: 0.1rem solid rgba(var(--secondary-color-rgb), 30%);
}
.section-headding > * {
  display: flex;
  align-items: center;
  gap: 0 2rem;
}
.section-headding p {
  text-transform: uppercase;
  font-family: var(--secondary-font);
  color: var(--primary-color);
}
.section-headding.article-section-headding {
  border: 0;
  padding: 0;
  min-height: auto;
}

/* Section Header */
.section-header h2:not(:last-child) {
  margin-bottom: var(--gutter);
}
.section-header .container.flex {
  gap: var(--gutter);
}
@media (width < 768px) {
  .section-header .container.flex {
    flex-direction: column;
  }
}

/* image */
.image {
  object-fit: cover;
  overflow: hidden;
}
.image img {
  border-radius: var(--border-radius);
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Aspect ratio */
.asepect-ratio_1-57_1 {
  aspect-ratio: 1.57/1;
}
.aspect-ratio_1-6_1 {
  aspect-ratio: 1.6/1;
}

/* Gallery grid */
.gallery-grid {
  gap: 2rem;
}

/* Card Slider */
.card-slider .swiper-wrapper {
  align-items: stretch;
}
.card-slider .swiper-slide {
  width: auto;
  height: auto !important;
}
.card-slider .card-slide {
  height: 100%;
}
.card-slide {
  width: 40rem;
  border-radius: var(--border-radius);
  border: 0.1rem solid var(--secondary-color);
  overflow: hidden;
  display: block;
  color: var(--secondary-color);
}
.card-slide-header {
  padding: var(--gutter);
}
.card-slide-header > :not(:last-child) {
  margin-bottom: 0.5rem;
}
.card-slide figure {
  aspect-ratio: 1;
}
.card-slide figure img {
  object-fit: cover;
  object-position: top;
  width: 100%;
  height: 100%;
}
.card-slide.event-slide .card-slide-header > :not(:last-child) {
  margin-bottom: var(--gutter-half);
}
.card-slide.event-slide .card-slide-header {
  padding: calc(var(--gutter) - 1rem);
}
.card-slide.event-slide figure {
  aspect-ratio: 1.33/1;
}
@media (width < 1200px) {
  .card-slide {
    width: 35rem;
  }
}
@media (width < 992px) {
  .card-slide-header {
    padding: var(--gutter-half);
  }
  .card-slide {
    width: 30rem;
  }
}
@media (width < 768px) {
  .card-slide-header > :not(:last-child) {
    margin-bottom: 0;
  }
  .card-slide {
    width: 25rem;
  }
}

.map-article {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.map-article > * {
  padding-top: var(--section-padding);
  padding-bottom: var(--section-padding);
}
.map-article > :first-child {
  background-color: var(--primary-color);
  padding-right: var(--xl);
  display: flex;
  align-items: center;
  position: relative;
  isolation: isolate;
}
.map-article > :first-child::before {
  background-color: inherit;
  position: absolute;
  right: 100%;
  top: 0;
  width: 100vw;
  height: 100%;
  content: "";
  z-index: -1;
}
.map-article > :last-child {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: center;
}
.map-article article > :not(:last-child) {
  margin-bottom: var(--lg);
}
@media (width < 1200px) {
  .map-article article > :not(:last-child) {
    margin-bottom: var(--md);
  }
}
@media (width < 992px) {
  .map-article {
    grid-template-columns: 1fr;
  }
  .map-article > :first-child::before {
    right: calc(var(--gutter) * -1);
  }
  .map-article article > :not(:last-child) {
    margin-bottom: var(--sm);
  }
  .map-article > :last-child {
    padding-left: 0;
    padding-right: 0;
  }
}
.map-details-grid figure {
    padding: var(--xl) !important;
}


.location-map-images {
    padding: var(--xl) !important;
}
/* Article */
article h2:not(:last-child), article h5:not(:last-child) {
    margin-bottom: var(--sm);
}
article p:not(:last-child) {
  margin-bottom: var(--gutter-half);
}

/* Ordered List */
.ordered-list {
  margin: -2rem 0;
}
.ordered-list > li {
  padding: 2rem 0;
  padding-left: calc(var(--xl) + var(--sm));
}
.ordered-list > li:not(:last-child) {
  border-bottom: 0.1rem solid var(--secondary-color);
}
.ordered-list > li p:not(:last-child) {
  margin-bottom: var(--gutter-half);
}
.ordered-list > ul {
  margin-left: var(--sm);
}
.ordered-list > ul > li {
  padding-left: calc(var(--xl) - var(--sm));
}
@media(width < 1200px){
   .ordered-list > li {
    padding-left: var(--sm);
   } 
}

/* List Counter */
.ordered-list{list-style: none; counter-reset: custom-counter;}
.ordered-list > li{counter-increment: custom-counter; position: relative;}
.ordered-list > li::before{content: ".0" counter(custom-counter); color: var(--primary-color); position: absolute; left: 0; top: 2rem;}

.list-grid{margin: calc(var(--md) * -1) 0;}
.list-grid > li{display: grid; grid-template-columns: 1fr 2fr; gap: var(--gutter-half); padding: var(--md) 0;}
.list-grid > li:not(:last-child){border-bottom: .1rem solid rgba(var(--secondary-color-rgb), 15%);}
.list-grid > li > ul > li{display: grid; grid-template-columns: repeat(3, 1fr);}
.list-grid > li > ul > li > *{line-height: 1; padding: var(--gutter-half) 0;}
.list-grid > li > ul > li:not(:last-child){border-bottom: .1rem solid rgba(var(--secondary-color-rgb), 15%);}
.list-grid > li > ul > li a{color: var(--primary-color);}
@media(width < 1200px){
    .list-grid > li{grid-template-columns: 1fr;}
    .list-grid{margin: calc(var(--gutter) * -1) 0;}
    .list-grid > li{padding: var(--gutter) 0;}
}
@media(width > 991px){
    .list-grid > li > ul > li > .span-2{grid-column: span 2;}
}
@media(width < 992px){
    .list-grid > li > ul > li{display: grid; grid-template-columns: 1fr; padding-left: var(--gutter-half);}
    .list-grid > li > ul > li > *{padding: 1rem 0;}
}

.map-list li{ transition: var(--transition); cursor: pointer;}
.map-list li:not(:last-child){border-bottom: .1rem solid rgba(var(--secondary-color-rgb), 15%);}

.map-list li a{font-family: var(--headding-font); opacity: 30%; transition: var(--transition); font-size: var(--h2); color: var(--secondary-color); width: 100%; display: block; padding: var(--sm) 0;}
.map-list li:hover a{color: var(--primary-color); opacity: 100%;}
.map-list li a:hover, .map-list li a.active{padding-left: var(--md); color: var(--primary-color); opacity: 100%;}
@media(width < 1200px){
    .map-list li a{padding: var(--gutter) 0;}
}

.breadcrumbs-wrapper h2{font-family: var(--headding-font); color: var(--tertiary-color);}

.map-details-grid{display: grid; grid-template-columns: 1fr auto;}
.map-details > :not(:last-child){margin-bottom: var(--section-padding);}
.map-details-grid figure{max-width: 80.2rem;}
ul.article-border-list li:not(:last-child){margin-bottom: var(--gutter);}
ul.article-border-list li{margin: -2rem 0;}
ul.article-border-list li > :not(:last-child){border-bottom: .1rem solid rgba(var(--secondary-color-rgb), 15%);}
ul.article-border-list li > *{padding: 2rem 0;}

.products-grid{display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--lg) var(--sm);}
.products-grid .card-slide{width: 100%; height: 100%;}
@media(width < 1400px){
    .products-grid{grid-template-columns: repeat(3, 1fr); gap: var(--gutter);}
}
@media(width < 992px){
    .products-grid{grid-template-columns: repeat(2, 1fr);}
}
@media(width < 641px){
    .products-grid{grid-template-columns: 1fr;}
}

.product-detail-block{display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--md);}
.article-border-list .card-slide{padding: 0;}
@media(width < 1200px){
  .product-detail-block{grid-template-columns: 1fr; gap: var(--gutter);}
}

.media{margin: calc(var(--lg) * -1) 0;}
.media > li{padding: var(--lg) 0;}
.media > li:not(:last-child){border-bottom: .1rem solid rgba(var(--secondary-color-rgb), 15%);}
.media > li{display: grid; grid-template-columns: repeat(2, 1fr);}
.media > li h5{color: var(--primary-color); text-transform: uppercase; padding-left: var(--xl); position: relative;}
.media > li h5::before{position: absolute; left: 0; top: 1.5rem; width: 4.4rem; height: .7rem; background: url(../images/dots.png) center center no-repeat; background-size: 100% 100%; content: "";}
.media > li ul{margin: calc(var(--sm) * -1) 0;}
.media > li ul li{padding: var(--sm) 0;}
.media > li ul li:not(:last-child){border-bottom: .1rem solid rgba(var(--secondary-color-rgb), 15%);}
.media > li ul li > p:first-child{margin-bottom: 2rem;}
.media > li ul li div{display: grid; grid-template-columns: 1fr auto; gap: var(--gutter); align-items: flex-end;}
@media(width < 1200px){
  .media{margin: calc(var(--md) * -1) 0;}
  .media > li{padding: var(--md) 0;}
  .media > li ul li div{display: flex; flex-direction: column; align-items: flex-start;}
}
@media(width < 992px){
  .media{margin: calc(var(--sm) * -1) 0;}
  .media > li{padding: var(--sm) 0;}
  .media > li{grid-template-columns: 1fr; gap: var(--gutter);}
  .media > li h5{padding-left: var(--md);}
  .media > li h5::before{top: .8rem;}
}

.tabs-header{padding: var(--sm) 0; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: var(--gutter-half); justify-content: space-between;}
.tabs-header::after{position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); content: ""; width: 100vw; height: .1rem; background-color: rgba(var(--secondary-color-rgb), 15%);}
.tabs-header:not(:last-child){margin-bottom: var(--section-padding);}
.tabs{display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem;}
.tabs > *{display: flex; align-items: center; border-radius: var(--border-radius); line-height: 1; white-space: nowrap; font-family: var(--fw-medium); color: var(--secondary-color); border: .1rem solid var(--secondary-color); padding: .5rem 1rem;}
.tabs > .active{border-color: var(--primary-color); background-color: var(--primary-color); color: var(--tertiary-color);}

.contact > :not(:last-child){margin-bottom: var(--xl);}
.contact ul li{padding: var(--gutter-half) 0; font-family: var(--secondary-font);}
.contact ul li:not(:last-child){border-bottom: .1rem solid rgba(var(--secondary-color-rgb), 15%);}
.contact-block h5:not(:last-child){margin-bottom: var(--gutter);}
.map-block{aspect-ratio: 3.5/1; overflow: hidden;}
.map-block iframe{border: 0; width: 100%; height: 100%; pointer-events: none;}
@media(width < 1200px){
  .contact > :not(:last-child){margin-bottom: var(--lg);}
}
@media(width < 992px){
  .contact > :not(:last-child){margin-bottom: var(--md);}
  .contact-block h5:not(:last-child){margin-bottom: var(--gutter-half);}
  .map-block{aspect-ratio: 3/1;}
}
@media(width < 768px){
  .contact > :not(:last-child){margin-bottom: var(--sm);}
  .map-block{aspect-ratio: 2.5/1;}
}
@media(width < 576px){
  .map-block{aspect-ratio: 2/1;}
}

.location-map-wrapper{position: relative;}
.location-map-wrapper .location-map-image{position: absolute; right: 0; top: 0; pointer-events: none; max-width: 70vh;}
.location-map-wrapper .location-map-image img{width: 100%;}
@media(width < 992px){
  .map-list li a{font-size: calc(var(--h2) / 2);}
  .map-list li a:hover, .map-list li a.active {padding-left: var(--gutter);}
}
@media(width < 768px){
  .location-map-wrapper .location-map-image{max-width: 50vw; max-height: 50vh;}
}
@media(width < 576px){
  .map-list li a{padding: 1rem 0;}
  .map-list li a:hover, .map-list li a.active {padding-left: var(--gutter-half);}
}




