/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700&display=swap");

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  --blue-color: #006699;
  --title-color: black;
  --grey-color: #878786;
  --text-color: black;
  --border-color: #006699;
  --white-color: white;
  --body-color: white;
  --container-color: white;

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: "Titillium Web", serif;
  --biggest-font-size: 2rem;
  --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-regular: 400;
  --font-medium: 500;
  --font-semi-bold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*========== Responsive typography ==========*/
@media screen and (min-width: 1150px) {
  :root {
    --biggest-font-size: 3.5rem;
    --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);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: background-color 0.4s;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container__header {
  max-width: 1220px;
  margin-inline: 1.5rem;
}

main {
  overflow: hidden;
  padding-top: 3.5rem;
  margin-bottom: 8rem;
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  z-index: var(--z-fixed);
  transition: box-shadow 0.4s, background-color 0.4s;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  display: flex;
  align-items: center;
  column-gap: 3rem;
  color: var(--text-color);
  font-weight: var(--font-medium);
}

/* Navigation for mobile devices */
@media screen and (max-width: 1150px) {
  .nav__menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--container-color);
    box-shadow: 0 -8px 32px hsla(0, 0%, 0%, 0.1);
    padding: 1rem;
    transition: background-color 0.4s;
  }
}

.nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.nav__link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem;
  color: var(--text-color);
  transition: color 0.4s;
  background-color: var(--blue-color);
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: var(--smaller-font-size);
}

.nav__link span {
  color: var(--white-color);
  font-weight: var(--font-medium);
}

.img__icona {
  color: white;
}

.nav__link:hover {
  color: var(--first-color);
}

/* Add shadow header */
.shadow-header {
  box-shadow: 0 2px 16px hsla(0, 0%, 0%, 0.4);
}

/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar {
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: var(--blue-color);
}

::-webkit-scrollbar-thumb {
  background-color: var(--grey-color);
  border-radius: 0.5rem;
}

::-webkit-scrollbar-thumb:hover {
  background-color: hsl(230, 16%, 55%);
}

/*=============== SCROLL UP ===============*/
.scrollup {
  position: fixed;
  right: 1rem;
  bottom: -50%;
  background-color: var(--container-color);
  box-shadow: 0 2px 8px hsla(0, 0%, 0%, 0.1);
  display: inline-flex;
  padding: 6px;
  font-size: 1.25rem;
  color: var(--title-color);
  z-index: var(--z-tooltip);
  transition: bottom 0.4s, transform 0.4s, background-color 0.4s;
}

.scrollup:hover {
  transform: translateY(-0.5rem);
}

/* Show Scroll Up */
.show-scroll {
  bottom: 6rem;
}

/* For small devices */
@media screen and (max-width: 320px) {
  .container__header {
    margin-inline: 1rem;
  }

  .nav__menu {
    padding-inline: 3rem;
  }
}

@media screen and (min-width: 576px) {
  .nav__menu {
    width: 380px;
    margin-inline: auto;
  }
}

@media screen and (min-width: 1150px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
    column-gap: 4rem;
  }
  .nav__link i {
    display: none;
  }
  .nav__link span {
    display: block;
  }
  .nav__menu {
    width: initial;
    margin-inline: auto 0;
  }
  .nav__list {
    column-gap: 4rem;
  }
  .nav__link {
    font-weight: var(--font-medium);
  }
}

@media screen and (min-width: 1220px) {
  .container__header {
    margin-inline: auto;
  }
}

/*=============== SWIPER ===============*/

.swiper {
  width: 100%;
  height: 35vh;
}

.swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 1rem !important;
  color: var(--blue-color) !important;
}

/*=============== SEZIONE 1 ===============*/
.section {
  padding: 1rem 2rem;
}

.cta {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: start;
  justify-content: start;
}

.cta__button {
  background-color: var(--blue-color);
  border-radius: 0.5rem;
  cursor: pointer;
}

.cta__img {
  padding: 0.7rem;
  width: 2.5rem;
  height: 2.5rem;
}

/*=============== SEZIONE 2 ===============*/
.main__title {
  font-size: var(--h2-font-size);
  line-height: 1.5rem;
  font-weight: 600;
}

.container__section__2 {
  padding-top: 1rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
}

.section__2__text {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 0.1rem;
  font-size: var(--normal-font-size);
}

/*=============== SEZIONE 3 ===============*/
.icone__featured {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 0.5rem;
}

.icone__section__3 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
}

.img__section__3 {
  width: 1.8rem;
  height: 1.8rem;
}

.section__3__featured {
  font-size: var(--small-font-size);
}

/*=============== SEZIONE 4 ===============*/
.section__4__subtitle {
  font-size: var(--small-font-size);
  font-weight: 500;
}

.section__4__text {
  display: inline;
}

.hidden-text {
  display: none;
}

.show-more {
  color: var(--blue-color);
  cursor: pointer;
  text-decoration: underline;
  border: none;
  background: none;
  font-size: 1em;
  padding: 0;
}

/*=============== SEZIONE 5 ===============*/
.box__section__5 {
  margin-top: 1rem;
  height: 100%;
  border-radius: 0.5rem;
  border: 1px solid var(--blue-color);
}

.box__featured {
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: start;
  gap: 0.8rem;
  padding: 2rem;
}

.icona__section__5 img {
  width: 2rem;
}

.icona__text {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/*=============== SEZIONE 6 ===============*/
.img__section__6 {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/*=============== SEZIONE 7 ===============*/
.container__section__7 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  flex-wrap: wrap;
}

.featured__section__7 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: calc(50% - 0.5rem);
}

.text__section__7 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.text__1 {
  font-weight: 700;
}

.img__section__7 {
  width: 1.5rem;
  height: 1.5rem;
  margin-bottom: 0.5rem;
}

/*=============== SEZIONE 12 ===============*/
.img__section__12 {
  width: 4rem;
}

.box__section__12 {
  border: 1px solid var(--blue-color);
  border-radius: 0.5rem;
  margin-top: 1rem;
}

#container__12 {
  padding: 1rem;
}

/*=============== SEZIONE 15 ===============*/
#section__15 {
  margin-top: 3rem;
  text-align: center;
}

#section__15__subtitle {
  text-align: center;
}

.container__section__15 {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  padding-top: 1rem;
  gap: 1rem;
}

.info__agente {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 2px solid var(--blue-color);
}

.circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*=============== SEZIONE 16 ===============*/
.box__16 {
  margin-top: 2rem;
}

#section__16__subtitle {
  font-size: 0.8rem;
  text-align: center;
  margin-top: 0.5rem;
}

#section__16__subtitle a {
  color: var(--blue-color);
  cursor: pointer;
}

.review-content {
  margin: 0 auto;
  max-width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stars {
  margin-top: 1rem;
  display: flex;
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra orizzontalmente */
  gap: 5px; /* Spaziatura tra gli elementi */
  color: gold;
  font-size: 1.5rem;
}

.star {
  width: 2rem;
  height: 2rem;
}

.review-text {
  font-size: 1rem;
  font-style: italic;
  color: black;
  line-height: 1.5;
}

.reviewer-name {
  font-size: 1.2rem;
  color: black;
  margin-top: 10px;
}

.main-content {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 10px;
}

/*=============== SEZIONE 17 ===============*/
.design {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.design a {
  color: black;
  cursor: pointer;
}
/* Per dispositivi più grandi di 780px */
@media (min-width: 780px) {
  main {
    padding-top: 3.5rem;
    max-width: 600px;
    margin: 0 auto;
    border-left: 2px solid var(--border-color);
    border-right: 2px solid var(--border-color);
  }

  .swiper {
    width: 100%;
    height: 50vh;
  }
}
