/**
 * Custom Core - Main CSS
 * Author: Luca Larice
 * Author URI: https://lucalarice.com/
 *
 */

/* ==========================================================
   Reset base
   ========================================================== */
html {
  scroll-behavior: smooth;
}
body {
  min-width: 320px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img,
picture,
svg,
video {
  max-width: 100%;
  height: auto;
}
img {
  display: block;
}
button,
input,
textarea,
select {
  font: inherit;
}

/* ==========================================================
   Variabili globali del tema.
   ========================================================== */
:root {
  --section-padding-y: 5rem;
  --content-width: 900px;
  --radius: 1rem;

  --font-base: "Poppins", sans-serif;
  --font-heading: "Poppins", sans-serif;

  /* Text */
  --text-body: #1d1d1d;
  --text-primary: #ef7d06;
  --text-secondary: #004a93;
  --text-tertiary: #55671d;
  --text-inverse: #fff;

  /* Background */
  --bg-primary: #fff;
  --bg-secondary: #fff4e9;
  --bg-tertiary: #fffcf8;
  --bg-dark: #222;

  /*
     * Fluid typography (375px → 1440px)
     * clamp(MIN, calc(MIN + (MAX - MIN) * ((100vw - 375px) / 1065)), MAX)
     * Sostituisci MIN e MAX con i valori mobile e desktop di Figma.
     */
  --h1: clamp(32px, calc(32px + (40 - 32) * ((100vw - 375px) / 1065)), 40px);
  --h2: clamp(32px, calc(32px + (40 - 32) * ((100vw - 375px) / 1065)), 40px);
  --h3: clamp(18px, calc(18px + (22 - 18) * ((100vw - 375px) / 1065)), 22px);
  --h4: clamp(14px, calc(14px + (15 - 14) * ((100vw - 375px) / 1065)), 15px);
  --h5: clamp(13px, calc(13px + (14 - 13) * ((100vw - 375px) / 1065)), 14px);
  --h6: clamp(12px, calc(12px + (13 - 12) * ((100vw - 375px) / 1065)), 13px);

  /* Testo body */
  --text: clamp(15px, calc(15px + (16 - 15) * ((100vw - 375px) / 1065)), 16px);
  --text-small: clamp(
    11px,
    calc(11px + (12 - 11) * ((100vw - 375px) / 1065)),
    12px
  );

  /* Generale */
  --header-height: 90px;
  --admin-bar-height: 0px;
}

/* Barra admin WordPress */
body.admin-bar {
  --admin-bar-height: 46px;
}
@media (min-width: 783px) {
  body.admin-bar {
    --admin-bar-height: 32px;
  }
}

/* ==========================================================
   Utilities
   ========================================================== */
.object-fit-cover {
  object-fit: cover;
}
.text-balance {
  text-wrap: balance;
}

/* ==========================================================
   Theme color utilities
   ========================================================== */
.text-primary {
  color: var(--text-primary) !important;
}
.text-secondary {
  color: var(--text-secondary) !important;
}
.text-tertiary {
  color: var(--text-tertiary) !important;
}
.text-body {
  color: var(--text-body) !important;
}
.text-white {
  color: var(--text-inverse) !important;
}
.text-black {
  color: #000 !important;
}
.bg-primary {
  background-color: var(--bg-primary) !important;
}
.bg-secondary {
  background-color: var(--bg-secondary) !important;
}
.bg-tertiary {
  background-color: var(--bg-tertiary) !important;
}
.bg-black,
.bg-dark {
  background-color: var(--bg-dark) !important;
}

/* ==========================================================
   Font e typography
   ========================================================== */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

body {
  /*background-color: var(--bg-secondary);*/
  font-family: var(--font-base);
  font-size: var(--text);
  color: var(--text-body);
  font-weight: 400;
  line-height: 1.6;
}

a {
  color: var(--text-body);
  text-decoration: underline;
  transition: color 0.3s ease;
}
a:hover,
a:focus {
  color: var(--text-secondary);
}
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn,
.site-header a,
.site-footer a,
.nav a {
  text-decoration: none;
}

/* ==========================================================
   Titoli e contenuti editoriali
   ========================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  text-wrap: balance;
  color: var(--text-primary);
  font-weight: 600;
}

h1 {
  font-size: var(--h1);
  line-height: 1.2;
}
h2 {
  font-size: var(--h2);
  line-height: 1.2;
}
h3 {
  font-size: var(--h3);
  line-height: 1.3;
}
h4 {
  font-size: var(--h4);
  line-height: 1.3;
  color: var(--text-secondary);
}
h5 {
  font-size: var(--h5);
  line-height: 1.4;
}
h6 {
  font-size: var(--h6);
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}
p,
li {
  overflow-wrap: anywhere;
  line-height: 1.6;
}

blockquote {
  font-size: var(--h3);
}

/* elimina margine dell'ultimo elemento */
.entry-content > :last-child,
.acf-section__content > :last-child,
.rank-math-breadcrumb > :last-child {
  margin-bottom: 0;
}

.text-small {
  font-size: var(--text-small);
}

/* ==========================================================
   Layout helpers
   ========================================================== */
.content-wrapper {
  max-width: var(--content-width);
}
.section-padding {
  padding-top: var(--section-padding-y);
  padding-bottom: var(--section-padding-y);
}

/* ==========================================================
   Accessibilità
   ========================================================== */
.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.5rem 0.75rem;
  background: #fff;
  color: #000;
  border: 1px solid currentColor;
  text-decoration: none;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   Header / menu
   ========================================================== */
.site-header {
  position: fixed;
  top: var(--admin-bar-height);
  right: 0;
  left: 0;
  z-index: 1060;
}
.site-header__inner {
  min-height: var(--header-height);
}
.site-header__logo {
  max-height: 68px;
  width: auto;
}

.header-quick-link {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Breadcrumbs RANK MATH */
.cc-breadcrumbs,
.cc-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--text-small);
}
.cc-breadcrumbs .last {
  font-weight: 600;
}

/* Pulsante menu */
.site-header__menu-toggle {
  position: relative;
  z-index: 1065;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;

  padding: 0;
  border: 0;
  background: transparent;
}
.site-header__menu-label {
  font-weight: 500;
  color: var(--text-secondary);
}
.site-header__menu-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.site-header__menu-icon--close {
  display: none;
}
.site-header__menu-toggle.is-open .site-header__menu-icon--open {
  display: none;
}
.site-header__menu-toggle.is-open .site-header__menu-icon--close {
  display: inline-flex;
}

/* Menu offcanvas
   Mobile: pannello dall'alto sotto l'header  */
.site-menu-overlay {
  --bs-offcanvas-width: 100%;
  top: calc(var(--admin-bar-height) + var(--header-height));
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: calc(100dvh - var(--admin-bar-height) - var(--header-height));
  max-height: none;
  border: 0;
  background: #fff;
  overflow-y: auto;
  transform: translateY(-100%);
}

.site-menu-overlay.show,
.site-menu-overlay.showing {
  transform: none;
}

.site-menu-overlay__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 2rem clamp(1.5rem, 5vw, 5rem);
}
.site-menu-overlay.hiding {
  transform: translateY(-100%);
}
.site-menu-overlay__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.site-menu-overlay__nav {
  flex: 1;
}
.site-menu-overlay__footer {
  margin-top: auto;
  padding-top: 2rem;
}

/* Backdrop sotto header e barra admin  */
.offcanvas-backdrop {
  top: calc(var(--admin-bar-height) + var(--header-height));
  height: calc(100dvh - var(--admin-bar-height) - var(--header-height));
  z-index: 1040;
}

/* Desktop: pannello laterale destro da 300px  */
@media (min-width: 992px) {
  .site-menu-overlay {
    top: calc(var(--admin-bar-height) + var(--header-height));
    right: 0;
    bottom: 0;
    left: auto;
    width: 300px;
    height: calc(100dvh - var(--admin-bar-height) - var(--header-height));
    max-height: none;
    transform: translateX(100%);
  }
  .site-menu-overlay.showing,
  .site-menu-overlay.show:not(.hiding) {
    transform: none;
  }
  .site-menu-overlay.hiding {
    transform: translateX(100%);
  }
}

/* ==========================================================
   Menu
   ========================================================== */
.site-menu {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-menu li {
  margin: 0;
  padding: 0;
}
.site-menu a {
  display: inline-block;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.5vw, 18px);
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  transition: opacity 0.25s ease;
}
.site-menu a:hover,
.site-menu .current-menu-item > a,
.site-menu .current_page_item > a,
.site-menu .current-menu-ancestor > a {
  color: var(--text-primary);
  opacity: 0.7;
}
.site-menu-overlay__nav {
  text-align: left;
}
@media (min-width: 992px) {
  .site-menu-overlay__nav {
    text-align: right;
  }
  .site-menu {
    align-items: flex-end;
  }
}

/* ==========================================================
   BODY
   ========================================================== */
.site-main {
  padding-top: var(--header-height);
}

/* ==========================================================
   ACF MODULES
   ========================================================== */

/* HEADER SLIDESHOW */
.page-header-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--text-secondary);
}
.page-header-slider__track {
  position: relative;
  width: 100%;
  height: 100%;
}
.page-header-slider__slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.5s ease,
    visibility 0.5s ease;
}
.page-header-slider__slide.is-active {
  position: relative;
  z-index: 1;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.page-header-slider__media,
.page-header-slider__picture {
  display: block;
  width: 100%;
  height: 100%;
}
.page-header-slider__image,
.page-header-slider__video {
  display: block;
  width: 100%;
  height: 100%;
}
.page-header-slider--fit-cover .page-header-slider__image,
.page-header-slider--fit-cover .page-header-slider__video {
  object-fit: cover;
}
.page-header-slider--fit-contain .page-header-slider__image,
.page-header-slider--fit-contain .page-header-slider__video {
  object-fit: contain;
}
.page-header-slider--height-px {
  height: var(--slider-height-desktop-px);
}
.page-header-slider--height-vh {
  height: var(--slider-height-desktop-vh);
}
.page-header-slider--height-naturale .page-header-slider__slide {
  position: absolute;
}
.page-header-slider--height-naturale .page-header-slider__slide.is-active {
  position: relative;
}
.page-header-slider--height-naturale .page-header-slider__image,
.page-header-slider--height-naturale .page-header-slider__video {
  height: auto;
  min-height: 0;
}
.page-header-slider__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.page-header-slider--overlay-none .page-header-slider__overlay {
  background: transparent;
}
.page-header-slider--overlay-light .page-header-slider__overlay {
  background: rgba(0, 0, 0, 0.2);
}
.page-header-slider--overlay-medium .page-header-slider__overlay {
  background: rgba(0, 0, 0, 0.4);
}
.page-header-slider--overlay-strong .page-header-slider__overlay {
  background: rgba(0, 0, 0, 0.65);
}
.page-header-slider__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  color: #fff;
  pointer-events: none;
}
.page-header-slider__content .container {
  width: 100%;
}
.page-header-slider__content-row {
  display: flex;
  width: 100%;
}
.page-header-slider__content-row--left {
  justify-content: flex-start;
}
.page-header-slider__content-row--center {
  justify-content: center;
}
.page-header-slider__content-row--right {
  justify-content: flex-end;
}
.page-header-slider__content-inner {
  width: min(100%, 700px);
  pointer-events: auto;
}
.page-header-slider__title {
  margin: 0 0 1rem;
  color: inherit;
  font-size: clamp(
    40px,
    calc(40px + (80 - 40) * ((100vw - 375px) / 1065)),
    80px
  );
}
/* iPhone mini */
@media (max-width: 390px) {
  .page-header-slider__title {
    font-size: 28px;
  }
}

.page-header-slider__content-inner h1,
.page-header-slider__content-inner h2,
.page-header-slider__content-inner h3,
.page-header-slider__content-inner h4,
.page-header-slider__content-inner h5,
.page-header-slider__content-inner h6,
.page-header-slider__content-inner p,
.page-header-slider__content-inner li,
.page-header-slider__content-inner a:not(.button) {
  color: inherit;
}
.page-header-slider__content-inner--white {
  color: #fff;
}
.page-header-slider__content-inner--black {
  color: #000;
}
.page-header-slider__content-inner--primary {
  color: var(--text-primary);
}
.page-header-slider__content-inner--secondary {
  color: var(--text-secondary);
}
.page-header-slider__content-inner--custom {
  color: var(--header-text-color);
}
.page-header-slider__text {
  margin-bottom: 1.5rem;
}
.page-header-slider__text > :last-child {
  margin-bottom: 0;
}
.page-header-slider__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.25s ease;
}
.page-header-slider__arrow:hover {
  background: rgba(0, 0, 0, 0.65);
}
.page-header-slider__arrow--prev {
  left: 1.5rem;
}
.page-header-slider__arrow--next {
  right: 1.5rem;
}
.page-header-slider__arrow svg {
  width: 20px;
  height: 20px;
}
.page-header-slider__dots {
  position: absolute;
  z-index: 3;
  display: flex;
  gap: 0.65rem;
}
.page-header-slider__dots--bottom {
  right: 0;
  bottom: 1.5rem;
  left: 0;
  justify-content: center;
  flex-direction: row;
}
.page-header-slider__dots--right {
  top: 50%;
  right: 1.5rem;
  flex-direction: column;
  transform: translateY(-50%);
}
.page-header-slider__dots--left {
  top: 50%;
  left: 1.5rem;
  flex-direction: column;
  transform: translateY(-50%);
}
.page-header-slider__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.55);
  border: 0;
  border-radius: 999px;
  transition:
    width 0.25s ease,
    height 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.page-header-slider__dot.is-active {
  background: #fff;
}
.page-header-slider__dots--bottom .page-header-slider__dot.is-active {
  width: 24px;
}
.page-header-slider__dots--right .page-header-slider__dot,
.page-header-slider__dots--left .page-header-slider__dot {
  width: 5px;
  height: 22px;
}
.page-header-slider__dots--right .page-header-slider__dot.is-active,
.page-header-slider__dots--left .page-header-slider__dot.is-active {
  height: 40px;
}
@media (max-width: 767.98px) {
  .page-header-slider--height-px {
    height: var(--slider-height-mobile-px);
  }

  .page-header-slider--height-vh {
    height: var(--slider-height-mobile-vh);
  }

  .page-header-slider__content {
    align-items: flex-start;
    padding-top: 3rem;
  }

  .page-header-slider__content-row {
    justify-content: center !important;
  }

  .page-header-slider__content-inner {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    text-align: center !important;
  }

  .page-header-slider__title {
    margin-bottom: 1rem;
  }

  .page-header-slider__arrow {
    width: 40px;
    height: 40px;
  }

  .page-header-slider__arrow--prev {
    left: 0.75rem;
  }

  .page-header-slider__arrow--next {
    right: 0.75rem;
  }

  .page-header-slider__dots--right {
    right: 0.75rem;
  }

  .page-header-slider__dots--left {
    left: 0.75rem;
  }

  .page-header-slider__dots--bottom {
    bottom: 1rem;
  }

  .page-header-slider__dots--right .page-header-slider__dot,
  .page-header-slider__dots--left .page-header-slider__dot {
    height: 16px;
  }

  .page-header-slider__dots--right .page-header-slider__dot.is-active,
  .page-header-slider__dots--left .page-header-slider__dot.is-active {
    height: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .page-header-slider__slide {
    transition: none;
  }
}

/* HEADER IMAGE */
.page-header__image {
  display: block;
  width: 100%;
  height: auto;
}
.page-header--height-px .page-header__inner,
.page-header--height-vh .page-header__inner {
  height: var(--page-header-height-desktop);
}
.page-header--height-px .page-header__image,
.page-header--height-vh .page-header__image {
  height: 100%;
  object-fit: cover;
}
.page-header--fit-contain .page-header__image {
  object-fit: contain;
}
.page-header--overlay-light .page-header__inner::after,
.page-header--overlay-medium .page-header__inner::after,
.page-header--overlay-strong .page-header__inner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.page-header--overlay-light .page-header__inner::after {
  background: rgba(0, 0, 0, 0.2);
}
.page-header--overlay-medium .page-header__inner::after {
  background: rgba(0, 0, 0, 0.4);
}
.page-header--overlay-strong .page-header__inner::after {
  background: rgba(0, 0, 0, 0.6);
}
.page-header__content {
  z-index: 2;
}
@media (max-width: 767px) {
  .page-header--height-px .page-header__inner,
  .page-header--height-vh .page-header__inner {
    height: var(--page-header-height-mobile);
  }
}

/* CARDS */
.cc-card {
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
}
.cc-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.cc-card__text > :last-child {
  margin-bottom: 0;
}
/* Card immagine */
.cc-card--image {
  background: #fff;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.25);
}
.cc-card--image .cc-card__media {
  height: 260px;
}
.cc-card--image .cc-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cc-card--image .cc-card__body {
  min-height: 240px;
  padding: 2rem 2rem;
}
.cc-card--image .cc-card__title {
  color: var(--text-body);
}
.cc-card__button {
  margin-top: 1rem;
}
/* Card icona */
.cc-card--icon {
  background: var(--text-tertiary);
  color: var(--text-inverse);
}
.cc-card--icon .cc-card__body {
  min-height: 360px;
  padding: 3rem 2rem;
}
.cc-card__icon {
  width: 90px;
  height: 90px;
  object-fit: contain;
  margin-bottom: 1.5rem;
}
.cc-card--icon .cc-card__title {
  color: #e2e5b6;
}
.cc-card--icon .cc-card__text {
  max-width: 260px;
  color: #e2e5b6;
}
/* Mobile scroll laterale */
@media (max-width: 991px) {
  .cc-cards-scroll {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1rem;
    margin-right: calc(var(--bs-gutter-x) * -0.5);
  }
  .cc-cards-scroll .row {
    width: max-content;
    min-width: 100%;
  }
  .cc-cards-scroll [class*="col-"] {
    max-width: 85vw;
  }
  .cc-card--image .cc-card__media {
    height: 220px;
  }
}

/* GALLERY */
.cc-gallery {
  display: grid;
  gap: var(--gallery-gap, 1.5rem);
  grid-template-columns: repeat(var(--gallery-columns), minmax(0, 1fr));
}
.cc-gallery__item {
  margin: 0;
  overflow: hidden;
  border-radius: 10px;
}
.cc-gallery__link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.cc-gallery__image {
  display: block;
  width: 100%;
  height: auto;
}
.cc-gallery--originale {
  align-items: center;
}
.cc-gallery--quadrata .cc-gallery__item,
.cc-gallery--orizzontale .cc-gallery__item {
  position: relative;
}
.cc-gallery--quadrata .cc-gallery__item {
  aspect-ratio: 1 / 1;
}
.cc-gallery--orizzontale .cc-gallery__item {
  aspect-ratio: 4 / 3;
}
.cc-gallery--quadrata .cc-gallery__image,
.cc-gallery--orizzontale .cc-gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 991px) {
  .cc-gallery {
    grid-template-columns: repeat(
      var(--gallery-columns-mobile),
      minmax(0, 1fr)
    );
  }
}

/* TESTO+IMMAGINE */
.image-text__media {
  height: 350px; /* scegli l'altezza */
  overflow: hidden;
  border-radius: var(--radius);
}

.image-text__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

/* LISTING */
.cc-listing__media img {
  border-radius: 10px;
  margin-bottom: 1rem;
}

/* HOME CARDS */
.home-card {
  --media-height: 55%;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 420px;
  overflow: visible;
  filter: drop-shadow(0 0.5rem 1rem rgba(0, 0, 0, 0.1));
  transition: transform 0.25s ease;
}
.home-card:hover {
  transform: translateY(-3px);
}
.home-card__media {
  position: relative;
  flex: 0 0 var(--media-height);
  min-height: 0;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
.home-card__media--video {
  display: flex;
  align-items: center;
  justify-content: center;
}
.home-card__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
  padding: 1.75rem;
  border-radius: 0 0 var(--radius) var(--radius);
  text-align: center;
}
.home-card__title {
  position: relative;
  z-index: 2;
  margin: 0;
}
.home-card__link {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: var(--radius);
}
.home-card__link:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 4px;
}
.home-card__floating-media {
  position: absolute;
  z-index: 3;
  pointer-events: none;
}
.home-card__floating-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-card--left .home-card__floating-media {
  right: 0;
  bottom: calc(100% - var(--media-height));
  width: 70%;
  height: 65%;
}
.home-card--left .home-card__floating-image {
  object-position: right bottom;
}
.home-card--right .home-card__floating-media {
  bottom: calc(100% - var(--media-height));
  left: 50%;
  width: 52%;
  height: 65%;
  transform: translateX(-50%);
}
.home-card--right .home-card__floating-image {
  object-position: center bottom;
}
.home-card--left .home-card__body {
  background: var(--text-primary);
  color: #fff;
}
.home-card--center {
  --media-height: 72%;
  overflow: hidden;
  border-radius: var(--radius);
  background: #004084;
}
.home-card--center .home-card__media {
  border-radius: 0;
}
.home-card--center .home-card__body {
  border-radius: 0;
  color: #fff;
}
.home-card--right .home-card__body {
  background: #5a3d2b;
  color: #f3d3b6;
}
.home-card__title_panificio {
  color: #e2bf96;
}
@media (max-width: 991.98px) {
  .home-card {
    height: 420px;
  }
  .home-card--left .home-card__floating-media {
    right: 0;
    width: 65%;
    height: 74%;
  }
  .home-card--right .home-card__floating-media {
    width: 50%;
    height: 72%;
  }
}

/* BANNER */
.cc-banner {
  --cc-banner-bg: transparent;
  --cc-banner-image: none;
  --cc-banner-size: cover;
  --cc-banner-position: center center;
  position: relative;
  overflow: hidden;
  background-color: var(--cc-banner-bg);
  background-image: var(--cc-banner-image);
  background-repeat: no-repeat;
  background-size: var(--cc-banner-size);
  background-position: var(--cc-banner-position);
}
.cc-banner--rounded {
  border-radius: var(--radius);
}
.cc-banner--auto {
  min-height: 0;
}
.cc-banner--compact {
  min-height: 220px;
}
.cc-banner--medium {
  min-height: 360px;
}
.cc-banner--large {
  min-height: 520px;
}
.cc-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 3rem;
}
.cc-banner--content-left:not(.cc-banner--has-media) .cc-banner__content {
  max-width: 650px;
  margin-right: auto;
}
.cc-banner--content-center:not(.cc-banner--has-media) .cc-banner__content {
  max-width: 750px;
  margin-right: auto;
  margin-left: auto;
}
.cc-banner--content-right:not(.cc-banner--has-media) .cc-banner__content {
  max-width: 650px;
  margin-left: auto;
}
.cc-banner__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
}
.cc-banner__title {
  margin-bottom: 1rem;
  color: #55671d;
}
.cc-banner__text {
  max-width: 650px;
}
.cc-banner--content-center .cc-banner__text {
  margin-right: auto;
  margin-left: auto;
}
.cc-banner--content-right .cc-banner__text {
  margin-left: auto;
}
.cc-banner__text > :last-child {
  margin-bottom: 0;
}
.cc-banner .button.button-outline {
  margin-top: 1.5rem;
  background-color: #55671d;
  border-color: #55671d;
  color: #fff;
}
.cc-banner__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.cc-banner__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-height: 340px;
}
@media (max-width: 991.98px) {
  .cc-banner--compact,
  .cc-banner--medium,
  .cc-banner--large {
    min-height: 0;
  }
  .cc-banner__content {
    min-height: 260px;
    padding: 2rem;
  }
  .cc-banner__media {
    padding-top: 2rem;
    max-height: 260px;
  }
  .cc-banner--media-left .cc-banner__media {
    order: 2;
  }
}

/* Banner Pizza  */
.banner-pizza {
  --banner-height: 250px;
  position: relative;
  height: var(--banner-height);
  overflow: hidden;
  background: var(--banner-pizza-bg, #efe5c9);
}
.banner-pizza--rounded {
  border-radius: var(--radius);
}
.banner-pizza--compact {
  --banner-height: 150px;
}
.banner-pizza--medium {
  --banner-height: 250px;
}
.banner-pizza--large {
  --banner-height: 350px;
}
.banner-pizza > .row {
  height: 100%;
}
.banner-pizza__column {
  position: relative;
  height: 100%;
  overflow: hidden;
}
.banner-pizza__column--left {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--banner-pizza-bg, #efe5c9);
}
.banner-pizza__column--right {
  background: var(--banner-pizza-bg, #efe5c9);
}
.banner-pizza__image {
  display: block;
  width: 100%;
  height: 100%;
}
.banner-pizza__image--left {
  padding: 2rem;
  object-fit: contain;
}
.banner-pizza__image--right {
  object-fit: cover;
}
.banner-pizza__cta {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: max-content;
  max-width: calc(100% - 2rem);
  transform: translate(-50%, -50%);
}
.banner-pizza__cta--center {
  left: 50%;
}
@media (max-width: 991.98px) {
  .banner-pizza {
    height: auto;
  }
  .banner-pizza > .row {
    height: auto;
  }
  .banner-pizza__column {
    height: 180px;
  }
  .banner-pizza__image--left {
    padding: 1.5rem 2rem;
  }
}

/* MENU PIZZA */
.acf-menu-telefoni {
  text-align: center;
}
.acf-menu-telefoni__inner {
  max-width: 720px;
  margin: 0 auto;
}
.acf-menu-telefoni__button,
.acf-menu-telefoni__select {
  min-width: 290px;
  padding: 1rem 2rem;
  border: 1px solid #6f584a;
  border-radius: 12px;
  background: #e8dfc8;
  color: #3f2e28;
  font-weight: 700;
  text-decoration: none;
}
.acf-menu-telefoni__button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 3rem;
}
.acf-menu-telefoni__text {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}
.acf-menu-telefoni__select-wrap {
  margin-bottom: 1.75rem;
}
.acf-menu-telefoni__select {
  appearance: auto;
}
.acf-menu-telefoni__phone {
  font-size: 1.6rem;
  font-weight: 800;
  color: #3f2e28;
}

/* PIZZA */
.acf-menu-pizza__inner {
  max-width: 720px;
}
.acf-menu-pizza__select-wrap {
  max-width: 420px;
}
.acf-menu-pizza .form-select {
  border-color: #493021;
  border-radius: 10px;
  background-color: #ebe1c6;
  color: #493021;
}
.acf-menu-pizza .form-select:focus {
  border-color: var(--text-secondary);
  box-shadow: 0 0 0 0.25rem rgba(0, 74, 147, 0.15);
}
.acf-menu-pizza__phone-link,
.acf-menu-pizza__phone-link:visited {
  color: #493021;
  text-decoration: none;
}
.acf-menu-pizza__phone-link:hover,
.acf-menu-pizza__phone-link:focus {
  color: #493021;
}

/* VOLANTINO */
.acf-volantino__title {
  margin-bottom: 2rem;
}
.acf-volantino__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}
.acf-volantino__viewer.stf__parent {
  flex: 0 0 auto;
  margin-left: auto;
  margin-right: auto;
}
.acf-volantino__viewer .stf__wrapper {
  margin-left: auto;
  margin-right: auto;
}
.acf-volantino__viewer .stf__item.--right.--simple:first-child {
  left: 50% !important;
  transform: translateX(-50%);
}
.acf-volantino__page canvas {
  display: block;
}
.acf-volantino__viewer.is-loading {
  opacity: 0.5;
}
.acf-volantino__page {
  background: #fff;
  overflow: hidden;
}
.acf-volantino__arrow {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  border: 0;
  border-radius: 999px;
  background: var(--cc-text-primary, #005baa);
  color: #fff;
  font-size: 3rem;
  line-height: 1;
  cursor: pointer;
}
.acf-volantino__toolbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 1.5rem;
}
.acf-volantino__download {
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
}
.acf-volantino__counter {
  font-weight: 500;
}
.acf-volantino__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}
.acf-volantino__actions button {
  width: 40px;
  height: 40px;
  border: 1px solid currentColor;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}
.acf-volantino:fullscreen {
  background: #f7f1e8;
  padding: 2rem;
  overflow: auto;
}
@media (max-width: 767px) {
  .acf-volantino__stage {
    gap: 0.5rem;
  }
  .acf-volantino__arrow {
    position: absolute;
    z-index: 5;
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    font-size: 2.25rem;
  }
  .acf-volantino__arrow--prev {
    left: 0.5rem;
  }
  .acf-volantino__arrow--next {
    right: 0.5rem;
  }
  .acf-volantino__toolbar {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .acf-volantino__actions {
    justify-content: center;
  }
}

/* ==========================================================
   Componenti comuni
   ----------------------------------------------------------
   Bottoni, card, badge, pagination, social, ecc.
   ========================================================== */
.button,
.button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2.25rem;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: 0.25s ease;
}

.button-primary,
.button-primary:visited {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}
.button-primary:hover,
.button-primary:focus {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
  color: #fff;
}
.button-secondary,
.button-secondary:visited {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
  color: #fff;
}
.button-secondary:hover,
.button-secondary:focus {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}
.button-outline,
.button-outline:visited {
  background: var(--bg-primary);
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.button-outline:hover,
.button-outline:focus {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}
.button-outline-primary,
.button-outline-primary:visited {
  background: transparent;
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.button-outline-primary:hover,
.button-outline-primary:focus {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: #fff;
}
.button-outline-secondary,
.button-outline-secondary:visited {
  background: transparent;
  border-color: var(--text-secondary);
  color: var(--text-secondary);
}
.button-outline-secondary:hover,
.button-outline-secondary:focus {
  background: var(--text-secondary);
  border-color: var(--text-secondary);
  color: #fff;
}
.button-outline-piza,
.button-outline-piza:visited {
  background: #ebe1c6;
  border-color: #493021;
  color: #493021;
}
.button-outline-piza:hover,
.button-outline-piza:focus {
  background: #493021;
  border-color: #493021;
  color: #ebe1c6;
}

.cc-pagination .page-link {
  text-decoration: none;
}
.cc-icon {
  display: inline-block;
  width: 1.5em;
  height: 1.5em;
  flex: 0 0 auto;
  vertical-align: middle;
}
.cc-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  margin: 0;
  list-style: none;

  --social-size: 2.75rem;
  --social-radius: 50%;
  --social-bg: transparent;
  --social-color: currentColor;
  --social-border: 0;

  --social-bg-hover: var(--bg-primary);
  --social-color-hover: var(--bg-secondary);
  --social-border-hover: 0;
}
.text-center .cc-social {
  justify-content: center;
}
.text-end .cc-social {
  justify-content: flex-end;
}
.cc-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-size);
  height: var(--social-size);
  border-radius: var(--social-radius);
  background: var(--social-bg);
  color: var(--social-color);
  border: var(--social-border);
  text-decoration: none;
  line-height: 1;
  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease,
    opacity 0.25s ease;
}
.cc-social__link:hover {
  background: var(--social-bg-hover);
  color: var(--social-color-hover);
  border: var(--social-border-hover);
  transform: translateY(-2px);
}
.cc-social__icon,
.cc-social__link .cc-icon {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
}

.cc-social--filled {
  --social-bg: var(--text-secondary);
  --social-color: #fff;
  --social-bg-hover: var(--text-primary);
  --social-color-hover: #fff;
}
.cc-social--outline {
  --social-border: 1px solid currentColor;
  --social-bg-hover: var(--text-primary);
  --social-color-hover: #fff;
  --social-border-hover: 1px solid var(--text-primary);
}
.cc-social--square {
  --social-radius: 0.5rem;
}
.cc-social--sharp {
  --social-radius: 0;
}
.cc-social--sm {
  --social-size: 2.25rem;
}
.cc-social--lg {
  --social-size: 3rem;
}

/* ==========================================================
   Form
   ========================================================== */
.fluentform.ff-default .ff-el-form-control {
  border-color: var(--text-primary);
}
.fluentform.ff-default .ff_upload_btn.ff-btn {
  background-color: #fff;
  border: 1px solid var(--text-primary);
  color: var(--text-primary);
  font-weight: 600;
  border-radius: 10px;
}
.fluentform.ff-default .ff_upload_btn.ff-btn:hover {
  background-color: var(--text-primary);
  color: #fff;
}
.fluentform.ff-default form .ff-btn-submit:not(.ff_btn_no_style) {
  background-color: var(--text-primary);
  color: #fff;
  font-weight: 600;
  border-radius: 10px;
  padding: 0.5rem 3rem;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer .menu-item {
  display: inline-block;
  margin-left: 1rem;
}
.site-footer a {
  color: inherit;
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ==========================================================
   Offerte prodotti
   ========================================================== */
.cc-offers {
  background: #fff;
}
.cc-offers__intro {
  max-width: 900px;
}
.cc-offers__sort {
  width: auto;
  min-width: 220px;
  border-color: var(--text-primary);
  color: var(--text-primary);
  font-weight: 600;
}
.cc-product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.06);
}
.cc-product-card__media {
  position: relative;
  width: 100%;
  height: 0;
  padding-top: 100%;
  background: #fff4e9;
  overflow: hidden;
}
.cc-product-card__media img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 82%;
  height: 82%;
  max-width: 82%;
  max-height: 82%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  display: block;
}
.cc-product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1rem;
}
.cc-product-card__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}
.cc-product-card__pricing {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.25rem;
}
.cc-product-card__regular-row,
.cc-product-card__offer-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.cc-product-card__label {
  font-size: 0.72rem;
  line-height: 1.2;
  opacity: 0.65;
}
.cc-product-card__regular {
  font-size: 0.85rem;
  text-decoration: line-through;
  opacity: 0.65;
  white-space: nowrap;
}
.cc-product-card__price {
  color: var(--text-primary);
  font-size: 1.35rem;
  line-height: 1;
  white-space: nowrap;
}
.cc-product-card__discount {
  align-self: flex-end;
  margin-top: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  background: var(--text-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}
.cc-product-card__unit {
  margin-top: 0.35rem;
  text-align: right;
  font-size: 0.75rem;
}
@media (max-width: 575.98px) {
  .cc-product-card__media img {
    width: 78%;
    height: 78%;
    max-width: 78%;
    max-height: 78%;
  }
  .cc-product-card__body {
    padding: 0.75rem;
  }
  .cc-product-card__title {
    font-size: 0.85rem;
  }
  .cc-product-card__label {
    font-size: 0.65rem;
  }
  .cc-product-card__price {
    font-size: 1.1rem;
  }
}
