/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --first-color: #f57e1e;
  --text-color: #414143;
  --text-color-light: #959498;
  --color-menu: #585757;
  --body-color: #ffffff;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Comfortaa", sans-serif;

  --biggest-font-size: 2.25rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;
  --smaller-font-size: 0.75rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/* Responsive typography */
@media screen and (min-width: 1024px) {
  :root {
    --biggest-font-size: 4rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
    --smaller-font-size: 0.813rem;
  }
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--body-color);
  color: var(--text-color);
  transition: 0.3s; /* For animation dark mode */
}

h1,
h2,
h3 {
  color: var(--first-color);
  font-weight: 500;
}

ul {
  list-style: none;
}

a {
  all: unset;
}

img {
  max-width: 100%;
  height: auto;
}

input,
button {
  font-family: var(--body-font);
  outline: none;
  border: none;
}

/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.grid {
  display: grid;
}

.section {
  padding: 4.5rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  margin-bottom: 1rem;
}

.section__title span {
  color: var(--first-color);
}

.section__subtitle {
  display: block;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.main {
  overflow: hidden; /* For the animations ScrollReveal */
}

/*=============== HEADER & NAV ===============*/

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: transparent;
  z-index: var(--z-fixed);
  transition: 0.4s; /* For animation dark mode */
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.nav__logo {
  color: var(--text-color);
  display: inline-flex;
  align-items: center;
  column-gap: 0.25rem;
  font-weight: var(--font-medium);
  transition: 0.3s;
  cursor: pointer;
}

.nav__logo i {
  font-size: 1rem;
}

.nav__logo:hover {
  color: var(--first-color);
}

@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    bottom: 2rem;
    background-color: var(--body-color);
    box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.3);
    width: 90%;
    left: 0;
    right: 0;
    margin: 0 auto;
    padding: 1.3rem 3rem;
    border-radius: 1.25rem;
    transition: 0.4s;
  }

  .nav__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .nav__link {
    color: var(--text-color);
    display: flex;
    padding: 0.5rem;
    border-radius: 50%;
  }

  .nav__link i {
    font-size: 1.25rem;
  }

  .nav__link span {
    display: none;
  }

  .nav__link:active {
    background: var(--first-color);
    color: #fff;
  }

  header a {
    cursor: pointer !important;
  }
}

/* Change background header */
.scroll-header {
  background-color: var(--body-color);
  box-shadow: 0 1px 4px hsla(228, 4%, 15%, 0.1);
}

.scroll-header .nav__logo {
  color: var(--first-color);
}

.scroll-header .change-theme {
  color: var(--first-color);
}

/* Active link */
.active-link {
  background: var(--first-color);
  color: #fff;
}

/*=============== BUTTON ===============*/
.button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  margin-top: 3rem;
  padding: 14px 28px;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: 800;
  box-shadow: 0 4px 8px hsla(228, 66%, 45%, 0.25);
  transition: 0.3s;
  cursor: pointer;
}

.button:hover {
  box-shadow: 0 4px 12px hsla(228, 66%, 45%, 0.25);
}

.nav__button {
  display: none;
}
/*=============== HOME ===============*/
/*
.home {
  height: 40rem;
  background-image: url(/assets/img/hero.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  margin-top: 3.5rem;
}
  */

.videofullscreen {
  overflow: hidden;
  width: 100% !important;
  height: 45rem !important;
  object-fit: cover;
  z-index: -100;
}

.desktop {
  display: none;
}

.mobile {
  display: block; /* Mostra il video mobile per default */
}
.content {
  padding: 1rem;
}

.home {
  position: relative;
}

.home__data {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.home__container {
  row-gap: 3.5rem;
}

.logo {
  height: 3rem;
  width: 3rem;
}
.home__title,
.home__value-number {
  color: var(--first-color);
  font-weight: 800;
}

.home__title {
  font-size: var(--biggest-font-size);
  line-height: 120%;
  margin-bottom: 4rem;
  font-weight: 800;
}

.subtitle {
  color: var(--text-color-light) !important;
}

.home__description {
  color: var(--body-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

.home__value {
  display: flex;
  column-gap: 2.5rem;
  justify-content: center;
  text-align: center;
}

.home__value-number {
  font-size: var(--h1-font-size);
  font-weight: var(--font-medium);
  font-weight: 800;
}

.home__value-number span {
  color: var(--first-color);
}

.home__value-description {
  display: flex;
  color: var(--body-color);
  font-size: var(--smaller-font-size);
  font-weight: 800;
}

.home__img {
  text-align: center;
}

/*=============== FEATURE===============*/

.feature {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/*=============== POPULAR ===============*/
.popular__container {
  padding: 1rem 0 5rem;
}

.container {
  text-align: center;
}

.popular__card {
  width: 290px;
  background-color: var(--body-color);
  padding: 0.5rem 0.5rem 1.5rem;
  border-radius: 1rem;
  margin: 0 auto;
  transition: 0.4s;
  box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.15);
}

.popular__img {
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.popular__data {
  padding: 0 1rem 0 0.5rem;
}

.popular__price {
  font-size: var(--h2-font-size);
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.popular__price span {
  color: var(--second-color);
}

.popular__title {
  font-size: var(--h3-font-size);
  margin-bottom: 0.75rem;
}

.popular__description {
  font-size: var(--small-font-size);
  text-align: justify;
}

.popular__card:hover {
  box-shadow: 0 12px 16px hsla(228, 66%, 45%, 0.1);
}

/* Swiper class */
.swiper-button-prev:after,
.swiper-button-next:after {
  content: "";
}

.swiper-button-next,
.swiper-button-prev {
  top: initial;
  bottom: 0;
  width: initial;
  height: initial;
  background-color: var(--body-color);
  border: 2px solid var(--text-color-light);
  padding: 6px;
  border-radius: 0.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
}

.swiper-button-prev {
  left: calc(50% - 3rem);
}

.swiper-button-next {
  right: calc(50% - 3rem);
}

/*=============== VALUE ===============*/
.grid__about {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

.grid__about img {
  height: 35rem;
  border-radius: 0.8rem;
}

.bio__frank {
  font-size: var(--font-medium);
  font-weight: 800;
  text-align: justify;
}

.value,
.contact {
  background-color: var(--text-color-light);
}
.value__container {
  row-gap: 3rem;
}

.section__subtitle {
  color: var(--body-color);
}

.section__title {
  font-weight: 700;
}

.value__description {
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
  font-weight: 700;
  color: var(--body-color);
  text-align: justify;
}

.value__accordion {
  display: grid;
  row-gap: 1.5rem;
}

.value__accordion-item {
  background-color: var(--body-color);
  box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.15);
  border-radius: 0.5rem;
  padding: 1rem 0.75rem;
}

.value__accordion-header {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.value__accordion-icon {
  background-color: var(--text-color);
  padding: 5px;
  border-radius: 0.25rem;
  font-size: 18px;
  color: var(--text-color);
  margin-right: 0.75rem;
  transition: 0.3s;
}

.value__accordion-title {
  font-size: var(--small-font-size);
}

.value__accordion-icon {
  background-color: var(--body-color);

  color: var(--first-color);

  font-size: 1.5rem;

  transition: 0.3s;
}

.value__accordion-arrow {
  display: inline-flex;
  background-color: var(--body-color);

  color: var(--first-color);
  border-radius: 6px;
  font-size: 1.5rem;
  margin-left: auto;
  transition: 0.3s;
  border: 2px solid var(--text-color-light);
}

.value__accordion-arrow i {
  transition: 0.4s;
}

.value__accordion-description {
  font-size: var(--smaller-font-size);
  padding: 1.25rem 2.5rem 0 2.75rem;
  text-align: justify;
}

.value__accordion-content {
  overflow: hidden;
  height: 0;
  transition: all 0.25s ease;
}

.grid_img {
  display: none;
}

/*Rotate icon and add shadows*/
.accordion-open {
  box-shadow: 0 12px 32px var(--text-color-light);
}

.accordion-open .value__accordion-icon {
  box-shadow: 0 4px 4px var(--text-color-light);
}

.accordion-open .value__accordion-arrow {
  box-shadow: 0 2px 4px var(--text-color-light);
}

.accordion-open .value__accordion-arrow i {
  transform: rotate(-180deg);
}

/*=============== gallery ===============*/

.img__gallery {
  border-radius: 1rem;
  margin-bottom: 1rem;
}

/*=============== JOIN US ===============*/
.form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  max-width: 400px;
  background-color: #f9f9f9;
}

input,
textarea {
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

textarea {
  resize: vertical;
}

button {
  padding: 10px;
  border: none;
  background-color: #ff680a;
  color: white;
  cursor: pointer;
  border-radius: 4px;
}

button:hover {
  background-color: #e65a00;
}
/*=============== CONTACT ===============*/
.contact__container {
  row-gap: 2rem;
}

.contact__description {
  font-size: var(--small-font-size);
  margin-bottom: 2.5rem;
  color: var(--body-color);
  text-align: justify;
}

.contact__card {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 0.75rem;
}

.contact__card-box {
  background-color: var(--body-color);

  box-shadow: 0 8px 24px hsla(228, 66%, 45%, 0.15);
  padding: 1.25rem 0.75rem;
  border-radius: 0.5rem;
  transition: 0.3s;
  text-align: start;
}

.contact__card-info {
  display: flex;
  align-items: flex-start;
  column-gap: 0.75rem;
}

.contact__card i {
  padding: 6px;
  background-color: var(--body-color);
  border-radius: 6px;
  font-size: 1.25rem;
  color: var(--text-color);
  box-shadow: 0 2px 4px var(--text-color);
}

.contact__card-title {
  font-size: var(--normal-font-size);
}

.contact__card-description {
  font-size: var(--smaller-font-size);
  color: var(--body-color);
}

.contact__card-button {
  font-size: var(--small-font-size);
  padding: 14px 0;
  width: 100%;
  border-radius: 0.25rem;
  background: var(--first-color);
  color: white;
  font-weight: var(--font-semi-bold);
  box-shadow: 0 2px 4px var(--text-color);
  margin-top: 1.4rem !important;
}

a[href^="tel"] {
  color: var(--body-color);
  text-decoration: none;
}

a[href^="mailto"] {
  color: var(--body-color);
  text-decoration: none;
}

.contact__card-button:hover {
  background-color: var(--first-color);
  color: #fff;
}

.contact__card-box:hover {
  box-shadow: 0 8px 24px var(--text-color-light);
}

.contact__data1 {
  display: none;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--colore-background);
  padding-block: 3.5rem 2rem;
}

.footer__container {
  row-gap: 2rem;
  text-align: center;
}

.footer__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  margin-bottom: 0.25rem;
  color: var(--colore-testo);
}

.footer__education {
  font-size: var(--normal-font-size);
}

.footer__copy {
  font-size: var(--smaller-font-size);
  margin-top: 2rem;
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: var(--text-color-light);
}

::-webkit-scrollbar-thumb {
  background-color: var(--first-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(228, 8%, 54%);
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 350px) {
  .container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .section {
    padding: 3.5rem 0 1rem;
  }

  .home {
    padding-bottom: 0;
  }
}

@media screen and (max-width: 320px) {
  .nav__menu {
    padding: 1.3rem 1.5rem;
  }

  .home__value {
    column-gap: 1rem;
  }
  .home__img {
    width: 220px;
    height: 280px;
  }

  .logos__container {
    gap: 2rem 1rem;
  }

  .popular__card {
    width: 230px;
    padding: 0.5rem 0.5rem 0.75rem;
  }

  .value__img,
  .contact__img {
    width: 220px;
    height: 260px;
  }

  .subscribe__container {
    padding: 2rem 1rem;
  }

  .footer__content {
    gap: 2.5rem;
  }
}

/* For medium devices */
@media screen and (min-width: 576px) {
  .nav__menu {
    width: 342px;
  }

  .home__search {
    width: 412px;
  }

  .grid__about {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: center;
  }

  .grid__about img {
    height: 30rem;
    border-radius: 0.8rem;
  }

  .bio__frank {
    font-size: var(--font-medium);
    font-weight: 800;
    text-align: justify;
    margin-left: 5rem;
    margin-right: 5rem;
  }

  .contact__card {
    grid-template-columns: repeat(2, 192px);
    justify-content: center;
  }

  .footer__content {
    grid-template-columns: repeat(3, max-content);
  }
}

@media screen and (min-width: 767px) {
  .mobile {
    display: none;
  }

  .desktop {
    display: block;
  }

  .nav {
    height: 5rem;
  }

  .home {
    margin-top: 1rem;
  }
  .home__container {
    grid-template-columns: repeat(1, 1fr);
    padding-top: 0;
  }

  .home__data {
    padding-bottom: 2rem;
  }

  .logo {
    margin-left: 2rem;
  }

  .grid__about {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    justify-content: center;
  }

  .grid__about img {
    height: 30rem;
    border-radius: 0.8rem;
    object-fit: cover; /* Mantiene le proporzioni dell'immagine */
  }

  .bio__frank {
    font-size: var(--font-medium);
    font-weight: 800;
    text-align: justify;
    margin: unset;
    max-width: 40%; /* Aggiungi questa linea per limitare la larghezza del testo */
    line-height: 1.5; /* Modifica l'altezza della linea per un miglior allineamento */
  }

  .value__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .contact__container {
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
  }

  .contact__data1 {
    display: inline;
  }

  .grid_img {
    display: inline;
  }

  .contact__card {
    justify-content: center;
    gap: 3.5rem 3rem;
  }

  .card__box {
    margin: 5rem;
  }

  .footer__container {
    margin-top: 6rem;
    grid-template-columns: repeat(3, max-content);
    justify-content: space-between;
  }

  .footer {
    padding-block: 4.5rem 4rem;
  }
  .footer__container {
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    text-align: center;
  }
  .footer__title {
    font-size: var(--bigger-font-size);
  }
  .footer__social {
    column-gap: 2rem;
  }
  .footer__copy {
    margin: 0;
    justify-self: flex-end;
  }
}

@media screen and (min-width: 870px) {
  .home__data {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .grid__about {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
    justify-content: center;
  }

  .grid__about img {
    height: 30rem;
    border-radius: 0.8rem;
    object-fit: cover; /* Mantiene le proporzioni dell'immagine */
  }

  .bio__frank {
    font-size: var(--font-medium);
    font-weight: 800;
    text-align: justify;
    margin: unset;
    max-width: 40%; /* Aggiungi questa linea per limitare la larghezza del testo */
    line-height: 1.5; /* Modifica l'altezza della linea per un miglior allineamento */
  }
}

/* For large devices */
@media screen and (min-width: 1023px) {
  .section {
    padding: 7.5rem 0 1rem;
  }
  .section__title {
    font-size: 2.25rem;
  }
  .section__subtitle {
    font-size: var(--normal-font-size);
  }

  .nav {
    height: calc(var(--header-height) + 1.5rem);
  }
  .nav__menu {
    width: initial;
    margin-left: auto;
  }
  .nav__list {
    display: flex;
    column-gap: 3rem;
  }
  .nav__link {
    color: var(--text-color);
  }

  .nav__link:hover {
    color: var(--first-color);
  }
  .nav__link i {
    display: none;
  }
  .nav__button {
    display: inline-block;
  }

  .active-link {
    background: none;
    box-shadow: none;
    color: var(--first-color);
    font-weight: var(--font-medium);
  }

  .scroll-header .nav__link,
  .scroll-header .change-theme {
    color: var(--text-color);
  }
  .scroll-header .active-link {
    color: var(--first-color);
  }

  .home {
    margin-top: 0 !important;
    padding-top: 3rem;
  }
  .home__container {
    column-gap: 2rem;
    padding-top: 3rem;
  }

  .home__data {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .home__title {
    margin-bottom: 5rem;
  }
  .home__description,
  .home__search {
    margin-bottom: 3rem;
  }
  .home__value {
    column-gap: 3.5rem;
  }

  .home__img {
    width: 472px;
    height: 634px;
    border-radius: 236px 236px 12px 12px;
    bottom: -2.5rem;
  }

  .logos__img img {
    height: 100px;
  }

  .popular__container {
    padding-top: 3rem;
  }
  .popular__card {
    width: 320px;
    padding: 0.75rem 0.75rem 2rem;
  }
  .popular__data {
    padding: 0 0.25rem 0 0.75rem;
  }

  .value__container,
  .contact__container {
    align-items: flex-start;
    column-gap: 5rem;
  }

  .value__img,
  .contact__img {
    width: 461px;
    height: 601px;
    border-radius: 238px 238px 12px 12px;
  }
  .value__img img,
  .contact__img img {
    max-width: initial;
    width: 490px;
  }
  .value__description,
  .contact__description {
    font-size: var(--normal-font-size);
    margin-bottom: 2.5rem;
  }

  .value__accordion-title {
    font-size: var(--normal-font-size);
  }
  .value__accordion-item {
    padding: 1.25rem 1.25rem 1.25rem 1rem;
  }
  .value__accordion-description {
    padding-bottom: 1rem;
    font-size: var(--small-font-size);
  }

  .contact__card {
    grid-template-columns: repeat(2, 200px);
  }
  .contact__card-box {
    padding: 28px 1.5rem 1.5rem;
  }

  .subscribe__container {
    padding: 4rem 10rem 4.5rem;
    border-radius: 2rem;
    border: 12px solid var(--first-color-light);
  }
  .subscribe__title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
  }
  .subscribe__description {
    font-size: var(--normal-font-size);
    padding: 0 8rem;
  }
  .subscribe__button {
    font-size: var(--normal-font-size);
  }

  .footer__content {
    grid-template-columns: repeat(4, max-content);
  }
  .footer__title {
    margin-bottom: 1.5rem;
  }
  .footer__links {
    row-gap: 1rem;
  }
  .footer__info {
    flex-direction: row;
    justify-content: space-between;
    padding-bottom: 2rem;
  }

  .show-scroll {
    bottom: 3rem;
    right: 3rem;
  }
}

@media screen and (min-width: 1040px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }

  .home__container {
    column-gap: 4rem;
  }

  .home__data {
    text-align: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/*===============SLIDER IMG=====================*/
.carousel-accreditation {
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
  padding-top: 2rem;
}

.carousel-inner {
  display: flex;
  animation: scorrimento 8s linear infinite;
  display: flex;
  gap: 5rem;
}

.carousel-inner img {
  width: 15%;
  height: auto;
  object-fit: cover;
}

@media screen and (max-width: 568px) {
  .carousel-inner img {
    width: 30%;
  }
}

@keyframes scorrimento {
  0% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-25%);
  }
  50% {
    transform: translateX(-50%);
  }
  75% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(-100%);
  }
}

#crea {
  cursor: pointer !important;
}
