/* Prevent horizontal scroll */
html, body {
  overflow-x: hidden;
}
/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

 /* === VARIABILI GLOBALI === */
:root {
  --primary-color: #0C3222;
  --primary-hover: #0C3222;
  --primary-dark: #0C3222;
  --accent-color: #e67e22;
  --price-color: #FF5100;
  --success-color: #0C3222;
  --text-color: #444 !important;
  --text-dark: #234;
  --border-color: #eee;
  --border-light: #f0f0f0;
  --shadow-light: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-medium: 0 2px 8px rgba(0, 0, 0, 0.07);
  --shadow-dark: 0 2px 12px rgba(0, 0, 0, 0.07);
  --bg-light: #faf8f6;
  --bg-hover: #f5f5f5;
  --border-radius: 1.6rem;
  --border-radius-small: 1.2rem;
  --transition: all 0.2s ease;
  --link-hover-color: #666;
}

:root {
  /* colors */
  --background-color: white;
  --light-color: #f8f8f8;
  --dark-color: #505050;
  --text-color: #131313;
  --link-color: #3b63fb;
  /*--link-hover-color: #1d3ecf;*/
  --menu-left-offset: 0px;

  /* fonts */
  --body-font-family: 'CircularXXTT', roboto, roboto-fallback, sans-serif;
  --heading-font-family: 'CircularXXTT', roboto-condensed, roboto-condensed-fallback, sans-serif;

  /* body sizes */
  --body-font-size-m: 22px;
  --body-font-size-s: 19px;
  --body-font-size-xs: 17px;

  /* heading sizes */
  --heading-font-size-xxl: 55px;
  --heading-font-size-xl: 44px;
  --heading-font-size-l: 34px;
  --heading-font-size-m: 27px;
  --heading-font-size-s: 24px;
  --heading-font-size-xs: 22px;

  --heading-font-size-xxl-mobile: 28px;
  --heading-font-size-xl-mobile: 24px;
  --heading-font-size-l-mobile: 22px;
  --heading-font-size-m-mobile: 20px;
  --heading-font-size-s-mobile: 18px;
  --heading-font-size-xs-mobile: 16px;
  
  --body-font-size-m-mobile: 17px;
  --body-font-size-s-mobile: 15px;
  --body-font-size-xs-mobile: 14px;

  /* nav height */
  --nav-height: 64px;
}

/* Utility */
 /* per accessibilità: nasconde visivamente ma resta per screen reader */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* per accessibilità: visibile ma non interagibile */
.visibility-hidden {
  visibility: hidden!important;
}

.visibility-visible {
  visibility: visible!important;
}

.d-none {
  display: none!important;
}

html {
  font-size: 62.5%; /* 1rem = 10px se il browser di default è 16px */
}

/* fallback fonts */
@font-face {
  font-family: roboto-condensed-fallback;
  size-adjust: 88.82%;
  src: local('Arial');
}

@font-face {
  font-family: roboto-fallback;
  size-adjust: 99.529%;
  src: local('Arial');
}

@media (width >= 900px) {
  :root {
    /* body sizes */
    --body-font-size-m: 18px;
    --body-font-size-s: 16px;
    --body-font-size-xs: 14px;

    /* heading sizes */
    --heading-font-size-xxl: 45px;
    --heading-font-size-xl: 36px;
    --heading-font-size-l: 28px;
    --heading-font-size-m: 22px;
    --heading-font-size-s: 20px;
    --heading-font-size-xs: 18px;
  }
}

/************ Layout generico account: menu sinistra + contenuto destra *************/
@media (max-width: 700px) {
  .account-layout-container,
  .account-layout-container form,
  .account-layout-container .dati-personali-row,
  .account-layout-container .dati-personali-form,
  .account-layout-container .dati-personali-wrapper {
    width: 100% !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  .account-layout-container label {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
  }
}

.menu-left-wrapper {
  background-color: #f9f9f9;
  padding: 0 1.6rem;
}
.account-layout-container {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  background: #f9f9f9;
  padding-top: 9rem;
}
.menu-left-container {
  flex: 0 0 26rem;
  min-width: 26rem;
  max-width: 32rem;
  max-height: calc(100vh - var(--menu-left-offset, 0px)); /* evita overflow */
  overflow-y: auto;
  align-self: flex-start;
}
.area-personale-wrapper,
.dati-personali-wrapper,
.coupons-main-wrapper,
.scontrini-digitali-wrapper,
.lista-della-spesa-wrapper,
.coupons-unes-wrapper,
.coupon-savi-iframe-wrapper {
  flex: 1 1 0;
  max-width: 160rem !important;
  min-width: 0;
  min-height: 80rem;
  background: #fff;
  border-radius: 1.6rem;
  box-shadow: 0 0.2rem 0.8rem 0 rgba(0, 0, 0, 0.04);
  padding: 6.4rem 11rem !important;
}

@media (max-width: 700px) {
  .area-personale-wrapper,
  .dati-personali-wrapper,
  .coupons-main-wrapper,
  .scontrini-digitali-wrapper,
  .lista-della-spesa-wrapper,
  .coupons-unes-wrapper{
    padding: 3.2rem 2.4rem !important;
  }
}

.fragment-wrapper {
  margin-top: 0 !important;
  padding: 0 1.6rem 0 6.4rem !important;
  background-color: #f9f9f9;
  position: sticky;
  top: var(--menu-left-offset, 0px);
  z-index: 2;
}

@media (max-width: 900px) {
  .account-layout-container {
    display: initial;
    flex-direction: unset;
    gap: unset;
  }
  .menu-left-container {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }
  .dati-personali-wrapper {
    width: 100%;
  }
  .fragment-wrapper {
    padding: 0 2.4rem !important;
  }
}


body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--body-font-size-m);
  line-height: 1.6;
}

body.appear {
  display: block;
}

header {
  /* height: var(--nav-height); */ /* rimuovi questa riga */
  min-height: 0; /* opzionale, reset */
}

header .header,
footer .footer {
  visibility: hidden;
}

header .header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-top: 0.8em;
  margin-bottom: 0.25em;
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.25;
  scroll-margin: 40px;
}

h1 { font-size: var(--heading-font-size-xxl); }
h2 { font-size: var(--heading-font-size-xl); }
h3 { font-size: var(--heading-font-size-l); }
h4 { font-size: var(--heading-font-size-m); }
h5 { font-size: var(--heading-font-size-s); }
h6 { font-size: var(--heading-font-size-xs); }

@media (max-width: 768px) {
  h1 {
    font-size: var(--heading-font-size-xxl-mobile);
  }
  h2 {
    font-size: var(--heading-font-size-xl-mobile);
  }
  h3 {
    font-size: var(--heading-font-size-l-mobile);
  }
  h4 {
    font-size: var(--heading-font-size-m-mobile);
  }
  h5 {
    font-size: var(--heading-font-size-s-mobile);
  }
  h6 {
    font-size: var(--heading-font-size-xs-mobile);
  }
  body {
    font-size: var(--body-font-size-m-mobile);
  }
  p, li {
    font-size: var(--body-font-size-m-mobile);
  }
}

p,
dl,
pre,
blockquote {
  margin: 0;
}

ol,
ul {
    margin-left: -24px;
}

code,
pre {
  font-size: var(--body-font-size-s);
}

pre {
  padding: 16px;
  border-radius: 8px;
  background-color: var(--light-color);
  overflow-x: auto;
  white-space: pre;
}

main > div {
  margin: 40px 16px;
}

input,
textarea,
select,
button {
  font: inherit;
}

/* links */
a:any-link {
  /* color: var(--link-color); */
  text-decoration: none;
  overflow-wrap: break-word;
}

/* a:hover {
  color: var(--link-hover-color);
  text-decoration: underline;
}*/

p, li{
    a:any-link {
      color: var(--primary-color);
      text-decoration: underline;
      overflow-wrap: break-word;
    }

     a:hover {
      color: var(--link-hover-color);
      text-decoration: underline;
    }

    &.button-container {
        a:any-link {
          text-decoration: none;
        }
    }
}

/* buttons */
a.button:any-link,
button {
    /* box-sizing: border-box; */
    /* display: inline-block; */
    /* max-width: 100%; */
    /* margin: 12px 0; */
    /* border: 2px solid transparent; */
    /* border-radius: 2.4em; */
    /* padding: 0.5em 1.2em; */
    /* font-family: var(--body-font-family); */
    /* font-style: normal; */
    /* font-weight: 500; */
    /* line-height: 1.25; */
    /* text-align: center; */
    /* text-decoration: none; */
    /* background-color: var(--link-color); */
    /* color: var(--background-color); */
    /* cursor: pointer; */
    /* overflow: hidden; */
    /* text-overflow: ellipsis; */
    /* white-space: nowrap; */
}

a.button:hover,
a.button:focus,
button:hover,
button:focus {
  /* background-color: var(--link-hover-color);
  cursor: pointer; */
}

button:disabled,
button:disabled:hover {
  /* background-color: var(--light-color);
  cursor: unset; */
}

a.button.secondary,
button.secondary {
  /* background-color: unset;
  border: 2px solid currentcolor;
  color: var(--text-color); */
}

main img {
  max-width: 100%;
  width: auto;
  height: auto;
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections */
main > .section {
  /* margin: 40px 0; */
  margin: 0;
}

main > .section > div {
  /*max-width: 1200px;
  margin: auto;
  padding: 0 24px;*/
}

main > .section:first-of-type {
  margin-top: 0;
}

@media (width >= 900px) {
  main > .section > div {
    /*padding: 0 32px;*/
  }
}

/* section metadata */
main .section.light,
main .section.highlight {
  background-color: var(--light-color);
  margin: 0;
  padding: 40px 0;
}

.breadcrumb-container {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.breadcrumb-link {
  color: #0C3222;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  word-wrap: normal;
  white-space: nowrap;
  text-overflow: ellipsis;
  text-decoration: none;
}

.breadcrumb-current {
  color: #0C3222;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  word-wrap: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.breadcrumb-separator {
  width: 16px;
  height: 16px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .breadcrumb-container {
    max-width: 100%;
  }
}

hr {
    border-top: 1px solid #CED6D3;
}

main.error {
  display: flex;
  flex-direction: column;
  padding: 200px;
}

@media (max-width: 768px) {
  main.error {
    padding: 100px 20px;
  }
}

main.error .error-number {
  width: 100%;
}

main.error .error-number text {
  font-family: monospace;
}

main.error .generic-block-title {
  color: #FF5100 !important;
  font-size: 180px !important;
  font-family: RetailDisplay, sans-serif !important;
  font-weight: 700 !important;
  line-height: 180px !important;
  margin-bottom: 33px !important;
  text-wrap: nowrap !important;
}

@media (max-width: 768px) {
  main.error .generic-block-title {
    font-size: 100px !important;
    line-height: 100px !important;
    margin-bottom: 16px !important;
  }
}

main.error .generic-block-description {
  color: #0C3222 !important;
  font-size: 32px !important;
  font-weight: 500 !important;
  letter-spacing: 0.35px !important;
  text-wrap: nowrap !important;
}

.CookieDeclaration {
    padding: 0 4.8rem;
}