/* ==========================================================
   Ospita — stile generale
   ========================================================== */
:root {
  --c-cream: #ffffff;
  --c-cream-2: #f4f6f8;
  --c-dark: #14161a;
  --c-dark-soft: #5c626b;
  --c-accent: #c9702d;
  --c-accent-dark: #a85a20;
  --c-accent-light: #fbe8d6;
  --c-gold: #d4a24c;
  --c-line: #e6e8eb;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 20px 45px -20px rgba(20, 22, 26, 0.18);
  --font-display: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--c-dark);
  background: var(--c-cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, .display-font, .hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.text-accent { color: var(--c-accent) !important; }
.bg-cream { background: var(--c-cream) !important; }
.bg-cream-2 { background: var(--c-cream-2) !important; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent-dark);
  background: var(--c-accent-light);
  padding: 7px 16px;
  border-radius: 50px;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-accent);
  display: inline-block;
}

.btn-accent {
  background: var(--c-accent);
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  transition: all 0.25s ease;
  box-shadow: 0 12px 25px -10px rgba(201, 112, 45, 0.55);
}
.btn-accent:hover {
  background: var(--c-accent-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 30px -10px rgba(201, 112, 45, 0.6);
}

.btn-outline-dark-soft {
  border: 1.5px solid rgba(20, 22, 26, 0.2);
  color: var(--c-dark);
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.6);
  transition: all 0.25s ease;
}
.btn-outline-dark-soft:hover {
  border-color: var(--c-dark);
  background: #fff;
  color: var(--c-dark);
}

.btn-light-pill {
  background: #fff;
  color: var(--c-dark);
  border-radius: 50px;
  font-weight: 600;
  padding: 0.85rem 1.9rem;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-soft);
}
.btn-light-pill:hover { transform: translateY(-2px); color: var(--c-dark); }

/* ---------- STRISCIA SUPERIORE (riusabile su altri siti) ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
}
.top-bar {
  background: var(--c-dark);
  padding: 9px 0;
}
.top-bar .container { display: flex; align-items: center; justify-content: center; }
.top-bar h1,
.top-bar p {
  margin: 0;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
}
.top-bar a {
  color: #fb923c;
  font-weight: 700;
  text-decoration: none;
}
.top-bar a:hover { text-decoration: underline; }

/* ---------- NAVBAR ---------- */
.navbar {
  padding: 18px 0;
  transition: all 0.35s ease;
  background: var(--c-cream);
}
.navbar.scrolled {
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px -18px rgba(20, 22, 26, 0.3);
}
.navbar-brand {
  display: flex;
  align-items: center;
  padding: 0;
}
.navbar-brand img {
  height: 40px;
  width: auto;
  display: block;
}
.navbar-tagline {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--c-line);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--c-dark-soft);
  white-space: nowrap;
}
@media (max-width: 400px) {
  .navbar-tagline { display: none; }
}
.navbar .nav-link {
  font-weight: 500;
  color: var(--c-dark) !important;
  margin: 0 6px;
  position: relative;
}
.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width 0.25s ease;
}
.navbar .nav-link:hover::after { width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding-top: 145px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(100deg, rgba(15,17,20,0.8) 0%, rgba(15,17,20,0.55) 38%, rgba(15,17,20,0.2) 68%, rgba(15,17,20,0.05) 100%),
    url('../img/hero.jpg');
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-content { position: relative; z-index: 2; }
.hero .eyebrow { background: rgba(255,255,255,0.15); color: #fff; backdrop-filter: blur(6px); }
.hero .eyebrow::before { background: var(--c-gold); }
.hero-headline { font-size: 2.35rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.3px; color: #fff; }
.hero p.lead { color: rgba(255,255,255,0.88); font-size: 1.1rem; font-weight: 400; max-width: 680px; }
.text-gold { color: var(--c-gold) !important; font-weight: 600; }

/* ---------- FOTO NELLE SEZIONI (riuso su servizi, ecc.) ---------- */
.section-photo {
  position: relative;
  height: 420px;
}
.section-photo img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}
.section-photo .badge-float {
  position: absolute;
  bottom: -24px; left: 24px;
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 20px;
  box-shadow: var(--shadow-soft);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-photo .badge-float .icon-circle {
  width: 42px; height: 42px;
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

/* ---------- STATS STRIP ---------- */
.stats-strip {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-top: -70px;
  position: relative;
  z-index: 5;
  padding: 2.2rem 1rem;
  text-align: center;
}
.stats-strip .stat-num {
  display: block;
  width: 100%;
  text-align: center;
  font-family: var(--font-display);
  font-size: 2.0rem;
  color: var(--c-accent);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 6px;
}
.stats-strip .stat-label {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--c-dark-soft);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ---------- SECTION HEADER ---------- */
.section-pad { padding: 6.5rem 0; }
.section-title { max-width: 640px; }
.section-title h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.section-title p { color: var(--c-dark-soft); font-size: 1.05rem; }

/* ---------- FEATURE CARDS ---------- */
.feature-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.8rem;
  height: 100%;
  transition: all 0.3s ease;
  border: 1px solid var(--c-line);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
  border-color: transparent;
}
.feature-card .icon-box {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--c-accent-light);
  color: var(--c-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.15rem; }
.feature-card p { color: var(--c-dark-soft); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- TEMPLATE FILTER + CARDS ---------- */
.filter-pills .btn {
  border-radius: 50px;
  border: 1.5px solid var(--c-line);
  color: var(--c-dark-soft);
  font-weight: 500;
  font-size: 0.9rem;
  padding: 0.5rem 1.3rem;
  background: #fff;
  margin: 4px;
  transition: all 0.2s ease;
}
.filter-pills .btn.active,
.filter-pills .btn:hover {
  background: var(--c-dark);
  border-color: var(--c-dark);
  color: #fff;
}

.template-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
  height: 350px;
  cursor: pointer;
}
.template-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.template-card:hover img { transform: scale(1.08); }
.template-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20,22,26,0) 30%, rgba(20,22,26,0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.3rem;
  color: #fff;
}
.template-card .cat-tag {
  align-self: flex-start;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  border-radius: 50px;
  margin-bottom: auto;
}
.template-card h4 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.template-card p { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin-bottom: 10px; }
.template-card .view-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- STEPS ---------- */
.step-item { text-align: center; position: relative; }
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-dark);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.2rem;
}
.step-item h4 { font-size: 1.05rem; }
.step-item p { color: var(--c-dark-soft); font-size: 0.92rem; }

/* ---------- PRICING ---------- */
.price-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.6rem 2rem;
  height: 100%;
  border: 1.5px solid var(--c-line);
  transition: all 0.3s ease;
  position: relative;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.price-card.featured {
  background: var(--c-dark);
  color: #fff;
  border-color: var(--c-dark);
  transform: scale(1.04);
  box-shadow: 0 30px 60px -20px rgba(20,22,26,0.5);
}
.price-card.featured:hover { transform: scale(1.04) translateY(-6px); }
.price-card .plan-badge {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--c-accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 16px;
  border-radius: 50px;
  white-space: nowrap;
}
.price-card .plan-name { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--c-accent); font-weight: 600; }
.price-card.featured .plan-name { color: var(--c-gold); }
.price-card .plan-price { font-family: var(--font-display); font-size: 2.6rem; margin: 0.5rem 0 0; }
.price-card .plan-period { font-size: 0.85rem; color: var(--c-dark-soft); }
.price-card.featured .plan-period { color: rgba(255,255,255,0.6); }
.price-card .plan-desc { font-size: 0.9rem; color: var(--c-dark-soft); margin-bottom: 1.6rem; }
.price-card.featured .plan-desc { color: rgba(255,255,255,0.75); }
.price-card ul { list-style: none; padding: 0; margin: 0 0 2rem; }
.price-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-line);
}
.price-card.featured ul li { border-bottom-color: rgba(255,255,255,0.15); }
.price-card ul li i { color: var(--c-accent); margin-top: 3px; }
.price-card.featured ul li i { color: var(--c-gold); }
.price-card .btn-accent, .price-card .btn-light-pill { width: 100%; }

/* ---------- EXTRA SERVICES ---------- */
.addon-card {
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--c-line);
  padding: 1.6rem;
  height: 100%;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all 0.25s ease;
}
.addon-card:hover { border-color: var(--c-accent); box-shadow: var(--shadow-soft); }
.addon-card .icon-circle-sm {
  min-width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--c-cream-2);
  color: var(--c-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}
.addon-card h5 { font-size: 1rem; margin-bottom: 4px; }
.addon-card p { font-size: 0.87rem; color: var(--c-dark-soft); margin: 0; }

/* ---------- PMS / SOFTWARE SECTION ---------- */
.pms-section {
  background: #ffffff;
  color: var(--c-dark);
  border: 1.5px solid var(--c-line);
  box-shadow: var(--shadow-soft);
  border-radius: var(--radius-lg);
  padding: 4rem;
  position: relative;
  overflow: hidden;
}
.pms-section::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(201,112,45,0.08), transparent 70%);
  top: -150px; right: -150px;
}
.pms-section .eyebrow { background: var(--c-accent-light); color: var(--c-accent-dark); }
.pms-section .eyebrow::before { background: var(--c-accent); }
.pms-section h2 { color: var(--c-dark); }
.pms-feature {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px dashed var(--c-line);
}
.pms-feature i { color: var(--c-accent); font-size: 1.25rem; margin-top: 2px; }
.pms-feature h5 { font-size: 0.98rem; color: var(--c-dark); font-weight: 600; margin-bottom: 2px; }
.pms-feature p { font-size: 0.88rem; color: var(--c-dark-soft); margin: 0; }
.pms-mockup {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--c-line);
}

/* ---------- TESTIMONIALS ---------- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  height: 100%;
  border: 1px solid var(--c-line);
}
.testimonial-card .stars { color: var(--c-gold); margin-bottom: 1rem; letter-spacing: 3px; }
.testimonial-card p.quote { font-style: italic; color: var(--c-dark-soft); }
.testimonial-card .author { display: flex; align-items: center; gap: 12px; margin-top: 1.4rem; }
.testimonial-card .author img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.testimonial-card .author strong { display: block; font-size: 0.92rem; }
.testimonial-card .author span { font-size: 0.8rem; color: var(--c-dark-soft); }

/* ---------- FAQ ---------- */
.accordion-item { border: none; border-bottom: 1px solid var(--c-line); background: transparent; }
.accordion-button {
  background: transparent;
  font-weight: 600;
  font-family: var(--font-display);
  font-size: 1.05rem;
  padding: 1.3rem 0.4rem;
  box-shadow: none !important;
}
.accordion-button:not(.collapsed) { color: var(--c-accent-dark); background: transparent; }
.accordion-button::after { flex-shrink: 0; }
.accordion-body { padding: 0 0.4rem 1.4rem; color: var(--c-dark-soft); }

/* ---------- CTA / CONTACT ---------- */
.contact-section {
  background: var(--c-cream-2);
  border-radius: var(--radius-lg);
  padding: 4rem;
}
.contact-form .form-control {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--c-line);
  padding: 0.85rem 1.1rem;
  background: #fff;
}
.contact-form .form-control:focus {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 4px rgba(201,112,45,0.12);
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--c-dark);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 1.6rem;
}
footer h5 { color: #fff; }
.footer-logo { height: 42px; width: auto; }
footer a { color: rgba(255,255,255,0.65); text-decoration: none; }
footer a:hover { color: var(--c-gold); }
footer .social-icon {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s ease;
}
footer .social-icon:hover { background: var(--c-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.4rem; font-size: 0.85rem; }

/* ---------- MODAL PREVIEW ---------- */
.modal-content { border-radius: var(--radius-lg); border: none; overflow: hidden; }
.modal-preview-img { width: 100%; height: 340px; object-fit: cover; }

/* ---------- AOS-lite reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.7s cubic-bezier(.22,.9,.34,1); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- HONEYPOT (anti-spam) ---------- */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ---------- WHATSAPP FLOTTANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6);
  z-index: 999;
  transition: transform 0.25s ease;
  animation: wa-pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }

@keyframes wa-pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 576px) {
  .top-bar { padding: 7px 0; }
  .top-bar h1, .top-bar p { font-size: 0.68rem; line-height: 1.3; }
}

@media (max-width: 991px) {
  .hero { min-height: auto; padding: 185px 0 70px; }
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(15,17,20,0.55) 0%, rgba(15,17,20,0.75) 100%),
      url('../img/hero.jpg');
  }
  .section-photo { height: 300px; margin-top: 1.5rem; }
  .section-photo .badge-float { bottom: 14px; left: 14px; padding: 10px 14px; }
  .pms-section { padding: 2.5rem 1.5rem; }
  .contact-section { padding: 2.5rem 1.5rem; }
  .price-card.featured { transform: scale(1); }
  .whatsapp-float { width: 54px; height: 54px; font-size: 1.6rem; bottom: 18px; right: 18px; }
}

/* Large Display Layout Overrides */
@media (min-width: 1200px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl {
    max-width: 1320px;
  }
}
@media (min-width: 1400px) {
  .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
    max-width: 1400px;
  }
}

.hover-lift {
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -10px rgba(20, 22, 26, 0.12) !important;
  border-color: var(--c-accent) !important;
}


