<!-- File: assets/css/styles.css -->
/* Minimal system: pure CSS, responsive, accessible focus states. */
:root{
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --text: #0f172a;
  --muted: #5b6474;
  --line: #e6e9f0;
  --brand: #0b3a6a;
  --brand-2: #0b6aa6;

  --radius: 14px;
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.08);

  --container: 1120px;
  --gutter: 18px;

  --h1: clamp(1.4rem, 2.2vw, 2.1rem);
  --h2: clamp(1.2rem, 1.6vw, 1.6rem);
  --h3: 1.05rem;
  --p: 0.98rem;
  --lh: 1.6;
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }
body{
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: var(--lh);
}

img{ max-width: 100%; height: auto; display: block; }
a{ color: inherit; text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

.skip-link{
  position: absolute;
  left: -9999px;
  top: 10px;
  background: var(--text);
  color: #fff;
  padding: 10px 12px;
  border-radius: 10px;
  z-index: 9999;
}
.skip-link:focus{ left: 10px; }

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;clip:rect(0,0,0,0);
  white-space:nowrap;border:0;
}

/* Header */
.site-header{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner{
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand-mark{
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand-text{ display:flex; flex-direction:column; line-height: 1.1; }
.brand-title{ font-weight: 800; letter-spacing: 0.4px; }
.brand-subtitle{ font-size: 0.88rem; color: var(--muted); }

.nav{
  display:flex;
  justify-content: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}
.nav a{
  padding: 8px 8px;
  border-radius: 10px;
}
.nav a:focus-visible,
.search input:focus-visible,
.search button:focus-visible,
.btn:focus-visible,
.back-to-top:focus-visible{
  outline: 3px solid rgba(11, 106, 166, 0.35);
  outline-offset: 2px;
}
.search{
  display: none;
}

/* Hero */
.hero{ position: relative; }
.hero-media{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-media img{
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
}
.hero-badge{
  position:absolute;
  right: 8%;
  top: 22%;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, #1f3b5b, #0b6aa6);
  box-shadow: var(--shadow);
  display:grid;
  place-items:center;
  color:#fff;
  font-weight: 800;
  letter-spacing: 1px;
}
.hero-curve{
  height: 60px;
  background:
    radial-gradient(110% 100% at 50% 0%, rgba(11,58,106,0.18) 0%, rgba(11,58,106,0.0) 60%),
    linear-gradient(#fff, #fff);
  border-bottom: 1px solid var(--line);
}
.hero-content{
  padding: 22px 0 10px;
  text-align: center;
}
.hero-title{
  margin: 0;
  font-size: var(--h1);
  font-weight: 800;
  color: var(--brand-2);
}
.hero-lead{
  margin: 10px auto 0;
  max-width: 880px;
  color: var(--muted);
  font-size: var(--p);
}
.divider{
  width: min(720px, 92%);
  height: 1px;
  background: var(--line);
  margin: 18px auto 0;
}

/* Sections */
.section{ padding: 44px 0; }
.section-muted{ background: var(--bg-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-title{
  text-align:center;
  font-size: var(--h2);
  margin: 0 0 18px;
  font-weight: 800;
}
.center-note{ text-align:center; color: var(--muted); margin: 0 0 18px; }

.cols-3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service{
  padding: 14px 8px;
  text-align:center;
}
.service h2{
  margin: 0 0 10px;
  font-size: 0.98rem;
  font-weight: 800;
  color: #1b2a41;
}
.service p{ margin: 0; color: var(--muted); font-size: 0.95rem; }

/* News */
.news-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.news-card{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow:hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.news-card img{ aspect-ratio: 5/3; object-fit: cover; }
.news-card h3{
  margin: 12px 12px 6px;
  font-size: 0.96rem;
}
.news-card p{
  margin: 0 12px 14px;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Featured article */
.article{
  max-width: 980px;
}
.article-title{
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  margin: 0 0 8px;
  font-weight: 900;
}
.article-meta{ margin: 0 0 14px; color: var(--muted); }
.article-body p{ margin: 0 0 12px; color: #223048; }
.article-cta{ display:flex; justify-content:center; padding-top: 10px; }

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 8px;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-radius: 10px;
  font-weight: 800;
  letter-spacing: 0.2px;
  border: 1px solid rgba(0,0,0,0);
  text-decoration: none;
}
.btn:hover{ text-decoration:none; filter: brightness(1.02); }
.btn-outline{
  background: #fff;
  color: var(--brand);
  border-color: var(--line);
}

/* Reviews */
.reviews{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.review-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.stars{ font-weight: 900; }
.review-card p{ margin: 10px 0; color: var(--muted); }
.reviewer{ font-weight: 700; }

/* Booking placeholder */
.booking-placeholder{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}
.booking-head{
  display:flex;
  gap: 12px;
  align-items:center;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.booking-avatar{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color:#fff;
  display:grid;
  place-items:center;
  font-weight: 900;
}
.booking-body{ padding: 14px; }
.booking-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.booking-box{
  border: 1px dashed #cfd6e4;
  border-radius: 12px;
  padding: 16px;
  min-height: 140px;
  display:grid;
  place-items:center;
}
.muted{ color: var(--muted); }

/* Contact */
.contact-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.contact-card{
  background:#fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.article-contact-cta{
  margin-top: 34px;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(176,138,79,0.35);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(16,35,63,0.96), rgba(29,48,78,0.94));
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.article-contact-cta h2{
  margin-top: 0;
  color: #fff;
}

.article-contact-cta p{
  color: rgba(255,255,255,0.84);
}

.article-contact-cta a{
  color: #fff;
}

.article-contact-actions,
.article-index-cta{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.article-contact-details{
  margin-bottom: 0;
  font-size: 0.95rem;
}

/* Footer */
.site-footer{
  background: #0b1220;
  color: #e7eaf0;
  padding: 34px 0 18px;
}
.footer-inner{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.site-footer h3{ margin: 0 0 10px; color: #fff; font-size: 1rem; }
.footer-links{ margin: 0; padding: 0; list-style: none; }
.footer-links li{ margin: 6px 0; }
.site-footer a{ color: #e7eaf0; }
.footer-bottom{
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(230,233,240,0.12);
  display:flex;
  justify-content: space-between;
  align-items:center;
}
.site-footer .muted{ color: rgba(231,234,240,0.72); }

/* Back-to-top */
.back-to-top{
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  display:grid;
  place-items:center;
  box-shadow: var(--shadow);
}
.back-to-top:hover{ text-decoration:none; }

/* Responsive */
@media (max-width: 980px){
  .header-inner{ grid-template-columns: 1fr; }
  .nav{ justify-content: flex-start; }
  .cols-3{ grid-template-columns: 1fr; }
  .news-grid{ grid-template-columns: repeat(2, 1fr); }
  .reviews{ grid-template-columns: 1fr; }
  .booking-grid{ grid-template-columns: 1fr; }
  .contact-grid{ grid-template-columns: 1fr; }
  .footer-inner{ grid-template-columns: 1fr; }
  .footer-bottom{ flex-direction: column; gap: 10px; align-items:flex-start; }
}
@media (max-width: 560px){
  .news-grid{ grid-template-columns: 1fr; }
  .hero-badge{ display:none; }
}
.hero-badge-img{
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-badge{
  position: absolute;
  right: 8%;
  top: 22%;
  width: 96px;
  height: 96px;
  border-radius: 18px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, #1f3b5b, #0b6aa6);
  box-shadow: var(--shadow);
  overflow: hidden; /* critical: stops overflow */
  display: grid;
  place-items: center;
  padding: 12px; /* gives breathing room */
}

.hero-badge-img{
  width: 100%;
  height: 100%;
  object-fit: contain; /* keeps full icon visible */
  display: block;
}

.booking-embed {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.booking-embed iframe {
  display: block;
  width: 100%;
  height: 700px;
  border: 0;
}

.booking-fallback { margin-top: 14px; display:flex; justify-content:center; }

/* Testimonials Auto-Slider */
.testimonials {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 20px 0;
}

.testimonials-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 0 24px;
  animation: slide-left 60s linear infinite;
}

.testimonials-track:hover {
  animation-play-state: paused;
}

.testimonial-card {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 24px;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.t-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: var(--text);
  margin: 0 0 12px 0;
  line-height: 1.5;
  flex-grow: 1;
}

.testimonial-card .reviewer {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

@keyframes slide-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(calc(-50% - 12px));
  }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .testimonials-track {
    animation: none;
    width: auto;
    overflow-x: auto;
    scroll-behavior: smooth;
  }
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 280px;
    padding: 16px;
  }
  
  .t-avatar {
    width: 64px;
    height: 64px;
  }
  
  .testimonial-card p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .testimonial-card {
    flex: 0 0 240px;
    padding: 12px;
  }
  
  .t-avatar {
    width: 56px;
    height: 56px;
    margin-bottom: 12px;
  }
  
  .testimonial-card p {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }
}

/* File: assets/css/styles.css (ADD THESE STYLES AT THE END) */

.page-hero{ position: relative; }
.page-hero-media{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.page-hero-media img{
  width: 100%;
  height: clamp(220px, 34vw, 440px);
  object-fit: cover;
}
.page-hero-badge{
  position:absolute;
  right: 6%;
  top: 28%;
  width: 92px;
  height: 92px;
  border-radius: 18px;
  transform: rotate(18deg);
  background: linear-gradient(135deg, #1f3b5b, #0b6aa6);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
}
.page-hero-curve{
  height: 60px;
  background:
    radial-gradient(110% 100% at 50% 0%, rgba(11,58,106,0.18) 0%, rgba(11,58,106,0.0) 60%),
    linear-gradient(#fff, #fff);
  border-bottom: 1px solid var(--line);
}

.studio-layout{
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  align-items: start;
}
.studio-title{
  margin: 0 0 10px;
  font-size: clamp(1.25rem, 2vw, 1.9rem);
  font-weight: 900;
}
.studio-intro{ margin: 0 0 18px; }
.studio-sections h2{
  margin: 18px 0 8px;
  font-size: 1.02rem;
  font-weight: 900;
}
.studio-sections p{ margin: 0 0 12px; color: #223048; }
.studio-list{
  margin: 10px 0 0;
  padding-left: 18px;
  color: #223048;
}
.studio-list li{ margin: 8px 0; }
.studio-cta-note{ margin-top: 16px; }

.portrait-card{
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
.portrait{
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}
.portrait-meta{
  padding: 14px;
}
.portrait-name{
  font-weight: 900;
  margin-bottom: 6px;
}
.portrait-links{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.share-row{
  margin-top: 18px;
  display: flex;
  gap: 8px;
}
.share-btn{
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
}

@media (max-width: 980px){
  .studio-layout{ grid-template-columns: 1fr; }
  .page-hero-badge{ display:none; }
}

/* Contact page styles */
.contact-layout{
  padding: 40px 0;
}
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.contact-form-col h2,
.contact-info-col h2{
  margin: 0 0 20px;
  font-size: 1.5rem;
  font-weight: 700;
}
.form-row{
  margin-bottom: 16px;
}
.form-row label{
  display: block;
  margin-bottom: 4px;
  font-weight: 600;
}
.form-row input,
.form-row select,
.form-row textarea{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
}
.form-row textarea{
  resize: vertical;
}
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.form-status{
  margin-top: 10px;
  color: var(--muted);
}
.form-status.error{
  color: #b42318;
}
.form-status.success{
  color: #067647;
}
.btn:disabled{
  opacity: 0.6;
  cursor: not-allowed;
}
.cta-bar{
  background: var(--bg-muted);
  padding: 20px 0;
  text-align: center;
}

/* Responsive for contact */
@media (max-width: 768px){
  .contact-grid{
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .thankyou-buttons{
    flex-direction: column;
    align-items: center;
  }
}

/* Thank you page styles */
.thankyou-section{
  padding: 80px 0;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.thankyou-card{
  max-width: 720px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
  padding: 34px 28px;
  text-align: center;
}
.thankyou-icon{
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  font-size: 2.4rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.thankyou-card h1{
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 16px;
  color: var(--brand-2);
  font-weight: 900;
}
.thankyou-card p{
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.6;
}
.thankyou-redirect-msg{
  font-size: 0.95rem;
  color: #999;
  margin: 12px 0 24px !important;
}
.thankyou-buttons{
  margin-top: 28px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px){
  .thankyou-card{
    padding: 24px 20px;
  }
  .thankyou-icon{
    width: 72px;
    height: 72px;
    font-size: 2rem;
    margin-bottom: 20px;
  }
  .thankyou-buttons{
    flex-direction: column;
    gap: 12px;
  }
  .thankyou-buttons .btn{
    width: 100%;
  }
}

/* Page styles for domiciliazioni.html */
.page-title-large{
  padding: 40px 0;
  text-align: center;
}
.page-title-large h1{
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 900;
  color: var(--brand-2);
  margin: 0;
}
.page-content{
  padding: 40px 0;
}
.page-content .container{
  max-width: 800px;
}
.page-content p{
  margin-bottom: 1.5em;
}
.cta-row{
  padding: 40px 0;
  text-align: center;
}
.cta-row .btn{
  font-size: 1.1rem;
  padding: 14px 24px;
}

/* Safe overrides to prevent form clipping */
.contact-layout,
.contact-grid,
.contact-form-col,
#form,
#contact-form {
  height: auto;
  max-height: none;
  overflow: visible;
}
#contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.form-row textarea {
  min-height: 160px;
}

#contact-form > .btn{ align-self:center; margin-top:6px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); }

/* --- FORCE submit button + textarea to be visible on contatti page --- */
#contact-form textarea{
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 180px !important;
}

#contact-form button[type="submit"]{
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: static !important;
  align-self: center !important; /* center */
  margin-top: 12px !important;
  z-index: 1 !important;
}

/* make sure no parent is clipping */
.contact-layout,
.contact-grid,
.contact-form-col,
#form,
#contact-form{
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
}

.contact-form-col{
  background: #fff;
  border-radius: var(--radius);
  padding: 14px;
}

/* NEWS PAGE STYLES */

/* News Hero Title */
.news-hero-title{
  padding: 40px 0 30px;
  text-align: center;
}
.news-hero-title h1{
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 900;
  color: var(--brand-2);
  margin: 0 0 8px;
}
.news-hero-title p{
  font-size: 1rem;
  color: var(--muted);
  margin: 0;
}

/* News Filters */
.news-filters-section{
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-muted);
  padding: 16px 0;
}
.news-filters{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-label{
  font-weight: 600;
  color: var(--text);
  font-size: 0.95rem;
}
.filter-btn{
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  cursor: pointer;
  color: var(--text);
  font-weight: 500;
  transition: all 0.2s ease;
}
.filter-btn:hover{
  border-color: var(--brand-2);
  color: var(--brand-2);
  background: rgba(11, 106, 166, 0.05);
}
.filter-btn:focus-visible{
  outline: 3px solid rgba(11, 106, 166, 0.35);
  outline-offset: 2px;
}
.filter-reset{
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}
.filter-reset:hover{
  text-decoration: underline;
}

/* News Grid Section */
.news-grid-section{
  padding: 40px 0;
}
.news-grid-3{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card{
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: all 0.3s ease;
}
.news-card:hover{
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.news-card-image{
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.news-card-image img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .news-card-image img{
  transform: scale(1.04);
}
.news-card-body{
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.news-date{
  font-size: 0.85rem;
  color: var(--brand-2);
  font-weight: 600;
  display: block;
  margin-bottom: 8px;
}
.news-card h2{
  margin: 0 0 10px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
}
.news-card h2 a{
  color: var(--text);
  text-decoration: none;
}
.news-card h2 a:hover{
  color: var(--brand-2);
}
.news-excerpt{
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  flex-grow: 1;
}
.news-card-footer{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.news-meta{
  display: flex;
  gap: 16px;
  font-size: 0.9rem;
}
.news-heart,
.news-comments{
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.news-read-more{
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.news-read-more:hover{
  text-decoration: underline;
}

/* Pagination */
.news-pagination-section{
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.pager{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.page{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}
.page:hover{
  border-color: var(--brand-2);
  color: var(--brand-2);
  background: rgba(11, 106, 166, 0.05);
}
.page:focus-visible{
  outline: 3px solid rgba(11, 106, 166, 0.35);
  outline-offset: 2px;
}
.page.active{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
  border-color: var(--brand-2);
}
.page-ellipsis{
  color: var(--muted);
  padding: 0 4px;
}
.next-page{
  color: var(--brand-2);
  text-decoration: none;
  font-weight: 600;
  margin-left: 8px;
}
.next-page:hover{
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px){
  .news-grid-3{
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .news-filters{
    gap: 10px;
  }
  .filter-btn,
  .filter-label{
    font-size: 0.85rem;
  }
}
@media (max-width: 640px){
  .news-grid-3{
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .news-hero-title{
    padding: 30px 0 20px;
  }
  .news-hero-title h1{
    font-size: 1.8rem;
  }
  .news-filters{
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .filter-btn,
  .filter-label{
    font-size: 0.85rem;
  }
  .pager{
    gap: 6px;
  }
  .page{
    min-width: 36px;
    height: 36px;
    font-size: 0.85rem;
  }
}

/* ===== ARTICLE PAGE STYLES ===== */

.article-content-section {
  padding: 60px 0;
}

.article-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.article-back {
  margin-bottom: 40px;
}

.back-link {
  color: var(--brand);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.back-link:hover {
  text-decoration: none;
}

.article-header {
  margin-bottom: 40px;
  text-align: center;
}

.article-title-display {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--text);
  margin: 0 0 20px 0;
  line-height: 1.2;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 0.95rem;
  color: var(--muted);
}

.article-author {
  font-weight: 500;
  color: var(--brand);
}

.article-date {
  color: var(--muted);
}

.article-featured-image {
  margin: 40px 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

.article-body {
  font-size: var(--p);
  line-height: var(--lh);
  color: var(--text);
}

.article-body h1,
.article-body h2,
.article-body h3,
.article-body h4,
.article-body h5,
.article-body h6 {
  color: var(--text);
  margin: 2rem 0 1rem 0;
  font-weight: 600;
}

.article-body h1 {
  font-size: 1.8rem;
}

.article-body h2 {
  font-size: 1.5rem;
}

.article-body h3 {
  font-size: 1.3rem;
}

.article-body p {
  margin: 1.5rem 0;
}

.article-body ul,
.article-body ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.article-body li {
  margin: 0.5rem 0;
}

.article-body blockquote {
  border-left: 4px solid var(--brand);
  padding-left: 20px;
  margin: 2rem 0;
  font-style: italic;
  color: var(--muted);
  background: var(--bg-muted);
  padding: 20px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 2rem 0;
  box-shadow: var(--shadow);
}

.article-body code {
  background: var(--bg-muted);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 0.9em;
}

.article-body pre {
  background: var(--bg-muted);
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin: 2rem 0;
}

.article-body pre code {
  background: none;
  padding: 0;
}

.related-posts-section {
  padding: 80px 0;
  background: var(--bg-muted);
}

.related-posts-section h2 {
  text-align: center;
  font-size: var(--h2);
  margin-bottom: 40px;
  color: var(--text);
}

.article-error {
  text-align: center;
  padding: 60px 0;
}

.article-error h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--text);
}

.article-error p {
  color: var(--muted);
  margin-bottom: 30px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .article-content {
    padding: 0 20px;
  }

  .article-meta {
    flex-direction: column;
    gap: 10px;
  }

  .article-title-display {
    font-size: 2rem;
  }

  .article-body {
    font-size: 1rem;
  }
}

@media (max-width: 560px) {
  .article-content-section {
    padding: 40px 0;
  }

  .article-back {
    margin-bottom: 30px;
  }

  .article-header {
    margin-bottom: 30px;
  }

  .article-title-display {
    font-size: 1.8rem;
  }

  .related-posts-section {
    padding: 60px 0;
  }
}

/* Premium visual polish: typography, rhythm, cards, and motion */
:root{
  --bg: #fbfaf7;
  --bg-muted: #f3efe8;
  --text: #18202d;
  --muted: #626b78;
  --line: #e2d9ca;
  --brand: #10233f;
  --brand-2: #284d76;
  --accent: #b08a4f;
  --accent-soft: rgba(176, 138, 79, 0.16);
  --radius: 10px;
  --shadow: 0 18px 45px rgba(16, 35, 63, 0.10);
  --shadow-soft: 0 10px 28px rgba(16, 35, 63, 0.07);
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --h1: clamp(2.1rem, 4.8vw, 4.65rem);
  --h2: clamp(1.65rem, 3vw, 2.65rem);
  --h3: clamp(1.12rem, 1.6vw, 1.35rem);
  --p: 1.02rem;
  --lh: 1.75;
}

html{
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body{
  font-family: var(--font-sans);
  background:
    linear-gradient(180deg, rgba(251,250,247,0.94), rgba(251,250,247,1)),
    radial-gradient(circle at 18% 0%, rgba(176,138,79,0.12), transparent 34%);
  letter-spacing: 0;
}

h1,
h2,
h3,
.hero-title,
.section-title,
.article-title,
.studio-title,
.page-title-large h1,
.news-hero-title h1,
.thankyou-card h1,
.article-title-display,
.article-header h1{
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.12;
  color: var(--brand);
}

p{
  line-height: var(--lh);
}

a,
.btn,
.news-card,
.service,
.testimonial-card,
.contact-card,
.portrait-card,
.filter-btn,
.page,
.back-to-top{
  transition: color .22s ease, background-color .22s ease, border-color .22s ease, box-shadow .22s ease, transform .22s ease, opacity .22s ease;
}

a:hover{
  color: var(--brand-2);
  text-decoration-color: var(--accent);
}

.site-header{
  background: rgba(251,250,247,0.88);
  border-bottom: 1px solid rgba(226,217,202,0.78);
  box-shadow: 0 10px 26px rgba(16,35,63,0.04);
}

.header-inner{
  padding: 14px 0;
}

.brand-logo{
  max-height: 58px;
  width: auto;
}

.nav{
  gap: 8px;
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav a{
  border-radius: 999px;
  color: rgba(24,32,45,0.78);
  padding: 9px 12px;
}

.nav a:hover,
.nav a[aria-current="page"]{
  background: rgba(16,35,63,0.06);
  color: var(--brand);
  text-decoration: none;
}

.hero-media,
.page-hero-media{
  border-bottom: 0;
}

.hero-media::after,
.page-hero-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,35,63,0.12), rgba(16,35,63,0.38)),
    linear-gradient(90deg, rgba(16,35,63,0.40), transparent 48%);
  pointer-events: none;
}

.hero-media img,
.page-hero-media img{
  height: clamp(280px, 48vw, 560px);
  filter: saturate(0.92) contrast(1.04);
}

.hero-curve,
.page-hero-curve{
  height: 72px;
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(176,138,79,0.24), rgba(176,138,79,0) 62%),
    linear-gradient(180deg, #fbfaf7, #fbfaf7);
  border-bottom: 1px solid var(--line);
}

.hero-content{
  max-width: 980px;
  padding: 34px 0 16px;
}

.hero-title{
  color: var(--brand);
}

.hero-lead,
.studio-intro,
.page-content p,
.article-body p{
  max-width: 72ch;
  color: #394352;
}

.hero-lead{
  font-size: clamp(1rem, 1.35vw, 1.18rem);
}

.divider{
  width: min(220px, 48%);
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  margin-top: 24px;
}

.section,
.page-content,
.contact-layout,
.news-grid-section{
  padding: clamp(52px, 7vw, 96px) 0;
}

.section-title,
.news-hero-title h1,
.page-title-large h1{
  margin-bottom: 18px;
}

.section-title::after,
.news-hero-title h1::after,
.page-title-large h1::after,
.contact-form-col h2::after,
.contact-info-col h2::after{
  content: "";
  display: block;
  width: 58px;
  height: 1px;
  margin: 14px auto 0;
  background: var(--accent);
}

.contact-form-col h2::after,
.contact-info-col h2::after{
  margin-left: 0;
  margin-right: 0;
}

.section-muted,
.news-filters-section,
.cta-bar,
.related-posts-section{
  background:
    linear-gradient(180deg, rgba(243,239,232,0.95), rgba(248,245,240,0.95));
  border-color: var(--line);
}

.service,
.contact-form-col,
.contact-info-col,
.contact-card,
.portrait-card,
.booking-embed,
.thankyou-card{
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(226,217,202,0.9);
  box-shadow: var(--shadow-soft);
}

.service{
  padding: 30px 24px;
  border-radius: var(--radius);
}

.service:hover,
.news-card:hover,
.testimonial-card:hover,
.portrait-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service h2,
.news-card h2,
.news-card h3,
.studio-sections h2,
.contact-form-col h2,
.contact-info-col h2{
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--brand);
}

.service h2{
  font-size: 1.24rem;
}

.news-card,
.testimonial-card{
  border-color: rgba(226,217,202,0.9);
  box-shadow: var(--shadow-soft);
}

.news-card-image img,
.news-card img{
  filter: saturate(0.9) contrast(1.03);
}

.news-date,
.news-read-more,
.filter-reset,
.article-author,
.back-link{
  color: var(--brand-2);
}

.btn,
.page.active,
.thankyou-icon{
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: rgba(176,138,79,0.42);
  box-shadow: 0 14px 26px rgba(16,35,63,0.18);
}

.btn{
  min-height: 46px;
  border-radius: 999px;
  padding: 13px 22px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(16,35,63,0.24);
}

.btn-outline,
.filter-btn,
.page,
.share-btn{
  background: rgba(255,255,255,0.82);
  color: var(--brand);
  border-color: var(--line);
}

.form-row input,
.form-row select,
.form-row textarea{
  background: rgba(255,255,255,0.9);
  border-color: var(--line);
  border-radius: 8px;
  font-family: var(--font-sans);
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  outline: none;
}

.site-footer{
  background:
    linear-gradient(135deg, #0d1728, #10233f);
  border-top: 1px solid rgba(176,138,79,0.32);
}

.back-to-top{
  border-radius: 999px;
  color: var(--brand);
}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px){
  :root{
    --h1: clamp(2rem, 10vw, 3rem);
    --h2: clamp(1.55rem, 7vw, 2.1rem);
  }

  .header-inner{
    gap: 10px;
  }

  .nav{
    gap: 4px;
    font-size: 0.76rem;
  }

  .nav a{
    padding: 8px 9px;
  }

  .service{
    padding: 24px 18px;
  }
}

/* Cinematic editorial refinement */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(16,35,63,0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16,35,63,0.025) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.55), transparent 70%);
}

.hero{
  background:
    linear-gradient(180deg, #fbfaf7 0%, #f6f1e8 100%);
}

.page-hero{
  background: #f6f1e8;
}

.hero-media img,
.page-hero-media img{
  transform-origin: center;
  animation: cinematic-image-settle 1200ms ease-out both;
}

.hero-content,
.section > .container,
.contact-layout > .container,
.news-grid-section > .container,
.article-content-section > .container,
.related-posts-section > .container,
.page-content > .container{
  animation: cinematic-rise 720ms ease-out both;
}

.cols-3,
.news-grid,
.news-grid-3,
.reviews,
.studio-layout,
.contact-grid{
  align-items: stretch;
}

.article-content,
.page-content .container,
.studio-layout{
  max-width: 1080px;
}

.article-body,
.studio-sections,
.page-content{
  font-size: 1.04rem;
}

.article-body h2,
.studio-sections h2{
  padding-top: 0.35rem;
}

.article-featured-image,
.portrait-card,
.news-card-image,
.hero-media,
.page-hero-media{
  position: relative;
}

.article-featured-image::after,
.portrait-card::after,
.news-card-image::after{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22), inset 0 -70px 90px rgba(16,35,63,0.12);
}

.testimonial-card{
  justify-content: space-between;
}

.testimonial-card p{
  font-family: var(--font-serif);
  color: #263241;
}

.footer-inner{
  border-top: 1px solid rgba(176,138,79,0.24);
  padding-top: 28px;
}

@keyframes cinematic-rise{
  from{
    opacity: 0;
    transform: translateY(18px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cinematic-image-settle{
  from{
    opacity: 0.82;
    transform: scale(1.035);
  }
  to{
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce){
  .hero-media img,
  .page-hero-media img,
  .hero-content,
  .section > .container,
  .contact-layout > .container,
  .news-grid-section > .container,
  .article-content-section > .container,
  .related-posts-section > .container,
  .page-content > .container{
    animation: none;
  }
}

/* Targeted homepage refinements */
.hero{
  padding-bottom: 34px;
}

.hero-media{
  max-width: min(1420px, calc(100% - 36px));
  margin: 18px auto 0;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 24px 70px rgba(16,35,63,0.13);
}

.hero-media::after{
  background:
    linear-gradient(180deg, rgba(251,250,247,0.08), rgba(251,250,247,0.30)),
    linear-gradient(90deg, rgba(16,35,63,0.18), transparent 52%);
}

.hero-media img{
  height: clamp(300px, 43vw, 540px);
}

.hero-curve{
  height: 38px;
  background: linear-gradient(180deg, rgba(251,250,247,0), #fbfaf7);
  border-bottom: 0;
}

.hero-content{
  position: relative;
  z-index: 2;
  margin-top: -92px;
  padding: clamp(28px, 4vw, 46px);
  background: rgba(251,250,247,0.92);
  border: 1px solid rgba(226,217,202,0.95);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(16,35,63,0.12);
  backdrop-filter: blur(10px);
}

.hero-title{
  color: #10233f;
  text-wrap: balance;
}

.hero-lead{
  color: #344052;
}

.strategy-section{
  position: relative;
  overflow: hidden;
}

.strategy-section::before{
  content: "";
  position: absolute;
  inset: 10% auto auto 4%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(176,138,79,0.20);
  transform: rotate(35deg);
  pointer-events: none;
}

.strategy-layout{
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  max-width: 1180px;
}

.strategy-copy{
  min-width: 0;
}

.strategy-copy .article-body p{
  max-width: 68ch;
}

.strategy-copy .article-cta{
  justify-content: flex-start;
  padding-top: 16px;
}

.strategy-media{
  position: relative;
  min-height: 460px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(16,35,63,0.16);
}

.strategy-media::before{
  content: "";
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.42);
  pointer-events: none;
}

.strategy-media::after{
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(16,35,63,0.04), rgba(16,35,63,0.32)),
    radial-gradient(circle at 20% 12%, rgba(176,138,79,0.20), transparent 40%);
  pointer-events: none;
}

.strategy-media img{
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  filter: saturate(0.84) contrast(1.04);
}

.testimonials{
  overflow: hidden;
}

.testimonials-track{
  gap: 24px;
  will-change: transform;
  animation: testimonial-loop 76s linear infinite;
}

.testimonial-card{
  flex: 0 0 clamp(280px, 28vw, 360px);
}

@keyframes testimonial-loop{
  from{
    transform: translate3d(0, 0, 0);
  }
  to{
    transform: translate3d(-50%, 0, 0);
  }
}

@media (hover: hover){
  .testimonials-track:hover{
    animation-play-state: paused;
  }
}

@media (max-width: 820px){
  .hero-media{
    max-width: calc(100% - 24px);
    margin-top: 12px;
  }

  .hero-content{
    margin-top: -54px;
    padding: 26px 20px;
  }

  .strategy-layout{
    grid-template-columns: 1fr;
  }

  .strategy-media,
  .strategy-media img{
    min-height: 320px;
  }

  .strategy-copy .article-cta{
    justify-content: center;
  }
}

@media (max-width: 640px){
  .testimonials{
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .testimonials-track{
    animation-duration: 96s;
  }

  .testimonial-card{
    scroll-snap-align: center;
  }
}

.article-body .article-contact-cta{
  margin: 0 0 34px;
  color: #fff;
}

.article-body .article-contact-cta h2{
  color: #fff;
}

.article-body .article-contact-cta p,
.article-body .article-contact-cta .article-contact-details{
  color: rgba(255,255,255,0.86);
}

.article-body .article-contact-cta a{
  color: #fff;
}

.article-body .article-contact-cta .btn{
  color: #fff;
}

.article-body .article-contact-cta .btn-outline{
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.72);
  color: #fff;
}
