/*
    Theme Name: 	De.Co Wine Theme
    Description: 	Tema custom per De.Co Wine Stoccaggio per cantine based on Nextawards theme by Andrea Marchetti
    Version:     	1.0.0
    Author:     	Gloria Goldin
    Site:           https://www.linkedin.com/in/gloria-goldin/
    Text Domain: 	decowine
    Tested up to:   6.1
    Requires PHP:   5.6
    Domain Path: 	/languages
    License:    	GNU General Public License v3.0
    License URI:	http://www.gnu.org/licenses/gpl-3.0.html
*/

/* ! Reset */
body,
html {
  font-size: 16px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto",
    "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
*,
*:before,
*:after {
  box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin: 0;
  padding: 0;
}
ol,
ul {
  padding-left: 20px;
}
img {
  height: auto;
}
a {
  text-decoration: none;
}
hr {
  border: none;
  border-bottom: 1px solid var(--site-bg);
}

body.admin-bar .header {
  z-index: 1000;
}

/* ------------------------------------------------------------------------- *
/* 0 Admin */
/* ------------------------------------------------------------------------- */

#wpadminbar + .header.style__black {
  padding-top: calc(1rem + 46px);
}

@media (min-width: 1190px) {
  #wpadminbar + .header.style__trasparent {
    top: calc(2rem + 32px);
  }
}

@media (max-width: 1190px) {
  #wpadminbar + .header.style__trasparent {
    top: 46px;
  }
}

/* ------------------------------------------------------------------------- *
/* 1 Base */
/* ------------------------------------------------------------------------- */
:root {
  --site-bg: #121212;
  --site-bg-light: #E4E2E1;
  --site-bg-box: #292929;
  --site-text-color: #fff;
  --site-secondary-text-color: #808080;
  --site-highlighted-text-color: #A79F98;
  --link-color: #808080;
  --link-color-hover: #4d4d4d;  
}

/* Typography */
body {
  font-size: 20px;
  background-color: var(--site-bg);
  color: var(--site-text-color);
  font-family: "acumin-pro", arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
body.custom-background.dark {
  background-color: var(--site-bg);
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 1190px) {
  body {
    font-size: 0.95rem;
  }
}

h6 {
  text-transform: uppercase;
  letter-spacing: 3.6px;
}

.highlighted-text {
  color: var(--site-highlighted-text-color);
}

.block-text {
  display: block;
}

.secondary-text {
  color: var(--site-secondary-text-color);
}

.uppercase-text {
  text-transform: uppercase;
}

/* ! Title System */
h1,
h2,
h3,
h4,
h5,
h6,
p,
ol,
ul {
  margin-bottom: 1rem;
}

p {
  line-height: 1.5;
}

.text-0 {
  font-size: 9.4rem;
  font-family: "mencken-std-head-narrow", Times, sans-serif;
}
h1,
.text-1 {
  font-size: 7.5rem;
  line-height: 1;
  font-family: "mencken-std-head-narrow", Times, sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}
h2,
.text-2 {
  font-size: 5.75rem;
  line-height: 1;
  font-family: "mencken-std-head-narrow", Times, sans-serif;
  text-transform: uppercase;
  font-weight: 400;
}
h3,
.text-3 {
  font-size: 2rem;
  letter-spacing: -0.54px;
  line-height: 150%;
}
h4,
.text-4 {
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: -0.54px;
  line-height: 120%;
}
h5,
p,
.text-5,
ul,
li {
  font-size: 1.25rem;
  letter-spacing: -0.4px;
}
.text-6,
h6 {
  font-size: 1.1rem;
}

small,
.text-7 {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 1190px) {
  .text-0 {
    font-size: 4rem;
  }
  h1,
  .text-1 {
    font-size: 3.15rem;
    line-height: 1;
  }
  h2,
  .text-2 {
    font-size: 2.65rem;
    line-height: 1;
  }
  h3,
  .text-3 {
    font-size: 1.25rem;
    line-height: 1.4;
  }
  h4,
  .text-4 {
    font-size: 1.3rem;
    line-height: 1.3;
  }
  h5,
  p,
  .text-5,
  ul,
  li {
    font-size: 0.95rem;
  }
  .text-6,
  h6 {
    font-size: 0.8rem;
  }
}

/* Link color */
a {
  color: var(--link-color);
}
a:focus,
a:hover {
  color: var(--link-color-hover);
  text-decoration: none;
}

/* Button Link */
.wp-block-button__link {
  text-decoration: none !important;
  color: #fff;
}
.wp-block-button__link:hover {
  text-decoration: none !important;
  color: #fff;
}

/* ------------------------------------------------------------------------- *
/* 2 Layout */
/* ------------------------------------------------------------------------- */

@media (min-width: 1190px) {
  body.page-template-menu-black {
    position: relative;
  }
  body {
    padding: 2rem;
  }
}

@media (max-width: 1190px) {
  body {
    padding: 1rem;
  }

  .wrapper {
    overflow: hidden;
  }
}

.wrapper {
  width: 100%;
}

/* ------------------------------------------------------------------------- *
/* 2.1 Menu */
/* ------------------------------------------------------------------------- */

.spacer {
  height: 140px;
}

.header__topbar {
  background-color: #333;
  width: 100%;
  padding: 4px 4px;
  color: #fff;
  text-align: center;
  margin-right: calc(50% - 50vw);
  margin-left: calc(50% - 50vw);
  width: auto;
}
@media (max-width: 794px) {
  .header__topbar {
    font-size: 13px;
  }
  .spacer {
    height: 100px;
  }
}
.header {
  background-color: var(--site-bg);
  z-index: 9999;
  width: 100%;
}
.header__content {
  width: 100%;
  margin: 0 auto;
  display: flex;
  column-gap: 2rem;
  justify-content: flex-start;
  align-items: center;
  position: relative;
  padding-right: 2rem;
}

.header__logo,
.header__quick {
  display: flex;
  align-items: center;
  color: var(--site-text-color);
}

.menu,
.menu ul {
  margin: 0;
  padding: 0;
  position: relative;
  flex: 1;
}
.menu li {
  display: inline-block;
  position: relative;
}
.menu li a {
  display: block;
  padding: 1.5rem;
  font-size: 20px;
  transition: color .25s ease;
}

.menu li:last-child {
  position: relative;
}

.menu li:last-child a::before {
  content: " ";
  display: inline-block;
  width: 80px;
  height: 18px;
  background-size: 100%;
  background-repeat: no-repeat;
  background-image: url('./assets/icons/new.svg');
  background-position: center;
  top: 0;
  position: absolute;
  left: calc(50% + 20px);
}

.icon-hamburger {
  display: none;
}

/* Menu mobile */
@media (min-width: 1190px) {
  .menu, .menu ul {
    display: flex;
    flex-direction: row;
  }
}
@media (max-width: 1190px) {
  .header__logo-img {
    width: 50px;
    height: auto;
  }

  .menu {
    position: absolute;
    top: 49px;
    left: 0;
    right: 0;
    background-color: #fff;
    min-width: 100%;
    overflow: auto;
    transition: all 0.6s cubic-bezier(0.215, 0.61, 0.355, 1);
    padding-left: 0;
    transform: scaleY(0);
    transform-origin: top;
    z-index: 10;
    padding-top: 4.3vh;
  }
  .menu ul {
    display: inherit;
  }
  .menu li {
    width: 100%;
    border-bottom: 1px solid #DCDADA;
  }
  .menu li:last-child {
    border-bottom: none;
  }
  .menu li a {
    color: var(--site-bg);
  }
  .menu li:last-child a::before {
    content: " ";
    top: 50%;
    right: 1rem;
    left: auto;
    margin-top: -9px;
  }

  .menu-open .menu {
    transform: scaleY(1);
  }

  .icon-hamburger {
    display: flex;
    flex-direction: row;
    align-items: center;
    column-gap: .6rem;
    position: absolute;
    top: 50%;
    right: 1rem;
    border: none;
    background: transparent;
    z-index: 9999;
    margin-top: -10px;
  }
  .icon-hamburger .label {
    font-style: normal;
    font-size: 15px;
  }
  .icon-hamburger > span > span {
    height: 2px;
    width: 18px;
    background: var(--site-bg);
    position: relative;
    display: block;
    margin-bottom: 4px;
    transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  .icon-hamburger > span > span:last-child {
    margin-bottom: 0;
  }

  .menu-open .icon-hamburger > span > span:nth-child(1) {
    opacity: 0;
  }
  .menu-open .icon-hamburger > span > span:nth-child(2) {
    transform: rotate(45deg) translateY(2px) translateX(-2px);
  }
  .menu-open .icon-hamburger > span > span:nth-child(3) {
    transform: rotate(-45deg) translateY(-7px) translateX(2px);
  }
  .header__content {
    height: 50px;
  }
  .header__quick {
    display: flex;
    justify-content: flex-start;
    padding: 1.5rem;
  }

}

@media (max-width: 500px) {
  .header__quick .menu-item-type-custom {
    display: none;
  }
  .header__quick button {
    pointer-events: none;
  }
}

/* Menu homepage (trasparent) */
@media (min-width: 1190px) {
  .header.style__trasparent {
    background: transparent;
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    position: absolute;
    top: 2rem;
    left: 2rem;
    right: 0;
    width: calc(100% - 2rem);
  }
  .header.style__trasparent .menu li a:hover {
    color: #A79F98;
  }
  .header.style__trasparent[class^="icon-"] {
    filter: brightness(0) invert(1);
  }

  .header.style__trasparent .menu li a,
  .header.style__trasparent .header__quick ul li a {
    color: #fff;
  }
  .header.style__trasparent .header__logo-img {
    padding: 0 2rem 2rem 0;
    width: 148px;
    height: auto;
    background-color: var(--site-bg);
  }
  .header.style__trasparent .menu .header__quick {
    margin-right: 2rem;
  }

  /* On window scroll */
  .scroll-down .header.style__trasparent {
    background: #121212;
    position: fixed;
    top: 0 !important;
    padding-top: 2rem;
  }

  .scroll-down .header.style__trasparent .header__logo-img {
    padding: 0 2rem 0 0;
    width: 100px;
  }
}

@media (max-width: 1190px) {
  .header.style__trasparent .header__content {
    background: #fff;
  }

  .header.style__trasparent {
    position: fixed;
    width: calc(100% - 2rem);
    left: 1rem;
    top: 0;
    padding-top: 1rem;
  }

  .header.style__trasparent + .wrapper #content {
    padding-top: 50px;
  }
}

/* Menu pages (full) */
.header.style__black .header__content {
  background: #fff;
}

@media (min-width: 1190px) {
  .header.style__black {
    background: var(--site-bg);
    transition: all 1s cubic-bezier(0.215, 0.61, 0.355, 1);

    position: fixed;
    left: 2rem;
    width: calc(100% - 4rem);
    top: 0;
    padding-top: 2rem;
  }

  .header.style__black .menu li a,
  .header.style__black .header__quick ul li a {
    color: var(--site-bg);
  }
  .header.style__black .menu li a:hover {
    color: #A79F98;
  }
  .header.style__black .menu li.current_page_item a,
  .header.style__black .header__quick ul li.current_page_item a {
    color: #A79F98;
  }
  .header.style__black .header__logo-img {
    width: 100px;
    height: auto;
  }
}

@media (max-width: 1190px) {
  .header.style__black {
    position: fixed;
    width: calc(100% - 2rem);
    left: 1rem;
    top: 0;
    padding-top: 1rem;
  }
}

/* Menu Dropdown */
.menu li ul {
  background: #eee;
  visibility: hidden;
  opacity: 0;
  min-width: 200px;
  position: absolute;
  transition: all 0.5s ease;
  margin-top: 0px;
  left: 0;
  display: none;
  padding: 0;
}
.menu li ul > li > a,
.header.style__trasparent .menu li ul > li > a {
  color: var(--site-bg);
}
.menu li ul > li > a:hover {
  background: #ccc;
  color: var(--site-bg);
}

/* Open Dropdown */
@media (min-width: 1190px) {
  .menu li:hover > ul,
  .menu li ul:hover {
    visibility: visible;
    opacity: 1;
    display: block;
  }
}
.menu li.open-dropdown ul {
  visibility: visible;
  opacity: 1;
  display: block;
}

.menu li ul li {
  clear: both;
  width: 100%;
}
.menu > li.menu-item-has-children > a {
  position: relative;
  padding-right: 30px;
}

.menu > li.menu-item-has-children > a::after {
  content: " ";
  width: 30px;
  height: 30px;
  background-size: 30px;
  position: absolute;
  top: 50%;
  right: 0;
  transform: rotate(90deg);
  margin-top: -15px;
  background-size: 100%;
  background-image: url('data:image/svg+xml;utf8,<svg width="50px" height="50px" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="M22.7 34.7l-1.4-1.4 8.3-8.3-8.3-8.3 1.4-1.4 9.7 9.7z"/></svg>');
}

@media (min-width: 1190px) {
  .page-template-menu-trasparent .menu > li.menu-item-has-children > a::after {
    background-image: url('data:image/svg+xml;utf8,<svg width="50px" height="50px" viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg"><path fill="black" d="M22.7 34.7l-1.4-1.4 8.3-8.3-8.3-8.3 1.4-1.4 9.7 9.7z"/></svg>');
    filter: invert(1);
  }
}

@media (max-width: 1190px) {
  .menu li ul {
    position: relative;
    background: none;
  }
  .menu li ul li {
    border: none;
  }
  .menu li ul li a {
    padding-left: 30px;
  }
}

/* ------------------------------------------------------------------------- *
/* 2.2 Home */
/* ------------------------------------------------------------------------- */

/* Hero */
.hero__container {
  position: relative;
  padding-top: 60vh;
  padding-bottom: 5vh;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.hero__image img {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  object-fit: cover;
  object-position: center;
  height: 100%;
  width: 100%;
}

.hero__title, .hero__subtitle {
  z-index: 10;
  position: relative;
}

.hero__overlay {
  background-color: #000;
  opacity: 0.5;
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
  z-index: 2;
}

/* Servizi */
.servizi__container {
  background-color: var(--site-bg-light);
}

.servizi__box {
  position: relative;
  width: 50%;
}

.servizi__image {
  width: 100%;
  object-fit: fill;
  object-position: center;
}

.servizi__image-badge {
  position: absolute;
  width: 50px;
  height: 50px;
  background-color: var(--site-bg-light);
  color: var(--link-color);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 3.6px;
}

.servizi__text {
  text-align: center;
}

.servizi__sticky {
  position: -webkit-sticky;
  position: sticky;
  top: calc(2rem + 109px);
}

/* Loading */
.loader__container {
  background-position: center;
  background-repeat: no-repeat;
  text-align: center;
  position: relative;
  margin-bottom: 2rem;
}

.loader__content {
  z-index: 10;
  position: relative;
}

.loading-bar__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.6rem;
  justify-content: center;
  width: 504px;
  margin: 0 auto;
}

.loading-bar__wrapper label {
  display: flex;
  align-items: center;
  width: 100%;
}

.loading-bar__wrapper h6 {
  flex: 1;
  text-align: left;
}

.loading-bar__wrapper progress {
  width: 100%;
}

.loader__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2;
}

@media (min-width: 1190px) {
  /* Hero */
  .hero__subtitle {
    max-width: 50%;
    margin: auto;
  }
}

@media (max-width: 1190px) {
  /* Hero */
  .hero__container {
    margin-top: 1rem;
    padding-top: 37vh;
  }

  /* Loading */
  .loader__container {
    margin-bottom: 1rem;
  }

  .loading-bar__wrapper {
    width: 250px;
  }
}

@media (min-width: 991px) {
  /* Servizi */
  .servizi__boxes {
    padding-left: 4vw !important;
  }

  .servizi__boxes .servizi__box:nth-child(1) {
    float: left;
    padding-right: 2.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(2) {
    float: right;
    margin-top: 406px;
    padding-left: 2.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(2n+3) {
    float: left;
    margin-top: 200px;
    padding-right: 2.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(2n+4) {
    float: right;
    margin-top: 200px;
    padding-left: 2.5rem;
  }

}

@media (max-width: 991px) {
  /* Servizi */
  .servizi__image-badge {
    display: none;
  }

  .servizi__boxes {
    padding-right: 2vw !important;
    padding-left: 2vw !important;
  }

  .servizi__boxes .servizi__box:nth-child(1) {
    float: left;
    padding-right: 0.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(2) {
    float: right;
    margin-top: 60px;
    padding-left: 0.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(3) {
    float: left;
    margin-top: 40px;
    padding-right: 0.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(4) {
    float: right;
    margin-top: 40px;
    padding-left: 0.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(5) {
    float: left;
    margin-top: 40px;
    padding-right: 0.5rem;
  }

  .servizi__boxes .servizi__box:nth-child(6) {
    float: right;
    margin-top: 40px;
    padding-left: 0.5rem;
  }
}

/* ------------------------------------------------------------------------- *
/* 2.3 Progetto */
/* ------------------------------------------------------------------------- */

.progetto-header__content {
  text-align: center;
}

.progetto-header-image__container img {
  max-height: 70vh;
  object-fit: cover;
  object-position: center;
}

/* Ambiente block */
.ambiente__image {
  position: relative;
}

.ambiente__box {
  background-color: var(--site-bg-box);
  position: absolute;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  row-gap: 1.5vh;
}

.ambiente__box img {
  width: auto;
  display: inline-block;
}

@media (min-width: 1190px) {
  .ambiente__box {
    left: 3rem;
    top: -3rem;
    padding: 3rem;
    width: 309px;
    height: 309px;
  }

  .ambiente__box img {
    height: 57px;
  }
}

@media (max-width: 1190px) {
  .ambiente__box {
    left: calc(50% - 94px);
    top: -3rem;
    padding: 1.5rem 1rem;
    width: 188px;
    height: 188px;
  }

  .ambiente__box img {
    height: 37px;
  }

  .ambiente__image {
    margin-bottom: 5vh;
  }

  .servizio-vino__content .btn__wrapper {
    margin-top: 5vh;
  }
}

/* Servizio vino block */
.servizio-vino__container {
  background-position: bottom center;
  background-repeat: no-repeat;
}

.servizio-vino__content {
  text-align: center;
  margin: 0 auto;
}

/* ------------------------------------------------------------------------- *
/* 2.4 Servizi */
/* ------------------------------------------------------------------------- */

.servizi-header__content {
  text-align: center;
}

.servizi-grid__image img {
  width: 100%;
  object-fit: cover;
}

@media (min-width: 1190px) {
  .servizi-grid__image img {
    height: 466px;
  }

  div[class*='servizi-grid__title'] {
    position: relative;
    z-index: 2;
  }

  .servizi-grid__container .grid:nth-child(even) {
    flex-direction: row-reverse;
  }

  .servizi-grid__container .grid:nth-child(odd) .servizi-grid__title h2 {
    position: absolute;
    left: -3.5rem;
    top: 2rem;
  }

  .servizi-grid__container .grid:nth-child(even) .servizi-grid__title h2 {
    position: absolute;
    right: -4.5rem;
    top: 2rem;
  }

}

@media (max-width: 1190px) {
  .servizi-grid__container .grid {
    row-gap: 3.5vh;
  }

  .servizi-grid__image img {
    height: 203px;
  }
}

/* ------------------------------------------------------------------------- *
/* 2.5 Cittadella */
/* ------------------------------------------------------------------------- */

.timeline__timeline {
  background-color: var(--site-bg-box);
}

.timeline__info-box {
  background-color: var(--site-bg-light);
  color: var(--site-bg);
}

.timeline__content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 12vh;
  padding-bottom: 4vh;
}

.timeline__content::after {
  content: '';
  position: absolute;
  width: 2px;
  background: #6a6a6a;
  top: 0;
  bottom: 0;
  left: 50%;
  margin-left: -1px;
}

.timeline__period {
  position: relative;
  width: 50%;
}

.timeline__period::after {
  content: '';
  position: absolute;
  width: 12px;
  height: 12px;
  right: -6px;
  background-color: #6a6a6a;
  top: 0;
  border-radius: 50%;
  z-index: 1;
  transition: transform 0.3s;
}

.timeline__period.past {
  cursor: pointer;
}

.timeline__period.past:hover .timeline__label h6 {
  color: #fff;
}

.timeline__period.past:not(.active):hover:after {
  transform: scale(1.2);
}

.timeline__content .timeline__period:nth-child(even) {
  left: 0;
  text-align: right;
}

.timeline__content .timeline__period:nth-child(odd) {
  left: 50%;
}

.timeline__content .timeline__period:nth-child(odd)::after {
  left: -6px;
}

.timeline__content .timeline__period.past:nth-child(even)::after {
  width: 42px;
  height: 42px;
  right: -21px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  top: -15px;
  border: 1px solid #fff;
}

.timeline__content .timeline__period.past:nth-child(odd)::after {
  width: 42px;
  height: 42px;
  left: -21px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  top: -15px;
  border: 1px solid #fff;
}

.timeline__content .timeline__period.active:nth-child(even)::after {
  width: 70px;
  height: 70px;
  right: -35px;
  background-size: cover;
  top: -29px;
  border: 1px solid #fff;
}

.timeline__content .timeline__period.active:nth-child(odd)::after {
  width: 70px;
  height: 70px;
  left: -35px;
  background-size: cover;
  top: -29px;
  border: 1px solid #fff;
}

.timeline__period.active .timeline__label h6 {
  color: #fff;
}

.timeline__label {
  padding: 0 3rem;
  position: relative;
}

.timeline__progress {
  position: absolute;
  width: 120px;
  bottom: 2rem;
  left: 2rem;
}

.gallery-cittadella__container {
  position: relative;
}

.timeline__progress--mobile {
  background-color: var(--site-bg-box);
  width: 100%;
}

@media (min-width: 1190px) {
  .timeline__info-box img {
    height: 337px;
    object-fit: cover;
  }

  .timeline__container .timeline__progress--mobile {
    display: none;
  }

  .tns-controls {
    position: absolute;
    left: 4rem;
    right: 4rem;
    display: flex;
    justify-content: space-between;
    top: 50%;
    z-index: 1;
  }

  .tns-controls button {
    width: 45px;
    height: 45px;
    border: 1px solid #fff;
    text-align: center;
    background: transparent;
    color: transparent;
  }

  .tns-controls button:disabled {
    opacity: 0;
  }

  .tns-controls button[data-controls="prev"] {
    content: '';
    background: url('./assets/icons/arrow-white.svg') no-repeat center;
    transform: rotate(180deg);
  }

  .tns-controls button[data-controls="next"] {
    content: '';
    background: url('./assets/icons/arrow-white.svg') no-repeat center;
  }

  .gallery-cittadella__slide {
    transition: opacity 0.3s;
    position: relative;
  }

  .gallery-cittadella__slide--badge {
    position: absolute;
    top: -1px;
    left: -1px;
    background-color: var(--site-bg);
    width: 60px;
    height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 3.6px;
    color: var(--link-color);
  }

  .gallery-cittadella__slide:not(.slide-focused) {
    opacity: 0.3;
  }

  .gallery-cittadella__slide img {
    height: 72.68vh;
    width: 73vw;
    object-fit: cover;
    object-position: center;
  }
}

@media (max-width: 1190px) {
  .timeline__info-box .tns-nav > [aria-controls] {
    background: #000;
  }

  .timeline__container .timeline__timeline {
    display: none;
  }

  .gallery-cittadella__slide img {
    width: 100%;
    height: 21.8vh;
    object-fit: cover;
    object-position: center;
  }

  .gallery-cittadella__slide--badge {
    display: none;
  }
}

/* ------------------------------------------------------------------------- *
/* 2.6 Contatti */
/* ------------------------------------------------------------------------- */
.contatti__container {
  align-items: center;
}

.contatti__info {
  background-color: var(--site-bg-box);
  display: flex;
  flex-direction: column;
  row-gap: 2.5rem;
}

.contatti__info-box a {
  color: #fff;
}

.contatti__social a {
  filter: invert(1);
  zoom: 1.2;
}

.contatti__form input[type="text"], .contatti__form input[type="email"], .contatti__form textarea, .contatti__form input[type="tel"] {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid rgb(255 255 255 / 50%);
  padding: 1rem 0.6rem;
  margin-top: 2rem;
  font-size: 1.25rem;
}

.contatti__form textarea {
  font-family: "acumin-pro", arial, sans-serif;
}

.contatti__form input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 30px;
  height: 30px;
  background-color: transparent;
  border: 1px solid rgb(255 255 255 / 50%);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contatti__form input[type="checkbox"]::before {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  transform: scale(0);
  transition: 0.1s transform ease-in-out;
  background: #fff;
}

.contatti__form input[type="checkbox"]:checked::before {
  transform: scale(1);
}

.contatti__form input[type="checkbox"]:checked {
  border-color: #fff;
}

.contatti__form .btn__wrapper {
  margin-top: 2rem;
}

.contatti__form label {
  display: flex;
  flex-direction: row;
  align-items: center;
  column-gap: 0.6rem;
  margin-top: 2rem;
}

.contatti__form label span {
  font-size: 0.75rem;
  color: var(--site-secondary-text-color);
}

.contatti__form-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

@media (max-width: 1190px) {
  .contatti__info {
    margin-bottom: 12vh;
  }

  .contatti__form input[type="text"], .contatti__form input[type="email"], .contatti__form textarea, .contatti__form input[type="tel"] {
    font-size: 0.95rem;
  }
}

@media (min-width: 1190px) {
  
}

/* ------------------------------------------------------------------------- *
/* 2.7 Footer */
/* ------------------------------------------------------------------------- */

.footer {
  background-color: #E4E2E1;
  color: var(--site-bg);
}

.footer__first {
  text-align: center;
}

.footer__logo {
  display: inline-block;
}

.footer__info {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.3rem;
  color: var(--site-secondary-text-color);
}

.footer__second {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__menu {
  list-style-type: none;
  padding-left: 0;
}

.footer__menu li {
  padding: 0.4rem 0;
}

.footer__menu li a {
  color: var(--site-bg);
}

.footer__menu li a:hover {
  color: #000;
}

.footer__third {
  text-align: center;
  color: var(--site-secondary-text-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer__copyright {
  border-top: 1px solid #CCC9C8;
  color: var(--site-secondary-text-color);
}

@media (min-width: 1190px) {
  .footer__first {
    border-right: 1px solid #CCC9C8;
  }

  .footer__second {
    border-right: 1px solid #CCC9C8;
  }

  .copyright__menu {
    text-align: center;
  }
  
  .copyright__credits {
    text-align: right;
  }

  .footer__info a, .footer__info span {
    font-size: 1.1rem
  }
}

@media (max-width: 1190px) {
  .footer__first {
    border-bottom: 1px solid #CCC9C8;
  }

  .footer__second {
    border-bottom: 1px solid #CCC9C8;
  }

  .copyright__piva, .copyright__menu, .copyright__credits {
    text-align: center;
  }

  .copyright__menu a {
    display: block;
  }

  .footer__info a, .footer__info span {
    font-size: 0.8rem
  }

  .footer__logo img {
    width: 55px;
    height: auto;
  }

  .footer__de-vigili {
    width: 88px;
    height: auto;
  }
}

/* ------------------------------------------------------------------------- *
/* 2.8 Shared */
/* ------------------------------------------------------------------------- */

/* Blocco - Tecnologie */
.tecnologie__container {
  background-position: bottom center;
  background-repeat: no-repeat;
}

.tecnologie__container.tecnologie--white {
  background: var(--site-bg-light);
  color: var(--site-bg);
}

.tecnologie__container.tecnologie--white .tecnologie__grid .grid__col img {
  filter: invert(1);
}

.tecnologie__title {
  grid-area: header;
}

div.grid__col:nth-child(2) {
  grid-area: box1;
}

div.grid__col:nth-child(3) {
  grid-area: box2;
}

div.grid__col:nth-child(4) {
  grid-area: box3;
}

div.grid__col:nth-child(5) {
  grid-area: box4;
}

div.grid__col:nth-child(6) {
  grid-area: box5;
}

/* Blocco - Laboratorio */
.laboratorio__container {
  background: var(--site-bg-light);
  color: var(--site-bg);
}

.laboratorio__container .grid {
  border-top: 1px solid #CCC9C8;
}

/* Loading block */
progress[value] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  height: 10px;
  background: #fff;
}

progress[value]::-webkit-progress-bar {
  background: #fff;
}
progress[value]::-webkit-progress-value {
  background: var(--site-highlighted-text-color);
}
progress[value]::-moz-progress-bar {
  background: var(--site-highlighted-text-color);
}

@media (min-width: 1190px) {
  .tecnologie__grid {
    display: grid;
    row-gap: 3rem;
    column-gap: 2rem;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-template-areas: 
      "header header box1 box2"
      ". box3 box4 box5";
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1%;
  }

  .tecnologie__title-mobile {
    display: none;
  }
}

@media (max-width: 1190px) {
  .tecnologie__title {
    display: none !important;
  }
}

/* Text only block */
@media (min-width: 1190px) {
  .text-only__container h2 {
    text-wrap: nowrap;
  } 
}

/* Text + image block (2 cols 30/70) */
.text-image__container {
  background: url("./assets/img/decowine-bg-dark.jpeg") no-repeat bottom;
}

.text-image__container.text-image__white {
  background: var(--site-bg-light);
  color: var(--site-bg);
}

@media (min-width: 1190px) {
  .text-image__image {
    padding-left: 4vw;
    height: 100%;
  }

  .text-image__image--left {
    height: 100%;
  }
}

@media (max-width: 1190px) {
  .text-image__image, .text-image__image--left {
    padding-bottom: 4vh;
  }
}

/* Features block */
.feature__box {
  background-color: var(--site-bg-box);
  position: relative;
  padding: 2rem 2rem 8rem;
  margin-bottom: 6rem;
}

.feature__box img {
  width: 45px;
  height: 45px;
  display: block;
}

.feature__box-bottom {
  position: absolute;
  width: 100%;
  text-align: right;
  left: 0;
  bottom: -100px;
}

.feature__box-count {
  display: block;
  font-size: 9.4rem;
  font-family: "mencken-std-head-narrow", Times, sans-serif;
}

@media (max-width: 1190px) {
  .features__box [class*="col-"] {
    padding: 0;
  }
}

/* Video block */
.video__bg {
  background-position: center;
  background-repeat: no-repeat;
  width: 100%;
  text-align: center;
  position: relative;
}

.video__bg a {
  position: absolute;
  border: 1px solid #fff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s;
  z-index: 9;
}

.video__bg a:hover {
  transform: scale(1.2);
}

.video__overlay {
  background-color: #000;
  opacity: 0.4;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}

@media (min-width: 1190px) {
  .video__bg {
    padding: 38vh 0;
  }

  .video__bg a {
    top: calc(50% - 92px);
    left: calc(50% - 92px);
    height: 184px;
    width: 184px;
  }
}

@media (max-width: 1190px) {
  .video__bg {
    padding: 15.7vh 0;
  }
  
  .video__bg a {
    top: calc(50% - 30px);
    left: calc(50% - 30px);
    height: 60px;
    width: 60px;
  }

  .video__bg img {
    height: 7px;
  }
}

/* Random */
.container__text-black {
  color: var(--site-bg);
}

/* Sliders */
.tns-nav {
  display: flex;
  grid-gap: 13px;
  margin-top: 6vh;
}

.tns-nav > [aria-controls] {
  width: 12px;
  height: 12px;
  border-radius: 0;
  border: none;
  background: #fff;
  opacity: 0.3;
}

.tecnologie--white .tns-nav > [aria-controls] {
  background: #000;
}

.tns-nav > .tns-nav-active {
  opacity: 1;
}

/* ------------------------------------------------------------------------- *
/* 3 Buttons  */
/* ------------------------------------------------------------------------- */

.btn__wrapper {
  display: inline-block;
}

.btn__contatti {
  display: flex;
  flex-direction: row;
  align-items: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #a79f98;
  line-height: 0;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  color: var(--site-bg);
  letter-spacing: -0.4px;
}

button.btn__contatti {
  background-color: transparent;
  font-size: 1em;
}

.btn__contatti:hover {
  color: #fff;
}

.btn__contatti:hover span {
  z-index: 10;
  display: block;
}

.btn__contatti:hover span:last-child {
  filter: invert(1);
}

.btn__contatti:active,
.btn__contatti:focus {
  color: inherit;
}

.btn__contatti span:first-child {
  position: relative;  
  padding: 21px 20px 22px;
  transition: color 600ms cubic-bezier(0.48, 0, 0.12, 1);
}

.btn__contatti span:last-child {
  border-left: 1px solid #a79f98;
  padding: 16px 10px 15px;
  transition: filter 600ms cubic-bezier(0.48, 0, 0.12, 1);
}

.btn__contatti:after {
  content: "";
  position: absolute;
  bottom: -50%;
  left: 0;
  width: 100%;
  height: 100%;
  transform-origin: bottom center;
  transition: transform 600ms cubic-bezier(0.48, 0, 0.12, 1);
  transform: skewY(9.3deg) scaleY(0);
  z-index: 0;
  background-color: var(--site-bg);
}

.btn__contatti:hover:after {
  transform-origin: bottom center;
  transform: skewY(9.3deg) scaleY(2);
}

.btn__wrapper .btn__white {
  color: #fff;
}

.btn__wrapper .btn__contatti.btn__white:hover {
  color: var(--site-bg);
}

.btn__wrapper .btn__contatti.btn__white:after {
  background-color: #fff;
}

.btn__wrapper .btn__contatti.btn__white span:last-child {
  filter: invert(1);
}

.btn__wrapper .btn__contatti.btn__white:hover span:last-child {
  filter: invert(0);
}

@media (max-width: 1190px) {
  .btn__contatti span:first-child {
    padding: 17px 16px 18px;
  }

  .btn__contatti span:last-child {
    padding: 12px 3px 11px;
  }
}

@media (min-width: 1190px) {
  .header__quick .btn__contatti.btn__white {
    color: #fff;
  }
  
  .header__quick .btn__contatti.btn__white:hover {
    color: var(--site-bg);
  }

  .header__quick .btn__contatti.btn__white:after {
    background-color: #fff;
  }

  .header__quick .btn__contatti.btn__white span:last-child {
    filter: invert(1);
  }

  .header__quick .btn__contatti.btn__white:hover span:last-child {
    filter: invert(0);
  }
}

/* ------------------------------------------------------------------------- *
/* 5 Helpers  */
/* ------------------------------------------------------------------------- */
.mt-0 {
  margin-top: 0 !important;
}
.mt-1 {
  margin-top: 1vh !important;
}
.mt-2 {
  margin-top: 2vh !important;
}
.mt-3 {
  margin-top: 4.15vh !important;
}
.mt-4 {
  margin-top: 8.30vh !important;
}
.mt-5 {
  margin-top: 10.38vh !important;
}
.mt-6 {
  margin-top: 18vh !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}
.mb-1 {
  margin-bottom: 1vh !important;
}
.mb-2 {
  margin-bottom: 2vh !important;
}
.mb-3 {
  margin-bottom: 4.15vh !important;
}
.mb-4 {
  margin-bottom: 8.30vh !important;
}
.mb-5 {
  margin-bottom: 10.38vh !important;
}
.mb-6 {
  margin-bottom: 18vh !important;
}

.pr-0 {
  padding-right: 0 !important;
}
.pr-1 {
  padding-right: 1vw !important;
}
.pr-2 {
  padding-right: 2vw !important;
}
.pr-3 {
  padding-right: 4.15vw !important;
}
.pr-4 {
  padding-right: 8.30vw !important;
}
.pr-5 {
  padding-right: 10.38vw !important;
}

.pl-0 {
  padding-left: 0 !important;
}
.pl-1 {
  padding-left: 1vw !important;
}
.pl-2 {
  padding-left: 2vw !important;
}
.pl-3 {
  padding-left: 4.15vw !important;
}
.pl-4 {
  padding-left: 8.30vw !important;
}
.pl-5 {
  padding-left: 10.38vw !important;
}

.pt-1 {
  padding-top: 1vh !important;
}
.pt-3 {
  padding-top: 2vh !important;
}
.pt-3 {
  padding-top: 4.15vh !important;
}
.pt-4 {
  padding-top: 8.30vh !important;
}
.pt-5 {
  padding-top: 10.38vh !important;
}
.pt-6 {
  padding-top: 18vh !important;
}

.pb-1 {
  padding-bottom: 1vh !important;
}
.pb-2 {
  padding-bottom: 2vh !important;
}
.pb-3 {
  padding-bottom: 4.15vh !important;
}
.pb-4 {
  padding-bottom: 8.30vh !important;
}
.pb-5 {
  padding-bottom: 10.38vh !important;
}
.pb-6 {
  padding-bottom: 18vh !important;
}

@media(max-width: 1190px) {
  .mt-0 {
    margin-top: 0 !important;
  }
  .mt-1 {
    margin-top: 0.8vh !important;
  }
  .mt-2 {
    margin-top: 1vh !important;
  }
  .mt-3 {
    margin-top: 2vh !important;
  }
  .mt-4 {
    margin-top: 4.15vh !important;
  }
  .mt-5 {
    margin-top: 8.30vh !important;
  }
  .mt-6 {
    margin-top: 12vh !important;
  }
  
  .mb-0 {
    margin-bottom: 0 !important;
  }
  .mb-1 {
    margin-bottom: 0.8vh !important;
  }
  .mb-2 {
    margin-bottom: 1vh !important;
  }
  .mb-3 {
    margin-bottom: 2vh !important;
  }
  .mb-4 {
    margin-bottom: 4.15vh !important;
  }
  .mb-5 {
    margin-bottom: 8.30vh !important;
  }
  .mb-6 {
    margin-bottom: 12vh !important;
  }
  
  .pr-0 {
    padding-right: 0 !important;
  }
  .pr-1 {
    padding-right: 0.8vw !important;
  }
  .pr-2 {
    padding-right: 1vw !important;
  }
  .pr-3 {
    padding-right: 2vw !important;
  }
  .pr-4 {
    padding-right: 4.15vw !important;
  }
  .pr-5 {
    padding-right: 8.30vw !important;
  }
  
  .pl-0 {
    padding-left: 0 !important;
  }
  .pl-1 {
    padding-left: 0.8vw !important;
  }
  .pl-2 {
    padding-left: 1vw !important;
  }
  .pl-3 {
    padding-left: 2vw !important;
  }
  .pl-4 {
    padding-left: 4.15vw !important;
  }
  .pl-5 {
    padding-left: 8.30vw !important;
  }
  
  .pt-1 {
    padding-top: 0.8vh !important;
  }
  .pt-2 {
    padding-top: 1vh !important;
  }
  .pt-3 {
    padding-top: 2vh !important;
  }
  .pt-4 {
    padding-top: 4.15vh !important;
  }
  .pt-5 {
    padding-top: 8.30vh !important;
  }
  
  .pb-1 {
    padding-bottom: 0.8vh !important;
  }
  .pb-2 {
    padding-bottom: 1vh !important;
  }
  .pb-3 {
    padding-bottom: 2vh !important;
  }
  .pb-4 {
    padding-bottom: 4.15vh !important;
  }
  .pb-5 {
    padding-bottom: 8.30vh !important;
  }
}

@media (min-width: 1190px) {
  .pl-lg-4 {
    padding-left: 8.30vw !important;
  }
}

.img-res {
  width: 100%;
}

.img-res-height {
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

/* ! Grid System */
.grid {
  margin: 0 auto;
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  width: 100%;
  max-width: 1400px;
}
.grid-full {
  margin: 0 auto;
  display: flex;
  flex-flow: row;
  flex-wrap: wrap;
  width: 100%;
}
.grid--center {
  justify-content: center;
}
.grid--vcenter {
  align-items: center;
}
.col {
  flex: 1;
}

[class*="col-"] {
  position: relative;
  padding: 0 1%;
}
.grid .grid [class*="col-"] {
  padding: 0px;
}

.col-10 {
  width: 10%;
}
.col-20 {
  width: 20%;
}
.col-25 {
  width: 25%;
}
.col-30 {
  width: 30%;
}
.col-33 {
  width: 33.33%;
}
.col-40 {
  width: 40%;
}
.col-50 {
  width: 50%;
}
.col-60 {
  width: 60%;
}
.col-70 {
  width: 70%;
}
.col-80 {
  width: 80%;
}
.col-90 {
  width: 90%;
}
.col-100 {
  width: 100%;
}

@media (max-width: 991px) {
  .grid__mobile-reverse {
    flex-direction: column-reverse;
  }
  [class*="col-"] {
    width: 100%;
  }
  .tab-20 {
    width: 20%;
  }
  .tab-25 {
    width: 25%;
  }
  .tab-33 {
    width: 33.33%;
  }
  .tab-40 {
    width: 40%;
  }
  .tab-50 {
    width: 50%;
  }
  .tab-100 {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .sma-20 {
    width: 20%;
  }
  .sma-25 {
    width: 25%;
  }
  .sma-33 {
    width: 33.33%;
  }
  .sma-40 {
    width: 40%;
  }
  .sma-50 {
    width: 50%;
  }
  .sma-100 {
    width: 100%;
  }
}

/* Icon System Custom */

.icon-arrow {
  display: inline-block;
  margin: -3px 5px;
  width: 18px;
  height: 18px;
  background-size: 100%;
  background-repeat: no-repeat;
  background-image: url('./assets/icons/arrow-black.svg');
  background-position: center;
}

.icon-facebook {
  display: inline-block;
  margin: -3px 5px;
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: url('./assets/icons/facebook.svg');
  background-position: center;
}

.icon-instagram {
  display: inline-block;
  margin: -3px 5px;
  width: 18px;
  height: 18px;
  background-size: 100%;
  background-repeat: no-repeat;
  background-image: url('./assets/icons/instagram.svg');
  background-position: center;
}

/* Animation on scroll */
.fade {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s ease-in-out;
  will-change: transform, opacity;
}
.fadeIn {
  opacity: 1;
  transform: translateY(0px);
}

/* Animation on load */
@keyframes fade-load {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.load {
  opacity: 0;
  animation: fade-load cubic-bezier(0.385, 0.135, 0.15, 0.86) 0.5s forwards;
}
