/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== HEADER ===== */

.header {
  display: flex;
  width: 100%;
}

.header__block {
  flex: 0 0 50%;
  width: 50%;
  min-height: 200px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.header__block--left {
  background-color: #9e7b5e;
  background-image: url('../img/bg_left.jpg');
  background-position: top left;
  background-repeat: no-repeat;
  background-size: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.header__block--right {
  background-color: #3d89bb;
  background-image: url('../img/bg_right.jpg');
  background-position: top left;
  background-repeat: no-repeat;
  background-size: auto;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 30px;
}

.header__smartphone {
  display: block;
  flex-shrink: 0;
  margin-top: 5px;
}

.header__logo-link {
  align-self: flex-start;
  margin-left: 85px;
}

.header__logo {
  margin-top: 20px;
  display: block;
}

.header__divider {
  width: 223px;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  margin-top: 30px;
  margin-left: 85px;
  align-self: flex-start;
}

.header__right-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.header__tagline {
  margin-top: 105px;
  margin-left: 85px;
  text-align: left;
  font-family: "Open Sans", sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #fff;
  line-height: 1.21;
  width: 90%;
}

.header__tagline p {
  display: block;
}

.header__sub {
  margin-top: 90px;
  margin-left: 85px;
  text-align: left;
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.12;
  width: 90%;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
  }

  .header__block {
    flex: none;
    width: 100%;
    min-height: unset;
  }

  .header__block--right {
    order: -1;
    background-position: top center;
  }

  /* brown — on bottom */
  .header__block--left {
    order: 1;
  }

  .come-funziona__cards {
    flex-direction: column;
  }

  .come-funziona__card-title {
    font-size: 19px;
  }

  .come-funziona__card-text {
    font-size: 19px;
  }

  .come-funziona {
    background-image: none !important;
    background-color: #000 !important;
    padding: 40px 10px !important;
  }

  .come-funziona__card-header img {
    display: none;
  }

  .come-funziona__card-header {
    display: block;
  }

  .come-funziona__card {
    margin: 0 !important;
    padding: 45px;
    width: 100% !important;
    flex: none !important;
  }

  .come-funziona__card-title {
    font-size: 19px !important;
  }

  .come-funziona__card-text {
    font-size: 19px !important;
  }

  .come-funziona__arrow {
    transform: rotate(90deg);
  }
}
.header__icons {
  display: flex;
  flex-direction: row;
  gap: 20px;
  margin-top: 90px;
  margin-left: 85px;
}

.header__icons a {
  display: block;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
  width: 100%;
  background-color: #f5f5f5;
  background-image: url('../img/bg_allchiaro.png');
  background-position: right center;
  background-repeat: no-repeat;
  background-size: auto;
  box-sizing: border-box;
}

.section-divider__title {
  font-family: "Roboto", sans-serif;
  font-size: 54px;
  font-weight: 200;
  margin-bottom: 32px;
  color: #000;
  padding: 60px 85px 0 85px;
}
.section-divider__text {
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.7;
  color: #444;
  margin-bottom: 20px;
}
/* ===== VISION SECTION ===== */

.vision {
  display: flex;
  width: 100%;
}

.vision__text {
  flex: 0 0 50%;
  width: 50%;
  min-height: 200px;
  padding-top: 85px;
  padding-left: 115px;
  padding-right: 60px;
  padding-bottom: 60px;
}

.vision__title {
  font-family: "Roboto", sans-serif;
  font-size: 54px;
  font-weight: 200;
  margin-bottom: 24px;
}

.vision__subtitle {
  font-family: "Open Sans", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 32px;
  color: #555;
}

.vision__p {
  font-family: "Open Sans", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 20px;
}

.vision__image {
  flex: 0 0 50%;
  width: 50%;
  min-height: 200px;
  background-image: url('../img/bg-vision.jpg');
  background-position: top right;
  background-repeat: no-repeat;
  background-size: auto;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .vision {
    flex-direction: column;
  }

  .vision__text,
  .vision__image {
    flex: none;
    width: 100%;
  }

  .vision__image {
    background-position: top right;
    display: none;
  }

  .vision__subtitle {
    font-size: 19px;
  }

  .vision__p {
    font-size: 19px;
  }

  .vision__text {
    padding-left: 40px !important;
    padding-right: 10px;
  }
}

/* ===== COME FUNZIONA ===== */
.come-funziona {
  width: 100%;
  background-color: #e0e0e0;
  background-image: url('../img/bg_comef.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: auto;
  padding: 75px 85px;
  box-sizing: border-box;
  min-height: 300px;
}

.come-funziona__title {
  font-family: "Roboto", sans-serif;
  font-size: 54px;
  font-weight: 200;
  margin-bottom: 40px;
  text-align: center;
  color: #fff;
}

.come-funziona__cards {
  display: flex;
  align-items: center;
}

.come-funziona__card {
  flex: 1;
  background-color: #ff9933;
  padding: 50px;
  min-height: 200px;
  position: relative;
  border-radius: 24px;
  margin: 0 30px;
}

.come-funziona__card:first-child { margin-left: 0; }
.come-funziona__card:last-child  { margin-right: 0; }


.come-funziona__num {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-family: "Roboto", sans-serif;
  font-size: 96px;
  font-weight: 200;
  color: rgba(0, 0, 0, 0.1);
  line-height: 1;
}

.come-funziona__card-title {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.7;
  margin: 0 0 16px 0;
  color: #222;
}

.come-funziona__card-text {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.19;
  color: rgba(255, 255, 255, 0.85);
}

/* ===== FAQ ===== */
.faq {
  width: 100%;
  padding: 75px 85px;
  box-sizing: border-box;
  background-color: #f3f4ee;
}

.faq__title {
  font-family: "Roboto", sans-serif;
  font-size: 54px;
  font-weight: 200;
  text-align: center;
  margin-bottom: 60px;
}

.faq__inner {
  display: flex;
  gap: 60px;
}

.faq__left {
  flex: 0 0 40%;
  width: 40%;
  margin-top: 120px;
  padding: 40px 40px 40px 60px;
  box-sizing: border-box;
}

.faq__right {
  flex: 0 0 60%;
  width: 60%;
  padding-right: 80px;
  box-sizing: border-box;
}

.faq__item {
  border-bottom: 1px solid #ddd;
}

.faq__question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  font-weight: 600;
  padding: 30px 0;
  cursor: pointer;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.faq__question::after {
  content: '+';
  font-size: 24px;
  font-weight: 200;
  flex-shrink: 0;
}

.faq__item.open .faq__question::after {
  content: '−';
}

.faq__answer {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  line-height: 1.7;
  color: #555;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0;
}

.faq__item.open .faq__answer {
  max-height: 400px;
  padding: 20px 40px;
  background-color: #fff;
  border-radius: 24px;
}

/* ===== MOBILE FAQ ===== */
@media (max-width: 768px) {
  .faq {
    padding: 30px 0 !important;
  }

  .faq__title {
    padding: 0 10px;
    margin-bottom: 30px;
  }

  .faq__inner {
    flex-direction: column;
    gap: 0;
  }

  .faq__left {
    flex: none;
    width: 100%;
    order: 2;
    padding: 30px 10px 30px 20px;
    margin-top: 0;
  }

  .faq__right {
    flex: none;
    width: 100%;
    order: 1;
    padding: 0 10px;
  }
}

/* ===== FAQ LEFT BLOCK ===== */
.faq__left-title {
  font-family: "Roboto", sans-serif;
  font-size: 38px;
  font-weight: 200;
  line-height: 1.1;
  margin-bottom: 48px;
  color: #666;
}

.faq__contact {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 32px;
  margin-left: 20px;
}

.faq__contact-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #de915e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq__contact-text {
  display: flex;
  flex-direction: column;
}

.faq__contact-label {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: #888;
  margin-bottom: 4px;
}

.faq__contact-value {
  font-family: "Roboto", sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
}

.faq__contact-value:hover {
  text-decoration: underline;
}

/* ===== SUBSCRIBE ===== */
.subscribe {
  width: 100%;
  background-color: #3d89bb;
  padding: 75px 85px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.subscribe__title {
  font-family: "Roboto", sans-serif;
  font-size: 54px;
  font-weight: 200;
  color: #fff;
  text-align: center;
  margin-bottom: 20px;
}

.subscribe__subtitle {
  font-family: "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
  margin-bottom: 50px;
}

.subscribe__form {
  display: flex;
  align-items: center;
  width: 600px;
  max-width: 100%;
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
}

.subscribe__input {
  font-family: "Roboto", sans-serif;
  font-size: 24px;
  padding: 16px 0;
  border: none;
  outline: none;
  background: transparent;
  color: #fff;
  flex: 1;
  margin-top: 20px;
  text-align: center;
}

.subscribe__input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.subscribe__btn {
  font-family: "Roboto", sans-serif;
  font-size: 35px;
  font-weight: 400;
  padding: 16px 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  border: none;
  cursor: pointer;
  line-height: 1;
  margin-top: 20px;
  flex-shrink: 0;
}

.subscribe__btn:hover {
  color: rgba(255, 255, 255, 0.7);
}

.header__tagline-large {
  font-size: 46px;
}

@media (max-width: 768px) {
  .header__tagline-large {
    font-size: 29px;
  }

  .header__icons a img {
    width: 126px;
    height: 42px;
  }

  .header__logo-link,
  .header__divider,
  .header__tagline,
  .header__sub,
  .header__icons {
    margin-left: 10px;
  }

  .header__tagline {
    margin-top: 70px;
  }

  .header__sub {
    margin-top: 60px;
  }

  .header__icons {
    margin-top: 65px;
  }
}

.header__tagline-small {
  font-size: 29px;
}

/* ===== SECTION DIVIDER INNER ===== */
.section-divider__inner {
  display: flex;
  align-items: stretch;
}

.section-divider__left {
  flex: 0 0 70%;
  width: 70%;
  padding: 0 85px 60px 85px;
  box-sizing: border-box;
  min-height: 235px;
}

.section-divider__right {
  flex: 0 0 30%;
  width: 30%;
  min-height: 235px;
}

@media (max-width: 768px) {
  .section-divider {
    background-image: none !important;
  }

  .section-divider__title {
    padding: 40px 10px 0 40px !important;
  }

  .section-divider__left {
    width: 100% !important;
    flex: none !important;
    padding: 0 10px 40px 40px !important;
  }

  .section-divider__right {
    display: none !important;
  }

  .section-divider__text {
    font-size: 19px;
  }
}

/* ===== COME FUNZIONA ARROWS ===== */
.come-funziona__arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 36px;
  color: rgba(255, 255, 255, 0.6);
  padding: 0 8px;
}

/* ===== COME FUNZIONA CARD HEADER ===== */
.come-funziona__card-header {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-bottom: 20px;
}

.come-funziona__card-header img {
  flex-shrink: 0;
  opacity: 0.85;
}

.come-funziona__card-header .come-funziona__card-title {
  margin-bottom: 0;
}

/* ===== FOOTER ===== */
/* ===== SUBSCRIBE MOBILE ===== */
@media (max-width: 768px) {
  .subscribe {
    padding: 50px 20px;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    align-items: stretch;
  }

  .subscribe__title {
    font-size: 36px;
    margin-bottom: 16px;
  }

  .subscribe__subtitle {
    font-size: 16px;
    margin-bottom: 36px;
    padding: 0 10px;
  }

  .subscribe__form {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
  }

  .subscribe__input {
    font-size: 18px;
    flex: 1;
    min-width: 0;
  }

  .subscribe__btn {
    font-size: 26px;
    flex-shrink: 0;
    color: #fff;
    padding: 16px 8px;
  }
}


/* ===== FOOTER ===== */
.footer {
  width: 100%;
  background-color: #1a1a1a;
  min-height: 150px;
  padding: 50px 100px 50px 100px;
  box-sizing: border-box;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0;
}

.footer__col {
  flex: 0 0 33.333%;
  width: 33.333%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer__stores {
  display: flex;
  flex-direction: row;
  gap: 16px;
  align-items: center;
  margin-top: 30px;
}

.footer__col--tagline {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  padding-top: 4px;
  text-align: center;
}

.footer__tagline {
  font-family: "Roboto", sans-serif;
  font-size: 17px;
  font-weight: 200;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
}

.footer__policies {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.footer__col--links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 4px;
}

.footer__link {
  font-family: "Roboto", sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}

.footer__link:hover {
  color: #fff;
}

.footer__col--legal {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
}

.footer__piva {
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    padding: 40px 20px;
    gap: 24px;
  }

  .footer__col {
    width: 100%;
    flex: none;
  }
}
