@import url('https://fonts.googleapis.com/css2?family=Cal+Sans:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap');

* {
  /* body font */
  --body-font: Arial, Helvetica, sans-serif;
  --body-font-size: 16px;
  --body-font-color: #59585D;
  --body-font-color-bg-dark: rgba(255, 255, 255, .6);
  --body-font-weight: 400;
  /* heading font */
  --heading-font: "Cal Sans", Helvetica, Arial, sans-serif;  
  --heading-font-weight: 500;
  --heading-font-color: #1C1C1D;
  --heading-font-color-bg-dark: #ffffff;
  --heading-text-transform: none;
  /* h1 */
  --h1-font-size: 60px;
  --h1-font-weight: var(--heading-font-weight);
  --h1-letter-spacing: 0;
  --h1-line-height: 1.15em;
  --h1-margin-bottom: 20px;
 /* h2 */
  --h2-font: var(--heading-font);
  --h2-font-size: 48px;
  --h2-font-weight: var(--heading-font-weight);
  --h2-letter-spacing: 0;
  --h2-line-height: 1.2em;
  --h2-margin-bottom: 25px;
  /* h3 */
  --h3-font-size: 26px;
  --h3-font-weight: var(--heading-font-weight);
  --h3-letter-spacing: 0;
  --h3-line-height: 1.5em;
  --h3-margin-bottom: 10px;
  /* h4 */
  --h4-font-size: 20px;
  --h4-font-weight: var(--heading-font-weight);
  --h4-letter-spacing: 0;
  --h4-line-height: 1.6em;
  --h4-margin-bottom: 10px;
  /* h5 */
  --h5-font-size: 18px;
  --h5-font-weight: var(--heading-font-weight);
  --h5-letter-spacing: 0;
  --h5-line-height: 1.6em;
  --h5-margin-bottom: 10px;
  /* h6 */
  --h6-font-size: 16px;
  --h6-font-weight: var(--heading-font-weight);
  --h6-letter-spacing: 0;
  --h6-line-height: 1.6em;
  --h6-margin-bottom: 10px;
  /* mainmenu */
  --mainmenu-font: var(--heading-font);
  --mainmenu-font-size: 17px;
  --mainmenu-font-weight: 500;
  --mainmenu-letter-spacing: 0;
  --mainmenu-text-transform: none;
  /* subheader */
  --subheader-title-font-size: 60px;
  --subheader-title-text-transform: none;
  /* header logo */
  --logo-width: 170px;
  --logo-footer-width: 150px;
  /* misc */
  --border-default: solid 1px rgba(30, 30, 30, 1);
  --bg-default: #F6F6F6;
  --bg-light: #F8F9FA;
  --bg-dark-1: #28282D;
  --bg-dark-2: #5c4e48;
  --bg-dark-3: #303030;  
  --bg-dark-1-rgb: 87, 70, 64;
  --bg-grey: #eeeeee;
  --bg-gradient-1: 0deg, rgba(var(--primary-color-rgb), .1) 0%, rgba(var(--secondary-color-rgb), .2) 100%;
  --bg-color-even: #E8E8E8;
  --bg-color-odd: #F4F4F4;
  --swiper-theme-color: var(--secondary-color);
  --rounded-1: 16px;
  --border-color:#bbbbbb;
  --container-max-width:1240px;
  /* button */
  --btn-color: #fff;
  --btn-hover-bg: var(--bg-dark-1);
  --btn-font-family: var(--body-font);
  --btn-font-size: 15px;
  --btn-font-weight: bold;
  --btn-letter-spacing: 0;
  --btn-padding: 6px 20px;
  --btn-rounded: 30px;
  --btn-text-decoration: none;
  --btn-text-transform: none;

  --text-circle-width: 350px;
  --text-circle-speed: 10s;
}

/* Card strutture (archivio e homepage): altezza fissa, foto ritagliata senza deformarla */
.crs-card-img {
  display: block;
  height: 320px !important;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 767px) {
  .crs-card-img {
    height: 240px !important;
  }
}

/* Hero homepage: patina nera sopra foto/video */
.crs-hero-overlay {
  background: rgba(0, 0, 0, 0.5);
}

/* Singola struttura: griglia galleria foto */
.crs-galleria-img {
  display: block;
  height: 180px !important;
  object-fit: cover;
}

/* Telefono: una foto per riga, a tutta larghezza */
@media (max-width: 767px) {
  .crs-galleria-img {
    height: 240px !important;
  }
}

/* Singola struttura: bottoni bianchi nel riquadro "Prenota questa struttura" */
a.btn-main.crs-btn-bianco {
  background: #ffffff;
  color: var(--bg-dark-1);
}

a.btn-main.crs-btn-bianco:hover {
  background: var(--primary-color);
  color: #ffffff;
}

/* Singola struttura: servizi con icone bordeaux */
.crs-servizio-icona {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), .08);
  color: var(--primary-color);
  transition: all .3s ease;
}

.crs-servizio-svg {
  width: 32px;
  height: 32px;
}

.crs-servizio:hover .crs-servizio-icona {
  background: var(--primary-color);
  color: #ffffff;
}

/* Singola struttura: luoghi del centro di Roma (testi a capo, il template mette nowrap su .d-flex) */
.crs-luogo {
  white-space: normal;
}

.crs-luogo-icona {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(var(--primary-color-rgb), .08);
  color: var(--primary-color);
}

.crs-luogo-icona svg {
  width: 22px;
  height: 22px;
}

/* Singola struttura: riquadro evidenziato dentro la descrizione (<div class="crs-nota-evidenza"><p>…</p></div>).
   L'icona è nel CSS così l'editor di WordPress non la elimina. */
.crs-nota-evidenza {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  margin-bottom: 30px;
  border-radius: var(--rounded-1);
  border-left: 4px solid var(--primary-color);
  background: rgba(var(--primary-color-rgb), .08);
  color: var(--heading-font-color);
}

.crs-nota-evidenza::before {
  content: "\f0c0";
  font-family: "FontAwesome";
  font-size: 20px;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
}

.crs-nota-evidenza p {
  margin: 0;
  font-weight: 500;
}

/* Social: icone bianche in cerchi bordeaux (footer e pagina Contatti) */
.crs-social {
  display: inline-flex;
  gap: 10px;
}

.crs-social a {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-color);
  color: #ffffff;
  font-size: 18px;
  transition: all .3s ease;
}

.crs-social a:hover {
  background: #ffffff;
  color: var(--primary-color);
}

/* Versione piccola (pagina Contatti): titolo + icone alti quanto l'icona grande accanto */
.crs-social-sm {
  display: flex;
  gap: 8px;
}

.crs-social-sm a {
  width: 30px;
  height: 30px;
  font-size: 14px;
}

.crs-social-sm a:hover {
  background: var(--bg-dark-1);
  color: #ffffff;
}

/* Pagina Contatti: quando contatti e form sono uno sotto l'altro, spazio tra le due sezioni */
@media (max-width: 991.98px) {
  #form-contatti {
    margin-top: 50px;
  }
}

/* Pagina Contatti, telefono: icone dei contatti più piccole, social accanto a "Seguici", form con meno padding */
@media (max-width: 767.98px) {
  .crs-contatto > i {
    font-size: 16px;
    padding: 10px !important;
  }

  .crs-contatto > .ms-80px {
    margin-left: 52px;
  }

  .crs-seguici {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  #form-contatti {
    padding: 24px;
  }
}

/* Lightbox galleria: frecce a chevron */
.mfp-arrow.mfp-arrow-left:before,
.mfp-arrow.mfp-arrow-right:before {
  display: none;
}

.mfp-arrow.mfp-arrow-left:after,
.mfp-arrow.mfp-arrow-right:after {
  width: 28px;
  height: 28px;
  top: 50%;
  left: 50%;
  margin: -14px 0 0 -14px;
  border: 0;
  border-top: 3px solid #ffffff;
  border-left: 3px solid #ffffff;
}

.mfp-arrow.mfp-arrow-left:after {
  transform: translateX(5px) rotate(-45deg);
}

.mfp-arrow.mfp-arrow-right:after {
  transform: translateX(-5px) rotate(135deg);
}

/* Singola struttura: riquadro "Prenota" che resta visibile durante lo scroll (solo desktop), sotto la navbar z-index 1001.
   Il template mette overflow: hidden sul body, che blocca position: sticky: qui diventa clip
   (taglia allo stesso modo ma non blocca sticky) e flow-root mantiene identici i margini della pagina. */
body.single-struttura {
  overflow: clip;
  display: flow-root;
}

.crs-prenota {
  position: relative;
  z-index: 10;
}

@media (min-width: 992px) {
  .crs-prenota {
    position: sticky;
    top: 110px;
  }
}

/* Loghi: altezza bloccata così l'header non si allunga e non copre la hero */
div#logo img {
  max-height: 50px;
  max-width: 200px;
  width: auto;
}

.crs-logo-footer {
  display: inline-block;
  width: 190px;
  height: auto;
}

.crs-logo-footer.crs-logo-footer-box {
  width: 170px;
  background: #ffffff;
  border-radius: var(--rounded-1);
  padding: 10px;
}
