/* CSS */
body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

@media (min-width: 900px) {
  html {
    scroll-behavior: smooth;
  }

  body.section-scroll-active {
    scroll-snap-type: y proximity;
    overscroll-behavior-y: contain;
  }

  body.section-scroll-active .section-scroll-item {
    scroll-snap-align: start;
  }
}

:root {
  --footer-bars-height: 25px;
  --menu-toggle-offset: calc(var(--footer-bars-height) * 2);
  --menu-dynamic-offset: 0px;
  --menu-toggle-height: 64px;
}

/* INTRO */
#intro {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 12;
  background-size: 100% 100%;
   background-repeat: no-repeat;
  background-color: white;
  background-position: center;
  background-image: none;
  transition: background-image 5s ease;
}

.line, .vline {
  position: absolute;
  background: #b3b3b3;
  opacity: 1;
  transition: opacity 2s ease;
}

.line {
  left: 0;
  right: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right center;
}

.vline {
  width: 1px;
  height: 100%;
  top: 0;
  transform: scaleY(0);
  transform-origin: bottom center;
}


#intro.show .vline1 { animation: verticalIntro 1.6s ease forwards 0s; }
#intro.show .vline2 { animation: verticalIntro 1.6s ease forwards 0.3s; }
#intro.show .line1  { animation: revealLine 1.6s ease forwards 0.9s; }
#intro.show .line2  { animation: revealLine 1.6s ease forwards 0.6s; }

@keyframes revealLine { from {transform:scaleX(0);} to {transform:scaleX(1);} }
@keyframes verticalIntro {
  0%   { transform: scaleY(0); opacity: 1; }
  60%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: 0; }
}

.line.hide, .vline.hide { opacity: 0; }

#intro.hide {
  background-image: url('');
}

#intro-logo {
  width: 250px;
  height: auto;
  opacity: 1;
  transition: opacity 2s ease;
}

#intro-logo.hide {
  opacity: 0;
}

/* HEADER */

.custom-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  background: transparent;
  z-index: 1;
}

.logo-small {
  height: 45px;
  width: auto;
}

.logo-main {
  height: 72px;
  width: auto;
}

.lang {
  cursor: pointer;
  font-weight: 600;
  color: black;
  transition: opacity 0.3s;
  position: relative;
}

.lang:hover {
  opacity: 0.7;
}

.lang .dot {
  width: 8px;
  height: 8px;
  background-color: #E42C1A;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
  visibility: hidden;
}

.lang.active .dot {
  visibility: visible;
}

.text-language{
  padding-bottom: 4px;
  border-bottom: 2px solid #000;
}

/* MENU */
.menu-content .menu-link {
  font-size: 18px;
  font-weight: 600;
  color: black;
  text-decoration: none;
  transition: opacity 0.3s;
}

.text-center{
  text-align: center !important;
}

.menu-content {
  display: none;
  flex-direction: column;
}

.menu-content.show {
  display: flex !important;
}

body.menu-open #main-content > :not(.bg-img) {
  visibility: hidden;
  pointer-events: none;
}

body.menu-open .bg-img,
body.menu-open .line,
body.menu-open .vline {
  visibility: visible;
}

.menu-content .row {
  gap: 12rem;
  transform: translateX(-17vw);
  margin-top: 20px;
}

.menu-sticky-label {
  position: fixed;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.menu-sticky-label.is-visible {
  opacity: 1;
}

.menu-link {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}

.coming-soon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
  width: 100px;
  text-align: center;
}

.menu-icon{
  z-index: 11;
  cursor:pointer;
}

.menu-link:hover .coming-soon {
  opacity: 1;
}

.language-selector{
  display: none;
}

/* INDEX */

.bg-img {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: 90vh;
  bottom: 50px;
  width: auto;
  z-index: 13;
  object-fit: contain;
  opacity: 0;
  transition: opacity 2s;
}

.bg-img.show {
  opacity: 1;
}

.section-inner {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* SEZIONE ABOUT */

.section-inner-about {
  height: 100vh;
  display: flex;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  gap: 10px;
  margin-top: 20vh;
  margin-left: 3vw;
}

.about-item  {
  grid-column: span 1;
  position: relative;
  padding: 0;
  cursor: pointer;
}

.about-item h3{
  margin-bottom: 0rem;
}

.about-title {
  padding: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-weight: bold;
  font-size: 21px;
}

.about-text {
  display: none;
  flex-direction: column;
  gap: 10px;
  background-color: #fff;
  padding: 20px;
}

.about-title:hover {
  background-color: #fff;
  color: #000;
}

.about-title:hover + .about-text {
  display: flex;
  background-color: #fff;
}

.about-title .arrow {
  position: relative;
  width: 14px;
  top: 8px;
  right: 20px;
  transition: transform 0.3s;
  transform: rotate(180deg);
}

.about-item:hover .arrow {
  transform: rotate(0deg);
}

.about-text span:nth-child(1) {
  text-align: left;
  font-size: 16px;
  line-height: 1.2;
}

.about-text span:nth-child(2) {
  text-align: left;
  margin-left: 20%;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
}

.about-text span:nth-child(3) {
  text-align: left;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.2;
}

/* SEZIONE CONTATTI */

.section-inner-contacts {
  height: 100vh;
  display: flex;
}

.contacts-box {
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-top: 54vh;
  margin-left: 8.5%;
  width: 16%;
  font-size: 12px;
  color: #000;
}

#contacts {
  --contacts-opacity: 1;
  opacity: var(--contacts-opacity);
  transition: opacity 0.4s ease;
  will-change: opacity;
}

#contacts.contacts-hidden-when-footer {
  pointer-events: none;
}

.contact {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-info {
  text-align: right;
  display: inline-block;
  max-width: calc(100% - 50px);
  line-height: 1.2;
  word-break: break-word;
  margin-top: 2px;
  font-size: 13px;
}

.contact-info.lowered {
  position: relative;
  top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.contact-title {
  font-weight: bold;
  min-width: 70px;
  font-size: 13px;
}

/* FOOTER */

.custom-footer {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem 0.5rem;
  position: relative;
  z-index: 1;
}

.scroll-bar {
  position: fixed;
  left: 0;
  width: 100%;
  background: #000;
  color: #fff;
  white-space: nowrap;
  border-bottom: 1px solid #fff;
  overflow: hidden;
  z-index: 8;
  height: 25px;
  line-height: 25px;
  font-size: 13px;
}

.scroll-bar.top {
  bottom: 25px;
}

.scroll-bar.bottom {
  bottom: 0;
}

.scroll-bar span {
  display: inline-block;
  padding: 0;
}

.scroll-bar.top span {
  padding-left: 100%;
  animation: scroll-left 30s linear infinite;
}

@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.scroll-bar.bottom span {
  padding-right: 100%;
  animation: scroll-right 30s linear infinite;
}

@keyframes scroll-right {
  0% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-left {
  flex: 1 1 200px;
  text-align: left;
  padding-left: 100px;
}

.footer-left h3 {
  margin: 0 0 0.5rem;
  font-size: 2.2rem;
}

.footer-left p {
  margin-top: 100px;
  font-size: 1.3rem;
}

.footer-right {
  width: 40%;
  margin-right: 5%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-right .col {
  width: 48%;
}

.footer-right .col p{
  margin-bottom: 0px;
  font-size: 13px;
}

.footer-right .col:nth-child(1),
.footer-right .col:nth-child(3) {
  align-self: flex-start;
  text-align: right;
  margin-right: 10px;
}

.footer-right .col:nth-child(2),
.footer-right .col:nth-child(4) {
  text-align: left;
  margin-left: 10px;
}

.footer-right .col:nth-child(2){
  margin-top: 21px;
}

.footer-right .col:nth-child(4){
  margin-top: 90px;
}

.footer-logo {
  text-align: center;
  margin-top: 3rem;
  margin-bottom: 1rem;
}

.footer-logo img {
  max-width: 150px;
}

.mobile-only-footer{
  display: none;
}

.footer-mobile-newsletter{
  display: none;
}

/* PRIVACY */

.main-privacy{
  position: relative;
}

/* --- 14" laptop --- */
@media (min-width: 1400px) and (max-width: 1550px) {
  /* HEADER */
  .logo-main{
    height: 55px;
  }

  .logo-small{
    height: 45px;
  }

  /*INDEX*/
  .bg-img {
    bottom: 40px;
  }

  /* MENU */
  .menu-content .menu-link{
    font-size: 16px;
  }

  .menu-content .row {
    gap: 8rem;
    transform: translateX(-16vw);
  }

  /* ABOUT */
  .about-title{
    font-size: 16px;
    padding: 10px;
  }

  .about-title .arrow{
    top: 5px;
    right: 15px;
  }

  .about-text span:nth-child(1){
    font-size: 14px;
  }

  .about-text span:nth-child(2),
  .about-text span:nth-child(3) {
    font-size: 12px; 
    line-height: 0.8rem;
  }

  .about-text {
    padding: 5px;
  }

  /* CONTACTS */

  .contacts-box {
    gap: 10px;
    margin-top: 52vh;
    margin-left: 7%;
    width: 20%;
  }

  .contact-title {
    font-size: 12px;
  }

  .contact-info{
    font-size: 12px;
  }

  /* FOOTER */

  .scroll-bar{
    height: 20px;
    line-height: 20px;
    font-size: 12px;
  }

  .footer-left h3 {
    font-size: 1.6rem;
  }

  .footer-left p{
    font-size: 1rem;
  }

  .footer-right .col p{
    font-size: 12px;
  }
}

/* --- 13" laptop--- */
@media (min-width: 1200px) and (max-width: 1400px) {

  /* HEADER */
  .logo-main{
    height: 50px;
  }

  .logo-small{
    height: 40px;
  }

  /*INDEX*/
  .bg-img {
    bottom: 40px;
  }

  /* MENU */
  .menu-content .menu-link{
    font-size: 14px;
  }

  .menu-content .row {
    gap: 7rem;
    transform: translateX(-16vw);
  }

  /* ABOUT */
  .about-title{
    font-size: 14px;
    padding: 10px;
  }

  .about-grid{
    margin-left: 4vw;
  }

  .about-title .arrow{
    top: 5px;
    right: 15px;
  }

  .about-text span:nth-child(1){
    font-size: 12px;
  }

  .about-text span:nth-child(2),
  .about-text span:nth-child(3) {
    font-size: 10px; 
    line-height: 0.8rem;
  }

  .about-text {
    padding: 5px;
  }

  /* CONTACTS */

  .contacts-box {
    gap: 9px;
    margin-top: 50vh;
    margin-left: 6%;
    width: 20%;
  }

  .contact-title {
    font-size: 11px;
  }

  .contact-info{
    font-size: 11px;
  }

  /* FOOTER */

  .scroll-bar{
    height: 20px;
    line-height: 20px;
    font-size: 12px;
  }

  .footer-left h3 {
    font-size: 1.6rem;
  }

  .footer-left p{
    font-size: 1rem;
  }

  .footer-right .col p{
    font-size: 12px;
  }
}

/* --- tablet orizzontale --- */
@media (min-width: 900px) and (max-width: 1200px) {

  /* HEADER */
  .logo-main{
    height: 50px;
  }

  .logo-small{
    height: 40px;
  }

  /*INDEX*/
  .bg-img {
    bottom: 40px;
  }

  /* MENU */
  .menu-content .menu-link{
    font-size: 14px;
  }

  .menu-content .row {
    gap: 6rem;
    transform: translateX(-16vw);
  }

  /* ABOUT */
  .about-title{
    font-size: 14px;
    padding: 10px;
  }

  .about-grid{
    margin-left: 4vw;
  }

  .about-title .arrow{
    top: 5px;
    right: 15px;
  }

  .about-text span:nth-child(1){
    font-size: 12px;
  }

  .about-text span:nth-child(2),
  .about-text span:nth-child(3) {
    font-size: 10px; 
    line-height: 0.8rem;
  }

  .about-text {
    padding: 5px;
  }

  /* CONTACTS */

  .contacts-box {
    gap: 9px;
    margin-top: 50vh;
    margin-left: 5%;
    width: 18%;
  }

  .contact-title {
    font-size: 11px;
  }

  .contact-info{
    font-size: 11px;
  }

  /* FOOTER */

  .scroll-bar{
    height: 20px;
    line-height: 20px;
    font-size: 12px;
  }

  .footer-left h3 {
    font-size: 1.6rem;
  }

  .footer-left p{
    font-size: 1rem;
  }

  .footer-right .col p{
    font-size: 12px;
  }
}


/* --- Tablet verticale e smartphone --- */
@media (max-width: 899px) {
  #intro,
  #intro-logo,
  .line,
  .vline {
    display: none !important;
  }

  .bg-img {
    opacity: 1;
    z-index: 0;
  }

  /* HEADER */
  .logo-small,
  .lang {
    display: none;
  }

  .logo-main {
    height: 40px;
    margin-top: 10px;
  }

  /* INDEX */
  .bg-img {
    height: 65%;
  }

  /* MENU */
  .menu-icon {
    --menu-local-offset: calc(var(--menu-toggle-offset) + var(--menu-dynamic-offset));
    top: auto !important;
    bottom: var(--menu-local-offset);
    left: 0 !important;
    right: 0 !important;
    width: 100%;
    transform: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.5rem;
    background: #fff;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    color: #000;
  }

  .menu-icon::before {
    content: attr(data-label);
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
  }

  .menu-icon img {
    display: none;
  }

  #menu-content {
    top: auto !important;
    bottom: calc(var(--menu-toggle-offset) + var(--menu-dynamic-offset) + var(--menu-toggle-height));
    transform: none;
    width: 100% !important;
    height: auto !important;
    background: #fff;
    color: #000;
    display: none;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch !important;
    z-index: 9;
  }

  #menu-content.menu-scrollable {
    top: 0 !important;
    bottom: calc(var(--menu-toggle-offset) + var(--menu-dynamic-offset) + var(--menu-toggle-height));
    max-height: calc(100vh - (var(--menu-toggle-offset) + var(--menu-dynamic-offset) + var(--menu-toggle-height)));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 7;
  }

  #menu-content.menu-scrollable .row {
    flex: 1;
  }

  #menu-content .menu-section:nth-child(5) .menu-section-header {
    border-bottom: 0px;
  }

  #menu-content.show {
    display: flex !important;
  }

  #menu-content .row {
    --bs-gutter-x: 0;
    --bs-gutter-y: 0;
    width: 100%;
    margin: 0;
    transform: none;
    flex-direction: column;
    align-items: stretch;
  }

  #menu-content .col {
    width: 100%;
    padding: 0;
  }

  #menu-content .menu-section {
    display: flex;
    flex-direction: column;
  }

  #menu-content .coming-soon {
    display: block;
    width: 100%;
    text-align: left;
    opacity: 0.6;
  }

  #menu-content .menu-section-content {
    display: none;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
    padding: 0.75rem 1rem;
    margin-top: -1px;
  }

  #menu-content .menu-contacts {
    display: flex;
    flex-direction: column;
  }

  #menu-content .menu-about {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }

  #menu-content .menu-about-title {
    font-weight: 600;
    margin: 1rem 0rem 0.5rem 0rem;
  }

  #menu-content .menu-about-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.75rem;
  }

  .menu-about-text span:nth-child(1){
    font-size: 17px;
    line-height: 1.2;
  }

  .menu-about-text span:nth-child(2){
    font-size: 12px;
    line-height: 1rem;
    margin-left: 20%;
    font-weight: 600;
  }

  .menu-about-text span:nth-child(3) {
    font-size: 12px; 
    line-height: 1rem;
    font-weight: 600;
  }

  #menu-content .menu-contacts .contact {
    color: inherit;
  }

  #menu-content .menu-contacts .contact-title,
  #menu-content .menu-contacts .contact-info {
    font-size: 0.75rem;
  }

  #menu-content .menu-contacts .contact-info {
    text-align: left;
  }

  #menu-content .menu-section.open .menu-section-content {
    display: block;
    padding: 20px;
  }

  .contact{
    justify-content: left;
  }

  .contact-title{
    min-width: 60px;
    margin-right: 15px;
  }

  .contact-info.lowered{
    top: 0px;
  }

  #menu-content .menu-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-top: 0;
    border-bottom: 1px solid #000;
    background: none;
    color: inherit;
    padding: 0 1rem;
    min-height: 56px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
  }

  #menu-content .menu-section:first-child .menu-section-header {
    border-top: 1px solid #000;
  }

  #menu-content .menu-section:last-child .menu-section-header {
    border-bottom: 0;
  }

  #menu-content .menu-section.open .menu-section-header {
    border-bottom: none;
  }

  #menu-content .menu-section-header:focus-visible {
    outline: 2px solid #000;
    outline-offset: 3px;
  }

  #menu-content .menu-section-title {
    flex: 1;
    text-align: left;
  }

  #menu-content .menu-section-icon {
    width: 12px;
    height: 8px;
    margin-left: 0.75rem;
    transition: transform 0.2s ease;
  }

  #menu-content .menu-section.open .menu-section-icon {
    transform: rotate(180deg);
  }

  #menu-content .menu-language {
    border-top: 1px solid #000;
    padding: 0.75rem 1rem;
    margin-top: -1px;
    min-height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #menu-content .menu-language-options {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
  }

  #menu-content .menu-language-options button:first-child {
    text-align: left;
  }

  #menu-content .menu-language-options button:last-child {
    text-align: right;
  }

  #menu-content .menu-language .language-option {
    flex: 1;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-align: center;
  }

  .menu-content .row {
    gap: 0rem;
  }

  .language-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
  }

  .language-selector-inner {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    align-items: center;
    flex-wrap: nowrap;
  }

  .menu-language-options {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: nowrap;
  }

  .language-option {
    border: none;
    background: transparent;
    color: inherit;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    cursor: pointer;
    padding: 0;
  }

  .language-option.is-active {
    font-weight: 600;
  }

  .language-option:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
  }

  /* ABOUT */

  .about-grid{
    display: none;
  }

  /* CONTACTS */

  .section-inner-contacts{
    display: none;
  }
  
  /* FOOTER */
  .footer-logo, .footer-left h3, .footer-left p, .footer-right .col:nth-child(1), .footer-right .col:nth-child(2){
    display: none;
  }

  .footer-left{
    padding-left: 0px;
    width: 100%;
    flex: none;
  }

  .footer-right, .footer-right .col:nth-child(3){
    width: 100%;
    flex: none;
  }

  .footer-right .col:nth-child(3) p {
    display: inline-block;
    margin-right: 40px;
    word-wrap: break-word;
    margin-bottom: 15px;
  }

  .footer-right .col:nth-child(4){
    margin-top: 0px;
    margin-left: 48vw;
  }

  .footer-right .col:nth-child(4) p{
    margin-bottom: 10px;
  }

  .footer-left span{
    font-size: 13px;
  }

  .custom-footer{
    padding: 10px;
  }

  .mobile-only-footer{
    display: block;
  }

  .footer-right .col:nth-child(1), .footer-right .col:nth-child(3) {
    align-self: flex-start;
    text-align: left;
    margin-right: 0px;
    margin-top: 20px;
  }

.footer-mobile-newsletter{
    display: block;
    text-align: left;
    font-size: 13px;
  }
}
