:root {
  --white: #fff;
  --bg: #fff;
  --sand: #f3ece2;
  --line: #e7ded2;
  --forest: #1f2a1f;
  --orange: #e94e1b;
  --green: #8eb927;
  --text: #273024;
  --soft: #61695d;
  --shadow: 0 20px 60px rgba(20, 25, 20, .08);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5;
}

body, p {
  font-size: 17px;

  @media only screen and (min-width: 960px) {
    font-size: 18px;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: var(--orange);
}

.green{
  color: var(--green) !important;
}

button, input[type='submit'] {
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100%, 1920px);
  margin: 0 auto;
  padding-inline: 16px;
}

@media (min-width:960px) {
  .container {
    padding-inline: 24px
  }
}

@media (min-width:1024px) {
  .container {
    padding-inline: 40px
  }
}

@media (min-width:1280px) {
  .container {
    padding-inline: 56px
  }
}

@media (min-width:1536px) {
  .container {
    padding-inline: 80px
  }
}


.sticky-cont{

  overflow: clip;

  .sticky-block{
    position: sticky;
    top: 112px;
  }

}

.site-header {

  /* IDLAB: Fixing errore script posizione header */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, box-shadow .25s ease;
}

.site-header.is-scrolled {
  /* box-shadow: 0 8px 30px rgba(10, 10, 10, .06); */
  
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-block: 16px;
  transition: padding .25s ease;
} 

.site-header.is-scrolled .header-inner {
  padding-block: 10px
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0
}

.brand-logo {
  width: 140px;
  height: 80px;
  object-fit: contain;
  transition: .25s ease;

  &.bianco{
    /* filter: invert(1) saturate(0) brightness(2.6);  */
  }
}

.site-header.is-scrolled .brand-logo {
  width: 112px;
  height: 64px
}

.brand-copy {
  min-width: 0
}

.brand-title {
  font-size: clamp(22px, 2vw, 30px);
  font-weight: 700;
  line-height: 1;
  color: var(--forest);

  &.bianco{
    color: var(--white);
  }
}

.brand-subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--forest);

  @media (max-width:960px) {
    font-size: 17px;
  }

  &.bianco{
    color: var(--white);
  }

}

@media (min-width:960px) {

  .brand-subtitle {
    font-size: 17px;
  }
}

footer .brand-subtitle, footer .brand-title {
  color: var(--white);
}

.main-nav {
  display: none;
  margin-left: auto;
  gap: 24px;
  align-items: center
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);

  @media (max-width:960px) {
    font-size: 17px;
  }
}

.main-nav a:hover {
  color: var(--forest)
}

@media (min-width:1024px) {
  .main-nav {
    display: flex
  }
}

.menu-toggle {
  margin-left: auto;
  width: 48px;
  height: 48px;
  border: 0;
  background: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--forest);
  margin: 3px 0
}

@media (min-width:1024px) {
  .menu-toggle {
    display: none
  }
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .4);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(92vw, 420px);
  height: 100dvh;
  background: #fff;
  z-index: 70;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .28s ease;
  overflow: auto;
}

body.menu-open .mobile-overlay {
  opacity: 1;
  pointer-events: auto
}

body.menu-open .mobile-drawer {
  transform: translateX(0)
}

.mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line)
}

.mobile-close {
  border: 0;
  background: none;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  color: var(--forest)
}

.mobile-nav {
  padding: 24px
}

.mobile-nav a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 0 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(28px, 4.5vw, 32px);
  font-weight: 600;
  color: var(--forest)
}

.mobile-nav small {
  display: block;
  margin-top: 32px;
  color: var(--soft);
  font-size: 14px;

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.hero-home {
  display: grid;
  gap: 40px;
  row-gap: 0;
  min-height: 78vh
}

@media (min-width:1280px) {
  .hero-home {
    grid-template-columns: 1.02fr .98fr;
    min-height: 88vh;
    gap: 0
  }
}

.hero-copy {
  padding-block: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center

}



/*IDLAB: slider con testo*/
#slide_headtxt{
  margin-bottom: 40px;
}

/*IDLAB: animazione slider*/
.hero-copy .cella{
    opacity: 0;
    transition: opacity .5s ease;
    padding-bottom: 24px;
  }

.hero-copy .cella.is-selected{
      opacity: 1;
    }

.kicker {
  display: inline-flex;
  width: max-content;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--forest);
  font-size: 14px;
  font-weight: 600;

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.hero-copy h1 {
  margin: 24px 0 0;
  max-width: 930px;
  color: var(--forest);
  font-size: clamp(42px, 8vw, 92px);
  line-height: .96;
  font-weight: 700;
}

.hero-copy p {
  max-width: 780px;
  margin: 24px 0 0;
  color: var(--soft);
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 28px !important;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent
}

.btn-primary {
  background: var(--orange);
  color: #fff !important;
}

.btn-secondary {
  border-color: rgba(31, 42, 31, .12);
  color: var(--forest);
  background: #fff
}

.btn-ternary {
  background: var(--green);
  color: #fff !important;
}

.link-grid {
  margin-top: 40px;
  max-width: 900px;
  display: grid;
  gap: 20px;
}

@media (min-width:500px) {
  .link-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
  }
}

.visual-link {
  padding-top: 16px;
  border-top: 1px solid rgba(31, 42, 31, .12)
}

.visual-link h3 {
  margin: 0;
  font-size: 20px;
  color: var(--forest)
}

.visual-link p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--soft);

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.visual-link a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--orange)
}

.hero-media {
  position: relative;
  min-height: 380px;
  margin-bottom: 0;
  overflow: hidden;

}

@media (min-width:768px) {
  .hero-media {
    min-height: 520px
  }
}

@media (min-width:1280px) {
  .hero-media {
    min-height: auto;
    margin-left: 32px
  }
}

@media (max-width: 1279px){
  
  .hero-media {
    order: -1;
  }
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /*IDLAB: animazione slider*/
  transition: opacity .8s ease;
  /* opacity: 0;
  transition: opacity 1s ease;
  transition-delay: 1s;
  &.is-selected{
    opacity: 1;
    transition: opacity 1s ease;
    transition-delay: 0s;
  } */

}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(23, 30, 22, .22), rgba(23, 30, 22, .10));
}

.hero-card {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 24px;
  max-width: 620px;
  z-index: 1;
  padding: 24px;
  color: #fff;
  background: rgba(255, 255, 255, .12);
  border-left: 2px solid rgba(255, 255, 255, .52);
  backdrop-filter: blur(10px)
}

.hero-card h2 {
  margin: 12px 0 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05
}

.hero-card p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, .92);
}

@media (max-width:1279px) {
  .hero-home {
    grid-template-columns: 1fr
  }

  /* IDLAB: Ordine slide*/
  .hero-media {
    order: -1;
  }
}

.section-shell {
  padding-block: 64px
}

@media (min-width:500px) {
  .section-shell {
    padding-block: 80px
  }
}

@media (min-width:1024px) {
  .section-shell {
    padding-block: 96px
  }
}

@media (min-width:1280px) {
  .section-shell {
    padding-block: 112px
  }
}

.section-head {
  margin-bottom: 40px
}

.section-head .eyebrow {
  color: var(--green);
  font-weight: 600;

  font-size: 17px;

  @media only screen and (min-width: 960px) {
    font-size: 17px;
  }
  
}

.section-head h2 {
  margin: 12px 0 0;
  max-width: 1100px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.02;
  color: var(--forest)
}

.section-head p {
  margin: 20px 0 0;
  max-width: 760px;
  line-height: 1.8;
  color: var(--soft)
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px
}

.filter-pill {
  border: 1px solid rgba(31, 42, 31, .12);
  border-radius: 999px;
  min-height: 42px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  color: var(--forest);
  font-weight: 600;
  font-size: 14px;
  transition: all .2s ease;
  cursor: pointer;

  @media (max-width:960px) {
    font-size: 17px;
  }

  /* box-shadow: 0 0 10px -6px rgba(23, 30, 22, 0); */

  &:hover{
    background-color: rgba(31, 42, 31, .12);
    /* box-shadow: 0 4px 10px -6px rgba(23, 30, 22, .2); */
  }
}

.filter-pill.active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff
}

.grid-cards {
  display: grid;
  gap: 40px 24px
}

/* IDLAB - card nascoste dal filtro tags */
.grid-cards .hidden{
  display: none;
}

@media (min-width:960px) {
  .grid-cards.routes {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (min-width:1280px) {
  .grid-cards.routes {
    grid-template-columns: repeat(4, 1fr);
    gap: 56px 32px
  }
}

@media (min-width:960px) {
  .grid-cards.places {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (min-width:1024px) {
  .grid-cards.places {
    grid-template-columns: repeat(3, 1fr);
    gap: 56px 32px
  }
}

.card-media {
  position: relative;
  display: block;
  height: 320px;
  overflow: hidden
}

.card-media.tall {
  height: 300px
}

@media (min-width:500px) {
  .card-media {
    height: 360px
  }

  .card-media.tall {
    height: 360px
  }
}

@media (min-width:1280px) {
  .card-media {
    height: 420px
  }

  .card-media.tall {
    height: 420px
  }
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.card-copy {
  /* padding-top: 20px */
}

.card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between
}

.card-tag {
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.card-time {
  font-size: 14px;
  font-weight: 600;
  color: var(--soft);

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.card-copy h3, .card-copy h3 a {
  margin: 12px 0 0;
  font-size: clamp(28px, 3vw, 32px);
  line-height: 1.1;
  color: var(--forest)
}

.card-copy p {
  margin: 12px 0 0;
  line-height: 1.75;
  color: var(--soft)
}

.card-copy a{
  display: inline-block;
  margin-top: 18px;
  font-weight: 700;
  color: var(--orange)
}

.two-col {
  display: grid;
  gap: 32px
}

@media (min-width:1280px) {
  .two-col.route-detail {
    grid-template-columns: 1.2fr .8fr;
    gap: 48px
  }
}

@media (min-width:1280px) {
  .two-col.place-detail {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px
  }
}

.hero-large {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  color: #fff;

  &:before {
    content: "";
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    background: linear-gradient(0deg, rgba(20,20,20,.6) 15%, rgba(20,20,20,0) 90%);
    z-index: 1;
  }
}



@media (min-width:960px) {
  .hero-large {
    min-height: 520px;
    padding: 32px
  }
}

@media (min-width:1280px) {
  .hero-large {
    min-height: 960px;
    padding: 56px
  }
}

.hero-large.place {
  min-height: 360px
}

@media (min-width:960px) {
  .hero-large.place {
    min-height: 440px
  }
}

@media (min-width:1280px) {
  .hero-large.place {
    min-height: 520px
  }
}

.hero-large::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(28, 35, 26, .18), rgba(28, 35, 26, .10));
}

.hero-large>div {
  position: relative;
  z-index: 1;
  max-width: 760px
}

.hero-large .kicker-simple {
  font-size: 15px;
  font-weight: 600;

  @media (max-width:960px) {
    font-size: 17px;
  }
}

.hero-large h2 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02
}

.hero-large p {
  margin: 16px 0 0;
  line-height: 1.6;
  color: rgba(255, 255, 255, .92)
}

.hero-large img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.detail-meta {
  display: grid;
  gap: 16px;
  margin-top: 32px
}

@media (min-width:768px) {
  .detail-meta {
    grid-template-columns: repeat(3, 1fr)
  }
}

.detail-meta div {
  padding-top: 16px;
  border-top: 1px solid rgba(31, 42, 31, .12);
  font-weight: 700;
  color: var(--forest);
  font-size: 14px;

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.copy-split {
  display: grid;
  gap: 32px;
  margin-top: 48px
}

@media (min-width:1024px) {
  .copy-split {
    grid-template-columns: 1fr .9fr;
    gap: 40px;
  }
}

.copy-split h3,
.place-copy h3 {
  margin: 32px 0 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  color: var(--forest)
}

.copy-split li,
.place-copy li {
  margin-bottom: 16px;
  line-height: 1.8;
  color: var(--soft);
}

.copy-split p,
.place-copy p {
  margin: 20px 0 0;
  color: var(--soft);
  line-height: 1.8
}

.info-list {
  display: grid;
  gap: 20px
}

.info-item {
  padding-top: 16px;
  border-top: 1px solid rgba(31, 42, 31, .12)
}

.info-item h4 {
  margin: 0;
  font-size: 20px;
  color: var(--forest)
}

.info-item p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.info-item a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--orange)
}

.sidebar {
  position: relative
}

@media (min-width:1280px) {
  .sidebar .sticky {
    position: sticky;
    top: 112px
  }
}

.sidebar h3 {
  margin: 12px 0 0;
  font-size: clamp(34px, 4vw, 42px);
  line-height: 1.08;
  color: var(--forest)
}

.sidebar .eyebrow {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);

  @media (max-width:960px) {
    font-size: 17px;
  }

  &.mtop{
    margin-top: 24px;
    color: var(--soft);
  }
}

.sidebar p {
  margin: 16px 0 0;
  color: var(--soft);
  line-height: 1.8
}

.partner-links {
  margin-top: 10px;
  border-top: 1px solid rgba(31, 42, 31, .12)
}

.partner-links a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(31, 42, 31, .12);
  font-weight: 700;
  color: var(--orange);

  &:last-of-type {
    border-bottom: none;
  }
}

.partner-links .eyebrow {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid rgba(31, 42, 31, .12);
  color: var(--soft);
}

.single-cta {
  margin-top: 32px
}

.single-cta .btn {
  width: 100%
}

.place-copy {
  max-width: 760px;
  margin-top: 40px
}

/* .list-lines {
  border-top: 1px solid rgba(31, 42, 31, .12)
} */

.line-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(31, 42, 31, .12);

  &:last-of-type {
    border-bottom: none;
  }

  /* &:first-of-type {
    padding-top: 0;
  } */

}

.line-item h4 {
  margin: 0;
  font-size: 28px;
  color: var(--orange)
}

.line-item p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.line-item a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 700;
  color: var(--orange)
}

.contact-wrap {
  display: grid
}

@media (min-width:1280px) {
  .contact-wrap {
    grid-template-columns: .95fr 1.05fr
  }
}

.contact-side {
  background: linear-gradient(135deg, #1f2a1f 0%, #667055 100%);
  color: #fff;
  padding: 48px 16px;

  /* display: flex;
  flex-direction: column;
  justify-content: center; */
}

@media (min-width:960px) {
  .contact-side {
    padding: 64px 24px
  }
}

@media (min-width:1024px) {
  .contact-side {
    padding: 64px 40px
  }
}

@media (min-width:1280px) {
  .contact-side {
    padding: 80px 56px
  }
}

.contact-side .inner {
  max-width: 720px
}

.contact-side h2 {
  margin: 12px 0 0;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}

.contact-side h2.alt {
  font-size:clamp(28px,4vw,48px);
  font-weight: 400;
  b{
    font-weight: 700;
  }
}

.contact-side p {
  margin: 20px 0 0;
  line-height: 1.8;
  color: rgba(255, 255, 255, .92)
}

.contact-details {
  margin-top: 40px;
  display: grid;
  gap: 18px;
  font-size: clamp(17px, 2vw, 20px)
}

.contact-form {
  background: #fff;
  padding: 48px 16px
}

@media (min-width:960px) {
  .contact-form {
    padding: 64px 24px
  }
}

@media (min-width:1024px) {
  .contact-form {
    padding: 64px 40px
  }
}

@media (min-width:1280px) {
  .contact-form {
    padding: 80px 56px
  }
}

.contact-form .inner {
  max-width: 720px
}

.field {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(31, 42, 31, .12);
  padding: 16px 0;
  font-size: 16px;
  outline: none;
  color: var(--forest);
  font-family: "Open Sans", Arial, sans-serif;
  line-height: 1.5;

  @media (max-width:960px) {
    font-size: 17px;
  }

}

/* FORZATURE SELECT */

select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: #fff;
  color: #222;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 0.6em 2.5em 0.6em 0.8em;

  /* con appearance:none sparisce la freccia: la rimetti tu */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
}

/* colori delle voci nel menu aperto (funziona su Chrome/Firefox desktop, non su iOS) */
select option {
  background-color: #fff;
  color: #222;
}

/* se il grigio arriva dalla dark mode */
select {
  color-scheme: light;
}

select {
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}


select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23222' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px 8px;
  padding-right: 36px; /* spazio per la freccia, così il testo non ci finisce sopra */
}

/* FINE FORZATURE SELECT */

.field::placeholder {
  color: #7a8171
}

select:has(option[disabled]:checked) {
  color: #7a8171;
}

/* Opzione B: senza required, forzando lo stato con una classe da JS */
input[type="date"].empty {
  color: grey;
}

/* così le voci nel menu a tendina restano nere */
select option {
  color: black;
}

/* IDLAB: textarea */
textarea.field {
  min-height: 120px;
  resize: vertical
}

/* IDLAB: checkbox privacy */
.concheckbox{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: flex-start;
  font-size: .9rem;
  margin-bottom: .5em;

  @media (max-width:960px) {
    font-size: 17px;
  }

  a{
    font-weight: 700;
    text-decoration: underline;
  }
}

.map-box {
  margin-top: 24px;
  height: 320px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

@media (min-width:960px) {
  .map-box {
    height: 360px
  }
}

.map-box img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.map-caption {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(255, 255, 255, .92);
  padding: 12px 16px;
  font-size: 14px;
  color: var(--forest);

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.site-footer {

  /* IDLAB rimosso stile */
  /* 
  background: #fff;
  margin-top: 80px */

  background-color: var(--orange);

}

.footer-grid {
  display: grid;
  gap: 40px;
  padding-block: 48px
}

@media (min-width:960px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr)
  }
}

@media (min-width:1280px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr
  }
}

.footer-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--white)
}

.footer-links {
  display: grid;
  gap: 12px;
  margin-top: 16px
}

.footer-links a,
.footer-links span {
  font-size: 14px;
  color: var(--white);

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.footer-brand p {
  margin: 20px 0 0;
  max-width: 340px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--white);

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.page-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--soft);

  @media (max-width:960px) {
    font-size: 17px;
  }

}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0
}


/* IDLAB: Fixing errore script posizione header */

main{
  padding-top: 112px;
}


/* IDLAB: grid gallery (converted to flex to center when fewer items) */

.gallery-grid{

  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  
  width: min(100%, 1920px);
  margin: 0 auto;
  margin-bottom: 18px;
  padding-inline: 56px;
  justify-content: center;

  @media only screen and (max-width: 500px){
      display: block;
      padding-inline: 0px;
      margin-bottom: 48px;
    }

  .cella{
    position: relative;
    display: block;
    width: 360px;
    max-width: 45%;
    box-sizing: border-box;

    &:before{
      content: "";
      display: block;
      position: relative;
      padding-top: 100%;
      background-color: rgba(20, 25, 20, .2);
      width: 100%;
      z-index: 2;
      opacity: 0;
      transition: all .56s ease;
    }

    img{
      position: absolute;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      object-fit: cover;
      background-color: var(--line);
    }

    @media only screen and (max-width: 500px){
      width: 100vw;
      height: 100vw;
      max-width: 100vw;
      min-width: 240px;
      min-height: 240px;
    }

    &:hover{
      &:before{
        opacity: 1;
      }
    }

  }
}


.mob-primo{
  @media only screen and (max-width: 1280px){
    order: -1;
  }
}

.mob-hide{
  @media only screen and (max-width: 1280px){
    visibility: hidden;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
  }
}

.mob-show{
  
  visibility: visible;
  
  @media only screen and (min-width: 1281px){
    visibility: hidden;
    width: 0 !important;
    height: 0 !important;
    position: absolute !important;
  }
}


.cont-btn{
  position: relative;
  display: flex;
  gap: 4px;
}

.icona {
    position: relative;
    overflow: clip;
    display: block;

    width: 32px;
    height: 32px;

    background-color: var(--forest);
    padding: 4px;
    border-radius: 50%;

    .ico{

        display: block;
        width: 100px;
        height: 100px;
        background-image: url('/css/images/ico.png');
        background-repeat: no-repeat;
        -webkit-transform: scale(0.24);
        transform: scale(0.24);
        -webkit-transform-origin: 0 0;
        transform-origin: 0 0;
        /* //filter: invert(.5) sepia(.5) hue-rotate(170deg); */

        &.be {
            background-position: 0 0px;
        }

        &.fb {
            background-position: 0 -100px;
        }

        &.ig {
            background-position: 0 -200px;
        }

        &.yt {
            background-position: 0 -300px;
        }

        &.wa {
            background-position: 0 -400px;
        }

        &.tel {
            background-position: 0 -500px;
        }

        &.mail {
            background-position: 0 -600px;
        }

        &.map {
            background-position: 0 -700px;
        }

        &.in {
            background-position: 0 -800px;
        }

        &.tiktok {
            background-position: 0 -900px;
        }

        &.ta {
            background-position: 0 -1000px;
        }

        &.home {
            background-position: 0 -1100px;
        }

        &.user {
            background-position: 0 -1200px;
        }

        &.job {
            background-position: 0 -1300px;
        }

        &.it {
            background-image: url('images/ico-bandiere.png');
            background-position: 0 0;
        }

        &.en {
            background-image: url('images/ico-bandiere.png');
            background-position: 0 -100px;
        }

        &.de {
            background-image: url('images/ico-bandiere.png');
            background-position: 0 -200px;
        }

        &.fr {
            background-image: url('images/ico-bandiere.png');
            background-position: 0 -300px;
        }

        &.es {
            background-image: url('images/ico-bandiere.png');
            background-position: 0 -400px;
        }
    }
   
    &.due{

      background-color: transparent;
      padding: 0;
      width: 24px;
      height: 24px;
      margin-top: 4px;
      margin-right: 4px;
    }
}













.bigslide {
        position: relative;
        overflow: visible;
        overflow: visible;
        width: 100%;
        height: calc(100svh - 112px);
        margin: 0;
        z-index: 2;
        box-sizing: border-box;

        @media only screen and (max-width: 850px) {
            min-height: calc(100svh - 112px);
            height: min-content;
        }

        .cont-slide {
            position: relative;
          overflow: visible;
            display: block;
            width: 100%;
            box-sizing: border-box;
        }

        #slidepreview,
        #slidepreview1 {
            position: relative;
             overflow: visible;
            display: block;
            z-index: 1 !important;
            width: 100% !important;
            height: calc(100svh - 112px);
            margin: 0;
            padding: 0;
            transform: none !important;
            box-sizing: border-box;

            @media only screen and (max-width: 850px) {
                min-height: calc(100svh - 112px);
                height: min-content;
            }

            .flickity-slider {
                transform: none !important;
            }

            .flickity-page-dots {
                bottom: 3rem;
            }

            .cella {
                position: relative;
                overflow: visible;
                z-index: 1 !important;
                left: 0 !important;
                /*float:left;*/
                list-style: none;
                width: 100vw;
                height: calc(100svh - 112px);
                margin: 0;
                padding: 0;

                box-sizing: border-box;

                background-position: 50% 50%;
                background-repeat: no-repeat;
                background-size: cover;
                transition: none;

                display: flex;
                align-items: flex-end;
                justify-content: flex-end;

                @media only screen and (max-width: 850px) {
                    min-height: calc(100svh - 112px);
                    height: min-content;
                }

                &::before {
                    content: '';
                    position: absolute;
                    overflow: clip;
                    display: block;
                    z-index: 0;
                    top: 0;
                    left: 0;
                    right: 0;
                    bottom: 0;
                    background: linear-gradient(180deg, rgba(40, 40, 40, 0.32) 35%, rgba(40, 40, 40, 0.8) 100%);
                    opacity: .8;
                }

                /* @media only screen and (max-width: 1440px) {
					width: 100vw;
					height: 100vh;
					height: calc(var(--vh, 1vh) * 100 - 96px);

				} */

                picture,
                #picture {
                    position: absolute;
                    overflow: clip;
                    display: block;
                    z-index: 1 !important;
                    width: 100%;
                    height: 100%;
                    top: 0;
                    left: 0;

                    img {
                        position: absolute;
                        margin: auto auto;
                        left: -10000%;
                        right: -10000%;
                        top: -10000%;
                        bottom: -10000%;
                        /*queste caratteristiche sotto x effetto COVER*/
                        max-width: 10000% !important;
                        min-width: 1000%;
                        min-height: 1000%;
                        -webkit-transform: scale(0.1);
                        transform: scale(0.1);
                        object-fit: cover;
                    }
                }

                video,
                #video {
                    position: absolute;
                    overflow: clip;
                    z-index: 1;
                    margin: auto auto;
                    left: -10000%;
                    right: -10000%;
                    top: -10000%;
                    bottom: -10000%;
                    /*queste caratteristiche sotto x effetto COVER*/
                    min-width: 1000%;
                    min-height: 1000%;
                    -webkit-transform: scale(0.1);
                    transform: scale(0.1);
                    object-fit: cover;
                }

                .intro {
                    
                    position: relative;
                    overflow: clip;
                    display: block;
                    z-index: 1;
                    margin: 0 auto;
                    padding: 5rem 0;
                    transition: all 0.56s cubic-bezier(0.52, 0.16, 0.24, 1);

                    width: 1440px;
                    max-width: 90%;
                    
                    display: flex;
                    flex-direction: column;

                    @media only screen and (max-width: 1440px) {
                        padding: 4rem 0;
                    }

                    @media only screen and (max-width: 850px) {
                        padding: 4rem 0;
                    }


                    .tit {
                        margin: 0;
                        font-size: 3rem;
                        font-weight: 500;
                        color: var(--white);

                        font-size: clamp(36px, 8vw, 72px);
                        line-height: 1.1;
                        font-weight: 700;

                        b, strong {
                            font-weight: 800;
                        }

                        @media only screen and (max-width: 1440px) {
                            font-size: 2.5rem; 
                        }

                        @media only screen and (max-width: 850px) {
                            font-size: 2rem; 
                        }
                    }


                    .intro-txt{
                        font-size: 1.5rem;
                        color: var(--white);
                        font-size: clamp(18px, 2vw, 22px);
                        line-height: 1.6;
                    }

                    .tit, .intro-txt, .quote{
                        text-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);

                    }

                    .btn{
                      width: max-content;
                      margin-top: 2rem;
                    }


                    .head_ico {
                        position: relative;
                        overflow: clip;
                        display: block;
                        flex-shrink: 0;
                        width: auto;
                        height: 4.4rem;
                        margin: 0 1rem 0 0;
                        padding: 0;

                        @media only screen and (max-width: 1600px) {
                            margin: 0 0 2rem 0;
                            align-self: center;
                        }
                    }

                    .cont_btn {
                        display: flex;
                        justify-content: flex-end;
                        gap: 1rem;
                    }
                    
                }


                &.is-selected {
                    opacity: 1;

                    .intro {
                        opacity: 1;
                        transform: translateY(0px);
                    }
                }
            }
        }

    }

    /* //bigslide */
