/* =============================================================
   PERCORSI INCANTATI TORINO – GEOMETRIC STRUCTURED STYLE CSS
   (Mobile-first, Flexbox-only, Brand colors/fonts, All components)
   ============================================================= */

/* =====================
   0. CSS Reset & Normalize
   ===================== */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
footer p {
  color: white !important;
}
html {
  box-sizing: border-box;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  height: 100%;
  scroll-behavior: smooth;
  background: #F6F4EA;
}
body {
  line-height: 1.55;
  font-family: 'Open Sans', Arial, Helvetica, sans-serif;
  background: #F6F4EA;
  color: #2E5943;
  min-height: 100%;
}
img, svg {
  max-width: 100%;
  display: block;
}
a {
  color: #326DA8;
  text-decoration: none;
  transition: color 0.2s;
}
a:hover, a:focus {
  color: #174074;
  outline: none;
}
ul, ol {
  margin-left: 1.5em;
}
button {
  font-family: inherit;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  outline: none;
}

/* =====================
   1. Brand Variables
   ===================== */
:root {
  --primary: #2E5943;
  --secondary: #F6F4EA;
  --accent: #326DA8;
  --accent-dark: #174074;
  --white: #ffffff;
  --grey-100: #F6F4EA;
  --grey-200: #e6e3d7;
  --grey-300: #dad5bf;
  --shadow: 0 4px 24px rgba(44, 89, 67, 0.13);
  --radius-lg: 22px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --transition: 0.25s cubic-bezier(.55, .15, .32, 1.06);
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Open Sans', Arial, Helvetica, sans-serif;
}

/* =====================
   2. Typography & Geometric Accents
   ===================== */
h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.13;
  color: var(--primary);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: none;
}
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.015em;
}
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: 0.01em;
}
h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--primary);
}
p, ul, li, address {
  font-family: var(--font-body);
  font-size: 1rem;
  color: #2e5943;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}
blockquote {
  border-left: 4px solid var(--primary);
  padding-left: 20px;
  color: var(--accent-dark);
  font-style: italic;
}
strong { font-weight: 700; }
em, i { font-style: italic; }

.text-section {
  max-width: 740px;
  margin: 0 auto;
}

.cta-link {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
}
.cta-link::after {
  content: '';
  display: block;
  width: 34px;
  height: 3px;
  margin-top: 4px;
  background: var(--accent);
  border-radius: 2px;
  transition: width 0.2s;
}
.cta-link:hover::after { width: 55px; }

/* =====================
   3. Containers & Layouts: Flexbox Structure
   ===================== */
.container {
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0 auto;
  background: none;
  width: 100%;
  gap: 18px;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: none;
  position: relative;
  border-radius: var(--radius-lg);
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 24px 20px 24px;
  border: 2.5px solid var(--grey-200);
  min-width: 240px;
  flex: 1 1 250px;
}

.content-grid,
.team-list,
.faq-list, .feature-grid, .experience-grid, .highlighted-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}
.feature-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  margin-bottom: 20px;
}

.team-list > div,
.faq-list > div,
.feature-grid > div,
.experience-grid > div {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 22px 20px 20px 20px;
  min-width: 210px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 20px;
  border: 2px solid var(--grey-200);
}

.highlighted-routes ul {
  padding-left: 24px;
}

.local-experts-highlight {
  margin: 24px 0 0 0;
  padding: 20px 20px 18px 20px;
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(44, 109, 168,0.10);
}
.local-experts-highlight p{ color: var(--white); }


/********************************
  4. HEADER, NAV, & HERO
*********************************/
header {
  width: 100%;
  background: var(--white);
  border-bottom: 2.5px solid var(--grey-200);
  z-index: 1003;
  position: sticky;
  top: 0;
  left: 0;
}
.desktop-navbar {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  padding: 10px 10px 10px 0;
}
.logo-link {
  padding: 0 18px 0 8px;
  display: flex;
  align-items: center;
  border-right: 2px solid var(--grey-200);
  margin-right: 12px;
}
.desktop-navbar a {
  font-family: var(--font-body);
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.desktop-navbar a:hover,
.desktop-navbar a:focus {
  background: var(--accent);
  color: var(--white);
}

/* -- Mobile Menu -- */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--white);
  font-size: 2.1rem;
  border-radius: var(--radius-md);
  width: 46px;
  height: 46px;
  position: absolute;
  right: 18px;
  top: 13px;
  z-index: 1201;
  border: none;
  transition: background 0.15s, box-shadow 0.2s;
}
.mobile-menu-toggle:focus,
.mobile-menu-toggle:hover {
  background: var(--accent);
  box-shadow: 0 0 8px 0 var(--accent-dark);
}
@media (min-width: 992px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  min-height: 0;
  background: var(--white);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: translateX(-100vw);
  transition: transform var(--transition);
  box-shadow: 0 8px 32px rgba(44, 89, 67, 0.30);
  pointer-events: none;
}
.mobile-menu.open {
  transform: translateX(0);
  pointer-events: all;
}
.mobile-menu-close {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--accent-dark);
  margin-left: auto;
  margin-top: 18px;
  margin-right: 18px;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
  padding: 4px 10px;
}
.mobile-menu-close:focus,
.mobile-menu-close:hover {
  background: var(--grey-200);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  width: 100%;
  margin-top: 38px;
  padding: 0 32px;
}
.mobile-nav a {
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.16rem;
  padding: 14px 0;
  border-bottom: 1px solid var(--grey-200);
  width: 100%;
  transition: background 0.20s;
}
.mobile-nav a:hover,
.mobile-nav a:focus {
  background: var(--accent);
  color: var(--white);
  border-radius: var(--radius-sm);
}

@media (min-width: 992px) {
  .desktop-navbar {
    display: flex !important;
  }
  .mobile-menu { display: none !important; }
}
@media (max-width: 991px) {
  .desktop-navbar { display: none !important; }
}

/* -- Hero Section -- */
.hero {
  background: linear-gradient(180deg, var(--primary) 0, #346648 63%, #F6F4EA 100%);
  color: var(--white);
  padding: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 6px 18px 0 rgba(44, 89, 67, 0.10);
}
.hero .container {
  align-items: flex-start;
  padding-top: 48px;
  padding-bottom: 58px;
}
.hero .content-wrapper {
  color: var(--white);
  align-items: flex-start;
  gap: 18px;
}
.hero h1 {
  color: var(--white);
  font-size: 2.3rem;
}
.hero h2 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-bottom: 10px;
}
.hero p {
  color: var(--grey-100);
  margin-bottom: 18px;
  font-size: 1.07rem;
}

/* =====================
   5. CTAs & Buttons
   ===================== */
.cta-button, .detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 1.10rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: none;
  cursor: pointer;
  transition: background 0.17s, color 0.17s, transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 3px 12px 0 rgba(44, 109, 168, 0.06);
  min-width: 150px;
  text-decoration: none;
}
.cta-button.primary {
  color: var(--white);
  background: var(--primary);
}
.cta-button.primary:hover,
.cta-button.primary:focus {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 8px 16px 0 rgba(44, 109, 168, 0.14);
}
.cta-button.secondary {
  background: var(--secondary);
  color: var(--primary);
  border: 2px solid var(--primary);
}
.cta-button.secondary:hover,
.cta-button.secondary:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.detail-button {
  color: var(--white);
  background: var(--accent);
  padding: 11px 20px;
  font-size: 1em;
  box-shadow: 0 2px 8px 0 rgba(44, 109, 168, 0.07);
  margin-top: 0;
}
.detail-button:hover, .detail-button:focus {
  background: var(--primary);
  color: var(--secondary);
}

/* =====================
   6. Card & Section Structure
   ===================== */
.section {
  margin-bottom: 60px;
  padding: 40px 20px;
}
.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  position: relative;
}
.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: flex-start;
  gap: 20px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  border: 2px solid var(--grey-200);
  max-width: 700px;
}
.testimonial-card p {
  color: var(--primary);
  font-size: 1.08rem;
  margin-bottom: 6px;
}
.testimonial-footer {
  display: flex;
  flex-direction: row;
  gap: 18px;
  align-items: center;
  font-size: .98rem;
  color: var(--accent-dark);
  font-weight: 600;
}
.testimonial-footer strong {
  color: var(--primary);
}

/********************************
  7. Lists, Info Cards & FAQ   
*********************************/
.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}
.feature-grid > div {
  align-items: flex-start;
  max-width: 270px;
  min-width: 180px;
  flex: 1 1 210px;
  text-align: left;
}
.feature-grid img {
  width: 46px;
  height: 46px;
  margin-bottom: 12px;
}
.experience-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 10px;
  width: 100%;
}
.experience-grid > div {
  min-width: 210px;
  max-width: 265px;
  flex: 1 1 220px;
}
.faq-list > div {
  flex: 1 1 220px;
  min-width: 210px;
  margin-bottom: 20px;
}
ul {
  list-style: disc inside;
}
ul li {
  margin-bottom: 10px;
  color: var(--primary);
}
address {
  font-style: normal;
  margin-bottom: 16px;
  color: var(--primary);
}
.opening-hours, .social-links {
  margin-bottom: 22px;
}
.opening-hours ul, .social-links ul {
  padding-left: 18px;
}
.opening-hours li, .social-links li {
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contact info */
.contact-info-blurb {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  padding: 18px 18px 10px 18px;
  margin-bottom: 18px;
}
.contact-info-blurb p{
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.03rem;
  margin-bottom: 12px;
}
.contact-info-snippet {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--primary);
}
.contact-info-snippet p {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.97rem;
  color: var(--primary);
  margin-bottom: 0;
}

/********************************
  8. Footer
*********************************/
footer {
  background: var(--primary);
  color: var(--secondary);
  padding: 30px 0 0 0;
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}
footer .container {
  align-items: stretch;
}
footer .content-wrapper {
  align-items: center;
  gap: 18px;
}
.footer-nav {
  display: flex;
  flex-direction: row;
  gap: 18px;
  flex-wrap: wrap;
  margin: 0 0 0 10px;
}
.footer-nav a {
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.99rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: background 0.15s, color 0.16s;
}
.footer-nav a:hover,
.footer-nav a:focus {
  background: var(--secondary);
  color: var(--primary);
}
footer img {
  max-width: 82px;
  filter: none;
  margin-bottom: 0;
}

/********************************
  9. Cookie Consent Banner & Modal
*********************************/
.cookie-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  background: var(--white);
  border-top: 2px solid var(--accent);
  box-shadow: 0 -2px 20px 0 rgba(23,64,116,0.12);
  z-index: 4000;
  padding: 24px 16px 12px 16px;
  font-size: 1rem;
  animation: cookieBannerIn 0.6s cubic-bezier(.6,-0.26,.2,1.12);
}
@keyframes cookieBannerIn {
    0% { transform: translateY(100%); opacity: 0; }
    80% { transform: translateY(-8px); opacity: 1; }
    100% { transform: translateY(0); opacity: 1; }
}
.cookie-banner p {
  font-size: 1.01rem;
  color: var(--primary);
  margin-bottom: 5px;
  text-align: center;
}
.cookie-buttons {
  display: flex;
  gap: 14px;
  align-items: center;
}
.cookie-btn {
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 11px 20px;
  border: 2px solid var(--primary);
  background: var(--secondary);
  color: var(--primary);
  transition: background .22s, color .22s, border-color .21s;
  margin-bottom: 0;
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--secondary);
  border: 2px solid var(--primary);
}
.cookie-btn.accept:hover,
.cookie-btn.accept:focus {
  background: var(--accent);
  border-color: var(--accent);
}
.cookie-btn.reject {
  background: var(--secondary);
  color: var(--accent);
  border: 2px solid var(--accent);
}
.cookie-btn.reject:hover,
.cookie-btn.reject:focus {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent-dark);
}
.cookie-btn.settings {
  background: var(--accent);
  color: var(--white);
  border: 2px solid var(--accent);
}
.cookie-btn.settings:hover,
.cookie-btn.settings:focus {
  background: var(--primary);
  color: var(--secondary);
  border-color: var(--primary);
}

/* Modal Overlay */
.cookie-modal-overlay {
  position: fixed;
  z-index: 4010;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(44, 89, 67, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 0;
  transition: opacity 0.3s;
  visibility: hidden;
}
.cookie-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.cookie-modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 42px 0 rgba(44, 109, 168, 0.13);
  padding: 32px 30px 24px 30px;
  min-width: 330px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  z-index: 4012;
  animation: cookieModalIn 0.4s cubic-bezier(.6,-0.19,.21,1.07);
}
@keyframes cookieModalIn {
    from { transform: scale(0.86) translateY(40px); opacity: 0; }
    to { transform: scale(1.0) translateY(0); opacity: 1; }
}
.cookie-modal h2 {
  color: var(--primary);
  font-family: var(--font-display);
  margin-bottom: 5px;
  font-size: 1.2rem;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.cookie-category input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary);
  border-radius: 5px;
}
.cookie-category .cookie-always-on {
  color: var(--accent-dark);
  font-style: italic;
  font-size: 0.97rem;
  background: var(--grey-200);
  border-radius: var(--radius-sm);
  padding: 4px 7px;
  margin-left: 8px;
}
.cookie-modal .cookie-modal-buttons {
  display: flex;
  gap: 16px;
  margin-top: 14px;
}

/********************************
  10. Responsive Structure
*********************************/
@media (max-width: 900px) {
  .container {
    padding: 0 8px;
  }
  .feature-grid, .experience-grid, .content-grid, .faq-list, .team-list {
    gap: 12px;
  }
  .feature-grid > div, .experience-grid > div, .faq-list > div, .team-list > div {
    min-width: 160px;
    max-width: 99%;
    flex: 1 1 160px;
  }
}
@media (max-width: 768px) {
  html { font-size: 15px; }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.03rem; }
  .section {
    margin-bottom: 36px;
    padding: 20px 4px;
  }
  .hero .container { padding-top: 30px; padding-bottom: 38px; }
  .hero h1 { font-size: 1.36rem; }
  .hero h2 { font-size: 1.08rem; }
  .mobile-menu-toggle { right: 10px; top: 10px; }
  .footer-nav {
    gap: 8px;
    justify-content: center;
  }
}
@media (max-width: 650px) {
  .feature-grid,
  .experience-grid,
  .team-list,
  .faq-list,
  .content-grid,
  .highlighted-routes {
    flex-direction: column;
    gap: 19px;
    align-items: stretch;
  }
  .content-wrapper { gap: 11px; }
}
@media (max-width: 575px) {
  html { font-size: 14px; }
  .container { padding: 0 2px; }
  .card, .feature-grid > div, .experience-grid > div, .faq-list > div, .team-list > div {
    padding: 14px 8px 13px 8px;
  }
  .text-image-section {
    gap: 14px;
    flex-direction: column;
  }
  .cookie-modal { min-width: 100%; max-width: 100vw; padding: 16px 7px 12px 7px; }
}
@media (max-width: 420px) {
  .footer-nav { flex-direction: column; gap: 2px; align-items: center; }
}

/********************************
  11. Micro-Interactions & Effects
*********************************/
.card, .feature-item, .testimonial-card, .experience-grid > div {
  transition: box-shadow 0.23s, transform 0.18s;
}
.card:hover,
.feature-item:hover,
.team-list > div:hover,
.faq-list > div:hover,
.experience-grid > div:hover,
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(44, 109, 168, 0.16);
  transform: translateY(-3px) scale(1.014);
  border-color: var(--accent);
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--accent);
  border-radius: var(--radius-sm);
}

/********************************
  12. Utilities & Geometric Decorative Shapes
*********************************/
.geometric-shape {
  width: 50px;
  height: 50px;
  background: var(--accent);
  clip-path: polygon(50% 0, 100% 38%, 82% 100%, 18% 100%, 0 38%);
  opacity: .11;
  position: absolute;
  z-index: 1;
}
.section .geometric-shape {
  top: -30px;
  right: 35px;
}

/********************************
  13. Accessibility
*********************************/
:focus-visible {
  outline: 2.5px dashed var(--accent);
  outline-offset: 2px;
}

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