/* ===================================================================
  Calore Orizzonte CSS Reset & Variables - Mobile-First Responsive
=================================================================== */

/* Reset & Normalize */
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, figcaption, blockquote, dl, dd {
  margin: 0; padding: 0; font-weight: normal;
}
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
img, picture { max-width: 100%; display: block; height: auto; }
button, input, select, textarea {
  font: inherit;
  border: none;
  outline: none;
  background: none;
}
button { cursor: pointer; }
:root {
  --primary: #19396A;
  --secondary: #EBA43A;
  --accent: #F5F5F3;
  --neutral: #232333;
  --danger: #D84646;
  --success: #3ABA72;
  --bg: #FDFCF9;
  --white: #fff;
  --shadow: 0 4px 24px rgba(21, 44, 87, 0.08);
  --shadow-lg: 0 10px 40px rgba(21,44,87,0.13);
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 26px;
  --font-display: 'Montserrat', 'Arial Rounded MT Bold', Arial, sans-serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
  --color-text-main: #162033;
  --color-text-light: #fff;
  --color-text-muted: #69707D;
  --cta-gradient: linear-gradient(90deg, #EBA43A, #19396A);
}

body {
  background: var(--bg);
  color: var(--color-text-main);
  font-size: 16px;
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.card {
  margin-bottom: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: box-shadow 0.25s, transform 0.20s;
  position: relative;
  min-width: 260px;
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px) scale(1.012) rotate(-0.5deg);
}

.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  box-shadow: 0 2px 12px rgba(25,57,106,0.06);
  margin-bottom: 20px;
  min-width: 250px;
  max-width: 500px;
  color: #232333;
}
.testimonial-card p {
  font-family: var(--font-display);
  font-size: 1.12rem;
  margin-bottom: 8px;
  color: var(--primary);
}
.testimonial-card span {
  font-size: 0.95rem;
  color: var(--neutral);
  font-style: italic;
}

.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

/* ==================== TYPOGRAPHY ======================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
}
h1 {
  font-size: 2.1rem;
  margin-bottom: 20px;
  color: var(--primary);
  line-height: 1.15;
}
h2 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  color: var(--secondary);
}
h3 {
  font-size: 1.17rem;
  color: var(--primary);
  margin-bottom: 12px;
}
p, ul li, ol li, .legal-text p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-main);
  margin-bottom: 12px;
}
strong {
  font-weight: 700;
  color: var(--primary);
}

/* Artistic accents (creative_artistic style) */
h1, h2, h3 {
  text-shadow: 2px 1.5px 0 rgba(235,164,58,0.15), 0 3px 12px rgba(25,57,106,0.07);
  letter-spacing: 0.03em;
}

@media (max-width: 480px) {
  h1 { font-size:1.3rem; }
  h2 { font-size:1.1rem; }
  h3 { font-size:1rem; }
}

/* ===================== HEADER & NAV ===================== */
header {
  background: var(--white);
  box-shadow: 0 3px 12px rgba(25,57,106,0.045);
  position: sticky; top: 0; left: 0; right: 0; z-index: 999;
}
header .container { 
  display: flex; 
  align-items: center; 
  justify-content: space-between;
  padding: 15px 18px;
  min-height: 72px;
}
header nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
header nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--primary);
  border-radius: 8px;
  padding: 7px 13px;
  transition: background 0.15s, color 0.18s;
  position: relative;
}
header nav a.cta {
  background: var(--secondary);
  color: var(--white);
  font-weight: bold;
  border-radius: var(--radius-sm);
  padding: 9px 22px;
  margin-left: 8px;
  box-shadow: 0 3px 16px rgba(235,164,58,0.07);
  letter-spacing: 0.06em;
}
header nav a:not(.cta):hover {
  background: var(--accent);
  color: var(--secondary);
}
header nav a.cta:hover, header nav a.cta:focus {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--secondary);
  transition: background .19s, color 0.17s, border 0.16s;
}
header img {
  height: 40px;
}

/* ================ MOBILE NAVIGATION BURGER ============= */
.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--secondary);
  color: var(--primary);
  font-size: 2.15rem;
  border-radius: var(--radius-sm);
  width: 44px; height: 44px;
  margin-left: 18px;
  box-shadow: 0 2px 12px rgba(235,164,58,0.14);
  outline: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.14s;
  z-index: 1201;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--primary);
  color: var(--secondary);
}

/* Hide desktop nav + show burger on small screens */
@media (max-width: 990px) {
  header nav { display: none; }
  .mobile-menu-toggle { display: flex; }
}
@media (min-width: 991px) {
  .mobile-menu-toggle { display: none !important; }
  .mobile-menu { display: none !important; }
}

/* =============== MOBILE MENU ========================= */
.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--primary);
  color: var(--white);
  z-index: 2100;
  transform: translateX(100vw);
  transition: transform 0.44s cubic-bezier(.68,-0.25,.265,1.25);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 24px 0 0 0;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  background: var(--secondary);
  color: var(--primary);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 2rem;
  position: absolute;
  top: 17px; right: 18px;
  z-index: 1250;
  transition: background 0.14s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mobile-menu-close:hover, .mobile-menu-close:focus {
  background: var(--danger);
  color: #fff;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  padding: 65px 32px 32px 26px;
}
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  padding: 15px 0 10px 10px;
  color: var(--accent);
  border-left: 4px solid transparent;
  border-radius: 7px;
  width: 100%;
  transition: background 0.22s, color 0.20s, border 0.16s;
}
.mobile-nav a:hover, .mobile-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
  border-left: 4px solid var(--secondary);
}

/* ============= HERO ========================= */
.hero {
  background: linear-gradient(120deg, var(--accent) 62%, #fff 100%);
  border-radius: 0 0 56px 56px/0 0 120px 90px;
  box-shadow: 0 12px 52px -20px var(--primary), 0 0.5px 0.6px 1px var(--accent);
  min-height: 350px;
  margin-bottom: 55px;
  display: flex;
  align-items: center;
}
.hero .container {
  min-height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero .content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 19px;
}
.hero h1 {
  font-size: 2.2rem;
  color: var(--primary);
}
.hero p {
  color: var(--color-text-main);
  font-size: 1.125rem;
  max-width: 490px;
}
.hero .cta {
  margin-top: 11px;
}

/* =================== CTAs & BUTTONS =================== */
.cta, .cta-banner a.cta {
  display: inline-block;
  background: var(--secondary);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius-lg);
  padding: 14px 34px;
  box-shadow: 0 2px 22px rgba(235,164,58,0.18);
  transition: background 0.16s, color 0.15s, box-shadow 0.14s, transform 0.2s;
  margin-top: 14px;
  border: 2px solid var(--secondary);
}
.cta:hover, .cta:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--secondary);
  transform: scale(1.045) rotate(-2deg);
  box-shadow: 0 2px 30px rgba(25,57,106,0.09);
}

/* =================== CARDS =================== */
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 22px;
  margin-bottom: 20px;
  transition: box-shadow .21s, transform 0.18s;
  min-width: 220px;
  max-width: 350px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 6px solid var(--secondary);
}
.service-card h2, .service-card h3 {
  color: var(--primary);
  margin-bottom: 7px;
}
.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px) scale(1.008);
  border-left: 6px solid var(--primary);
}
.service-card span {
  color: var(--neutral);
  background: var(--accent);
  border-radius: var(--radius-sm);
  font-size: 1.08rem;
  font-weight: bold;
  padding: 4px 11px;
  margin-top: 6px;
  letter-spacing: 0.025em;
}

.service-list, .testimonial-slider {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
}

@media (max-width:670px) {
  .service-list, .testimonial-slider {
    gap: 16px;
  }
}

/* ============ BENEFITS GRID / ICON LIST =========== */
.benefits-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 26px;
}
.benefits-grid ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.benefits-grid li {
  display: flex;
  align-items: center;
  gap: 17px;
  font-size: 1.05rem;
}

/* ============ STEPS / PROCESS LIST ============= */
ol {
  margin-left: 28px;
  margin-bottom: 17px;
  color: var(--color-text-main);
}
ol li {
  margin-bottom: 12px;
  position: relative;
  padding-left: 5px;
}
ol li img {
  height: 30px;
  width: 30px;
  vertical-align: text-bottom;
  margin-right: 13px;
}

/* ========== FAQ ================== */
.faq-accordion > div {
  border-radius: var(--radius-sm);
  background: var(--accent);
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(25,57,106,0.04);
  padding: 16px 30px 14px 16px;
  transition: box-shadow 0.19s;
}
.faq-accordion h2 {
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 6px;
  cursor: pointer;
}
.faq-accordion p { margin-bottom: 0; font-size: 1rem; }

.quick-contact-prompt {
  margin-top: 20px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}
.quick-contact-prompt a.cta {
  margin-top: 9px;
  background: var(--secondary);
  color: var(--primary);
}

/* ========== CTA BANNER ================== */
.cta-banner {
  background: var(--secondary);
  color: var(--primary);
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 32px rgba(25,57,106,0.08);
  margin: 40px auto 20px auto;
  padding: 24px 0;
}
.cta-banner .container {
  align-items: center;
  display: flex;
  flex-direction: column;
}

.cta-banner h2 {
  color: var(--primary);
  font-size: 1.44rem;
}
.cta-banner p {
  color: var(--primary);
  font-size: 1.07rem;
}

.cta-banner a.cta {
  margin-top: 10px;
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--primary);
}
.cta-banner a.cta:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--secondary);
}

/* ========== TESTIMONIAL STAR RATING ============ */
.stars {
  display: flex;
  align-items: center;
  gap: 2.5px;
  margin-bottom: 9px;
}
.stars img {
  height: 20px;
}

/* ========== CONTACT PAGE ELEMENTS ================ */
.contact-details, .map-location {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 22px;
}
.contact-details p,
.map-location p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.contact-details a { color: var(--primary); font-weight: 700; }

.map-location img {
  height: 32px; width: 32px;
  margin-right: 5px;
}

/* ========== FOOTER ================== */
footer {
  background: var(--primary);
  color: var(--accent);
  padding: 44px 0 0 0;
  border-radius: 30px 30px 0 0 / 70px 70px 0 0;
  box-shadow: 0 -12px 50px -20px var(--primary);
  margin-top: 56px;
}
footer .container {
  padding: 0 8px;
}
footer .content-wrapper {
  display: flex;
  flex-wrap: wrap;
  color: white;
  justify-content: space-between;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.footer-contact p{
  color: white;
}
footer nav {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
footer nav a {
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.8;
  transition: color 0.18s;
}
footer nav a:hover { color: var(--secondary); }
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.98rem;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin: 12px 0;
}
.footer-social a img {
  width: 37px; height: 37px;
  filter: drop-shadow(0 2px 7px rgba(25,57,106,0.15));
  transition: filter 0.14s;
}
.footer-social a:hover img { filter: brightness(1.2) drop-shadow(0 4px 13px rgba(235,164,58,0.29)); }

.legal-text {
  width: 100%;
  text-align: center;
  font-size: 0.96rem;
  margin: 24px 0 6px 0;
  color: #b5d0ef;
  letter-spacing: 0.01em;
}

/* ========== ARTISTIC UX DETAILS ============ */
section {
  background: var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: 0 3px 30px -16px var(--primary), 0 2px 9px -9px var(--secondary);
  margin-bottom: 36px;
}
section .container {
  display: flex; flex-direction: column;
}

/* Cards with subtle artistic border */
.card, .service-card, .testimonial-card, .faq-accordion > div {
  border-image: linear-gradient(to right, var(--secondary) 60%, var(--primary) 100%) 1;
  border-width: 3px 0 0 0;
  border-style: solid;
}

/* ========= COOKIE CONSENT BANNER ========== */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 3000;
  background: var(--primary);
  color: var(--white);
  padding: 24px 18px;
  box-shadow: 0 -4px 25px rgba(25,57,106,0.13);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  font-size: 1rem;
  border-radius: 30px 30px 0 0 / 55px 55px 0 0;
  transition: transform 0.38s;
  transform: translateY(0);
}

.cookie-consent-banner.hide { transform: translateY(120%); }
.cookie-consent-banner .cookie-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.cookie-consent-banner button {
  color: var(--primary);
  background: var(--secondary);
  font-family: var(--font-display);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 8px 24px;
  margin: 3px 0;
  font-size: 1rem;
  transition: background 0.19s, color 0.14s;
}
.cookie-consent-banner button:focus, .cookie-consent-banner button:hover {
  background: var(--white);
  color: var(--secondary);
}
.cookie-consent-banner button.cookie-settings {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--secondary);
}
.cookie-consent-banner button.cookie-settings:hover {
  background: var(--secondary);
  color: var(--white);
}

/* Cookie Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(25,57,106,0.72);
  z-index: 4000;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transition: opacity 0.26s;
}
.cookie-modal-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.cookie-modal {
  background: var(--white);
  color: var(--primary);
  max-width: 355px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 35px 26px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 19px;
  position: relative;
  animation: modalPop 0.51s cubic-bezier(.62,-0.38,.34,1.36);
}
@keyframes modalPop {
  0%{transform: scale(0.7) translateY(120px); opacity:0.2;}
  80%{transform: scale(1.04) translateY(-9px); opacity:0.97;}
  100%{transform: scale(1) translateY(0); opacity:1;}
}
.cookie-modal h2 {
  color: var(--secondary);
  font-size: 1.18rem;
  margin-bottom: 10px;
}
.cookie-category {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  font-size: 1.03rem;
}
.cookie-category label {
  cursor: pointer;
}
.cookie-toggle {
  width: 38px; height: 22px;
  border-radius: 14px;
  position: relative;
  background: #e4eaf0;
  transition: background .14s;
  margin-right: 8px;
}
.cookie-toggle input[type=checkbox] {
  width:0; height:0; opacity:0; position:absolute;
}
.cookie-toggle .slider {
  position: absolute;
  left: 2px; top: 3px;
  width: 16px; height: 16px;
  background: var(--primary);
  border-radius: 50%;
  transition: left 0.14s, background 0.13s;
}
.cookie-toggle input[type=checkbox]:checked + .slider {
  left: 19px; background: var(--secondary);
}
.cookie-modal .modal-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}
.cookie-modal .close-modal {
  position: absolute;
  top: 19px; right: 18px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: background .13s;
}
.cookie-modal .close-modal:hover {
  background: var(--danger);
  color: var(--white);
}

/* EVIDENCE: Section border/decoration for artistic style */
section {
  border-bottom: 7px solid var(--secondary);
  box-shadow: 0 6px 24px -15px var(--secondary);
  margin-bottom: 36px;
}

/* ===================== RESPONSIVE ====================== */
@media (max-width: 991px) {
  .content-wrapper, .footer .content-wrapper {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 18px !important;
  }
  .section, section {
    padding: 28px 10px;
    margin-bottom: 32px;
  }
  .card-container, .service-list, .testimonial-slider {
    flex-direction: column;
    gap: 16px;
  }
  .hero .container {
    min-height: 220px;
    padding: 0 8px;
  }
  .footer .content-wrapper {
    gap: 20px;
  }
}
@media (max-width: 768px) {
  .content-grid, .footer .content-wrapper {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .text-image-section {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .card-container, .service-list, .testimonial-slider {
    gap: 16px;
  }
  header .container {
    padding: 9px 7px;
    min-height: 56px;
  }
  .hero {
    min-height: 220px;
    border-radius: 0 0 32px 32px/0 0 60px 60px;
  }
  .cta-banner, .cookie-consent-banner {
    border-radius: 18px 18px 0 0;
    padding: 19px 6px;
  }
  .service-card, .card, .testimonial-card {
    padding: 22px 11px;
    min-width: 160px;
  }
  .cookie-modal {
    padding: 20px 10px;
    max-width: 97vw;
  }
  ol, ul {
    margin-left: 17px;
  }
}
@media (max-width: 480px) {
  .container { padding: 0 4px; }
  .header .container, .footer .container {
    padding: 0 2px;
  }
  .hero .container {
    padding: 0 2px;
  }
  .cta, .cta-banner a.cta {
    font-size: 1rem;
    padding: 12px 22px;
  }
  .content-wrapper {
    gap: 9px;
  }
}

/* ===================== ANIMATIONS & MICRO-INTERACTIONS ============= */
.card, .service-card, .testimonial-card, .faq-accordion > div, .cta, .cta-banner a.cta {
  transition: box-shadow .21s, border-color 0.19s, transform 0.18s, background 0.16s, color 0.18s;
}
.card:hover, .service-card:hover, .testimonial-card:hover, .faq-accordion > div:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  transform: scale(1.016) rotate(-0.7deg);
}

nav a:active, button:active {
  opacity: 0.8;
  transform: scale(0.98);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

::-webkit-input-placeholder { color: #b5b5b5; }
::-moz-placeholder { color: #b5b5b5; }
:-ms-input-placeholder { color: #b5b5b5; }
::placeholder { color: #b5b5b5; }

/* =========== Utility Gaps & Flex Details =========== */
.gap-8 { gap: 8px !important; }
.gap-16 { gap: 16px !important; }
.gap-20 { gap: 20px !important; }
.align-center { align-items: center !important; }
.align-start { align-items: flex-start !important; }
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }

/* Prevent overlap (critical) */
.card, .service-card, .testimonial-card, .faq-accordion > div, section {
  margin-bottom: 20px !important;
}

/* Hide visually but not for screen readers */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* ============ END OF CSS =========== */
