:root {
  --sg-bg: #f7f1e8;
  --sg-bg-soft: #fffaf1;
  --sg-surface: #ffffff;
  --sg-primary: #173f3f;
  --sg-primary-dark: #0f2e2e;
  --sg-secondary: #b9853b;
  --sg-accent: #d9a441;
  --sg-text: #252525;
  --sg-muted: #6f6a62;
  --sg-border: rgba(23, 63, 63, 0.13);
  --sg-shadow: 0 22px 60px rgba(23, 63, 63, 0.12);
  --sg-radius: 1.4rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sg-bg);
  color: var(--sg-text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
}

img {
  max-width: 100%;
}

h1,
h2,
h3,
h4,
h5,
.sg-serif {
  color: var(--sg-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.12;
}

h1 {
  letter-spacing: 0;
}

h2 {
  letter-spacing: 0;
}

p {
  color: var(--sg-muted);
}

a {
  color: var(--sg-primary);
}

a:hover {
  color: var(--sg-secondary);
}

.sg-navbar {
  background: rgba(247, 241, 232, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sg-border);
}

.navbar-brand {
  color: var(--sg-primary) !important;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0;
}

.navbar-brand span {
  display: block;
  color: var(--sg-muted);
  font-family: "Inter", sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-link {
  color: rgba(37, 37, 37, 0.78) !important;
  font-weight: 600;
}

.nav-link:hover,
.nav-link.active {
  color: var(--sg-primary) !important;
}

.dropdown-menu {
  border: 1px solid var(--sg-border);
  border-radius: 1rem;
  box-shadow: var(--sg-shadow);
}

.btn {
  border-radius: 999px;
  font-weight: 700;
  padding: 0.78rem 1.35rem;
}

.btn-primary {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--sg-primary-dark);
  border-color: var(--sg-primary-dark);
}

.btn-outline-primary {
  color: var(--sg-primary);
  border-color: var(--sg-primary);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
}

.btn-accent {
  background: var(--sg-accent);
  border-color: var(--sg-accent);
  color: #1f1a11;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--sg-secondary);
  border-color: var(--sg-secondary);
  color: #fff;
}

.sg-eyebrow,
.sg-kicker {
  color: var(--sg-secondary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sg-hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: 7.5rem 0 5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.24), transparent 34%),
    radial-gradient(circle at bottom left, rgba(23, 63, 63, 0.13), transparent 28%),
    linear-gradient(135deg, #f7f1e8 0%, #fffaf1 100%);
}

.sg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(23, 63, 63, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 63, 63, 0.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.5), transparent 75%);
  pointer-events: none;
}

.sg-hero .container {
  position: relative;
  z-index: 1;
}

.sg-hero-title {
  font-size: 4.8rem;
  max-width: 13ch;
}

.sg-hero-lead {
  max-width: 38rem;
  font-size: 1.18rem;
}

.sg-hero-image {
  position: relative;
  border-radius: 2rem;
  overflow: hidden;
  background: #dfd4c2;
  box-shadow: var(--sg-shadow);
}

.sg-hero-image img {
  width: 100%;
  min-height: 440px;
  object-fit: cover;
}

.sg-hero-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  max-width: 300px;
  padding: 1.25rem;
  background: rgba(255, 250, 241, 0.92);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 1.25rem;
  backdrop-filter: blur(12px);
}

.theme-preset-sirigopal .sg-hero-card {
  display: none !important;
}

.sg-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.sg-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--sg-border);
  border-radius: 999px;
  color: var(--sg-primary);
  font-size: 0.92rem;
  font-weight: 700;
}

.sg-section {
  padding: 5.5rem 0;
}

.sg-section-soft {
  background: var(--sg-bg-soft);
}

.sg-section-title {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.sg-section-title h2 {
  font-size: 3.4rem;
}

.sg-practice-card,
.sg-event-card,
.sg-article-card,
.sg-info-card {
  height: 100%;
  position: relative;
  overflow: hidden;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.sg-practice-card:hover,
.sg-event-card:hover,
.sg-article-card:hover,
.sg-info-card:hover {
  transform: translateY(-6px);
  border-color: rgba(185, 133, 59, 0.35);
  box-shadow: 0 28px 65px rgba(23, 63, 63, 0.13);
}

.sg-practice-card img,
.sg-article-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  background: #dfd4c2;
}

.sg-card-body {
  padding: 1.55rem;
}

.sg-card-body h3 {
  font-size: 1.75rem;
}

.sg-card-link {
  align-items: center;
  border: 1px solid var(--sg-primary);
  border-radius: 999px;
  color: var(--sg-primary);
  display: inline-flex;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
  justify-content: center;
  line-height: 1.15;
  padding: 0.48rem 0.9rem;
  text-decoration: none;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.sg-card-link::after {
  content: none;
}

.sg-card-link:hover,
.sg-card-link:focus {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
  color: #fff;
}

.sg-about-panel {
  background: var(--sg-primary);
  border-radius: 2rem;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--sg-shadow);
}

.sg-about-panel h2,
.sg-about-panel h3,
.sg-about-panel p,
.sg-about-panel li {
  color: #fff;
}

.sg-about-panel p {
  opacity: 0.82;
}

.sg-about-image img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.sg-stat {
  padding: 1rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 1rem;
}

.sg-stat strong {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.sg-event-date {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 74px;
  min-width: 74px;
  height: 74px;
  background: var(--sg-primary);
  border-radius: 1rem;
  color: #fff;
  line-height: 1;
}

.sg-event-date strong {
  font-size: 1.8rem;
}

.sg-event-date span {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.sg-cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.28), transparent 33%),
    linear-gradient(135deg, var(--sg-primary), #0f2e2e);
  border-radius: 2rem;
  color: #fff;
  padding: 3.5rem;
  box-shadow: var(--sg-shadow);
}

.sg-cta h2,
.sg-cta p {
  color: #fff;
}

.sg-cta p {
  opacity: 0.84;
}

.sg-page-hero {
  padding: 8rem 0 4rem;
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.22), transparent 35%),
    linear-gradient(135deg, #f7f1e8 0%, #fffaf1 100%);
}

.sg-page-title {
  font-size: 4.2rem;
}

.breadcrumb a {
  color: var(--sg-muted);
  text-decoration: none;
}

.sg-sidebar-box {
  position: sticky;
  top: 92px;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
}

.sg-content {
  font-size: 1.06rem;
}

.sg-content h2 {
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  font-size: 2.4rem;
}

.sg-content p,
.sg-content li {
  color: #4d4943;
}

.sg-footer {
  background: #102f2f;
  color: rgba(255,255,255,.78);
  padding: 4.5rem 0 2rem;
}

.sg-footer h3,
.sg-footer h4,
.sg-footer a {
  color: #fff;
}

.sg-footer a {
  text-decoration: none;
}

.sg-footer a:hover {
  color: var(--sg-accent);
}

.sg-footer ul {
  padding-left: 0;
  list-style: none;
}

.sg-footer li + li {
  margin-top: 0.55rem;
}

.sg-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.92rem;
}

@media (max-width: 991.98px) {
  .sg-hero {
    min-height: auto;
    padding-top: 6.5rem;
  }

  .sg-hero-title {
    font-size: 4rem;
    max-width: none;
  }

  .sg-hero-card {
    position: static;
    max-width: none;
    margin: 1rem;
  }

  .sg-about-image img {
    min-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .sg-section {
    padding: 4rem 0;
  }

  .sg-hero-title {
    font-size: 3.2rem;
  }

  .sg-section-title h2,
  .sg-page-title,
  .sg-page-hero h1 {
    font-size: 2.7rem;
  }

  .sg-cta {
    padding: 2rem;
  }

  .sg-pill {
    width: 100%;
    justify-content: center;
  }

  .btn {
    width: 100%;
  }
}

/* News e orari */
.sg-news-list {
  display: grid;
  gap: 1.25rem;
}

.sg-news-item {
  position: relative;
  overflow: hidden;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
}

.sg-news-item img {
  width: 100%;
  height: 100%;
  min-height: 230px;
  object-fit: cover;
}

.sg-news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: .85rem;
  color: var(--sg-muted);
  font-size: .92rem;
  font-weight: 700;
}

.sg-news-category {
  color: var(--sg-secondary);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
}

.sg-schedule-table {
  overflow: hidden;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
}

.sg-schedule-table table {
  margin-bottom: 0;
}

.sg-schedule-table th {
  background: var(--sg-primary);
  color: #fff;
  border-color: rgba(255,255,255,.12);
}

.sg-schedule-table td,
.sg-schedule-table th {
  padding: 1rem;
  vertical-align: middle;
}

.sg-schedule-badge {
  display: inline-flex;
  align-items: center;
  padding: .35rem .75rem;
  border-radius: 999px;
  background: rgba(217, 164, 65, .16);
  color: var(--sg-primary);
  font-size: .82rem;
  font-weight: 800;
}

.sg-filter-card {
  background: #fff;
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
  padding: 1.5rem;
}


/* Pagine CMS aggiuntive: categorie, testi, gallery, contatti */
.sg-page-hero {
  padding: 9rem 0 5rem;
  background: radial-gradient(circle at top right, rgba(217, 164, 65, .18), transparent 35%), linear-gradient(135deg, #f7f1e8 0%, #fffaf1 100%);
}

.sg-page-hero h1 {
  max-width: 860px;
  font-size: 4.6rem;
  margin-bottom: 1rem;
}

.sg-page-hero p:not(.sg-kicker) {
  max-width: 760px;
  font-size: 1.2rem;
  color: var(--sg-muted);
}

.sg-breadcrumb a {
  color: var(--sg-primary);
  font-weight: 700;
  text-decoration: none;
}

.sg-category-grid,
.sg-text-list {
  display: grid;
  gap: 1.25rem;
}

.sg-category-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(23, 63, 63, .08);
}

.sg-category-card img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.sg-category-card div {
  padding: 1.6rem 1.6rem 1.6rem 0;
}

.sg-category-card a,
.sg-text-item h2 a {
  color: var(--sg-primary);
  font-weight: 800;
  text-decoration: none;
}

.sg-side-card,
.sg-contact-panel,
.sg-contact-form {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, .08);
  padding: 2rem;
}

.sg-check-list {
  padding-left: 0;
  list-style: none;
}

.sg-check-list li {
  padding: .45rem 0 .45rem 1.7rem;
  position: relative;
}

.sg-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--sg-secondary);
  font-weight: 900;
}

.sg-text-item {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, .08);
  padding: 1.6rem;
}

.sg-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 1rem;
}

.sg-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, .12);
  color: #fff;
}

.sg-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.sg-gallery-item:hover img {
  transform: scale(1.05);
}

.sg-gallery-item span {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 1;
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}

.sg-gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.48), transparent 55%);
}

.sg-gallery-wide {
  grid-column: span 2;
}

.sg-gallery-tall {
  grid-row: span 2;
}

.sg-modal {
  border: 0;
  border-radius: var(--sg-radius);
  background: #fffaf1;
}

.sg-contact-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid var(--sg-border);
}

.sg-contact-line a {
  color: var(--sg-primary);
  font-weight: 800;
  text-decoration: none;
}

.form-control,
.form-select {
  border-radius: 1rem;
  border-color: var(--sg-border);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--sg-secondary);
  box-shadow: 0 0 0 .25rem rgba(185, 133, 59, .15);
}

@media (max-width: 991.98px) {
  .sg-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .sg-category-card,
  .sg-text-item {
    display: block;
  }

  .sg-category-card div {
    padding: 1.4rem;
  }

  .sg-text-item .btn {
    margin-top: 1rem;
  }

  .sg-gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .sg-gallery-wide,
  .sg-gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }

  .sg-contact-line {
    display: block;
  }
}

/* CMS preset bridge: keeps the static Sirigopal theme scoped to the CMS body class. */
.theme-preset-sirigopal {
  --sg-bg: #f7f1e8;
  --sg-bg-soft: #fffaf1;
  --sg-surface: #ffffff;
  --sg-primary: #173f3f;
  --sg-primary-dark: #0f2e2e;
  --sg-secondary: #b9853b;
  --sg-accent: #d9a441;
  --sg-text: #252525;
  --sg-muted: #6f6a62;
  --sg-border: rgba(23, 63, 63, 0.13);
  --sg-shadow: 0 22px 60px rgba(23, 63, 63, 0.12);
  --sg-radius: 1.4rem;
}

.theme-preset-sirigopal .public-page-hero {
  background: var(--sg-bg);
  padding: 7rem 0 4rem;
}

.theme-preset-sirigopal .site-builder-region--has-home-sections {
  padding: 0;
}

.theme-preset-sirigopal .site-builder-region--has-home-sections .site-builder-region__inner {
  display: block;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
  width: 100%;
}

.theme-preset-sirigopal .site-builder-region--has-home-sections .site-builder-block--home_section {
  margin: 0;
}

.theme-preset-sirigopal .public-archive-card,
.theme-preset-sirigopal .site-builder-editorial-card,
.theme-preset-sirigopal .site-builder-contacts,
.theme-preset-sirigopal .public-form {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
}

.theme-preset-sirigopal .public-archive-card img,
.theme-preset-sirigopal .site-builder-editorial-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.theme-preset-sirigopal .home-post-card {
  overflow: hidden;
}

.theme-preset-sirigopal .home-post-card > picture.card-img-top,
.theme-preset-sirigopal .home-post-card > picture {
  aspect-ratio: 4 / 3;
  background: #dfd4c2;
  display: block;
  overflow: hidden;
  width: 100%;
}

.theme-preset-sirigopal .home-post-card > img.card-img-top {
  aspect-ratio: 4 / 3;
  background: #dfd4c2;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.theme-preset-sirigopal .home-post-card > picture.card-img-top img,
.theme-preset-sirigopal .home-post-card > picture img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.theme-preset-sirigopal .home-post-card > picture.card-img-top,
.theme-preset-sirigopal .home-post-card > picture,
.theme-preset-sirigopal .home-post-card > img.card-img-top {
  aspect-ratio: auto;
  height: clamp(150px, 16vw, 180px);
  max-height: 180px;
}

.theme-preset-sirigopal .home-section--manual_posts .home-post-card > picture.card-img-top,
.theme-preset-sirigopal .home-section--manual_posts .home-post-card > picture,
.theme-preset-sirigopal .home-section--manual_posts .home-post-card > img.card-img-top {
  height: clamp(150px, 16vw, 180px);
  max-height: 180px;
}

@media (max-width: 575.98px) {
  .theme-preset-sirigopal .home-post-card > picture.card-img-top,
  .theme-preset-sirigopal .home-post-card > picture,
  .theme-preset-sirigopal .home-post-card > img.card-img-top,
  .theme-preset-sirigopal .home-section--manual_posts .home-post-card > picture.card-img-top,
  .theme-preset-sirigopal .home-section--manual_posts .home-post-card > picture,
  .theme-preset-sirigopal .home-section--manual_posts .home-post-card > img.card-img-top {
    height: 150px;
    max-height: 150px;
  }
}

.theme-preset-sirigopal .cms-content iframe,
.theme-preset-sirigopal .sg-content iframe,
.theme-preset-sirigopal .public-content-body iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--sg-radius);
  display: block;
  max-width: 100%;
  width: 100%;
}

.theme-preset-sirigopal .btn-primary,
.theme-preset-sirigopal .public-primary-cta {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
  border-radius: 999px;
  color: #fff;
}

.theme-preset-sirigopal .btn-primary:hover,
.theme-preset-sirigopal .btn-primary:focus,
.theme-preset-sirigopal .public-primary-cta:hover,
.theme-preset-sirigopal .public-primary-cta:focus {
  background: var(--sg-primary-dark);
  border-color: var(--sg-primary-dark);
  color: #fff;
}

.theme-preset-sirigopal .public-pagination .page-link {
  color: var(--sg-primary);
}

.theme-preset-sirigopal .public-main {
  background: var(--sg-bg);
}

.theme-preset-sirigopal .public-breadcrumb-bar {
  display: none;
}

.theme-preset-sirigopal .public-header--sirigopal {
  min-height: 0;
}

.theme-preset-sirigopal .sg-navbar .container {
  max-width: 1140px;
}

.theme-preset-sirigopal .navbar-brand .public-logo {
  max-height: 42px;
  width: auto;
}

.theme-preset-sirigopal .home-section--manual_posts {
  background: var(--sg-bg);
}

.theme-preset-sirigopal .home-section--manual_posts .row {
  justify-content: center;
}

.theme-preset-sirigopal .home-post-card.sg-article-card {
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
}

.theme-preset-sirigopal .home-post-card.sg-article-card > picture.card-img-top,
.theme-preset-sirigopal .home-post-card.sg-article-card > picture,
.theme-preset-sirigopal .home-post-card.sg-article-card > img.card-img-top {
  height: 230px;
  max-height: 230px;
}

.theme-preset-sirigopal .home-post-card.sg-article-card h3 {
  font-size: 1.75rem;
}

.theme-preset-sirigopal .home-post-card.sg-article-card .sg-card-link {
  display: inline-flex;
  margin-top: auto;
}

.theme-preset-sirigopal .sg-card-link::after {
  content: none !important;
}

.theme-preset-sirigopal .sg-card-link {
  align-items: center;
  border: 1px solid var(--sg-primary);
  border-radius: 999px;
  color: var(--sg-primary);
  display: inline-flex;
  font-size: 1rem;
  justify-content: center;
  line-height: 1.15;
  padding: 0.48rem 0.9rem;
  text-decoration: none;
}

.theme-preset-sirigopal .sg-card-link:hover,
.theme-preset-sirigopal .sg-card-link:focus {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
  color: #fff;
}

.theme-preset-sirigopal .home-section-header h2::after {
  content: none !important;
  display: none !important;
}

.theme-preset-sirigopal .home-section-header.sg-section-title {
  margin-bottom: 3.25rem !important;
}

.theme-preset-sirigopal .home-section-header.sg-section-title h2 {
  font-size: clamp(2.75rem, 5vw, 4.8rem);
  line-height: 1.05;
}

.theme-preset-sirigopal .home-category-posts-grid .home-section-header.sg-section-title {
  margin-inline: 0;
  max-width: none;
  text-align: left;
}

.theme-preset-sirigopal .home-category-posts-grid .home-section-header.sg-section-title h2 {
  max-width: 900px;
}

.theme-preset-sirigopal .home-section-header.sg-section-title.sg-section-title-practices {
  margin-inline: 0;
  max-width: 760px;
  text-align: left;
}

.theme-preset-sirigopal .home-section-header.sg-section-title.sg-section-title-practices h2 {
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  line-height: 1.08;
  max-width: 760px;
}

.theme-preset-sirigopal .sg-section-title-events .sg-kicker {
  margin-bottom: 1.05rem;
}

.theme-preset-sirigopal .home-section-header.sg-section-title.sg-section-title-events h2 {
  font-size: clamp(2.35rem, 3vw, 3.25rem);
  line-height: 1.08;
  max-width: 760px;
}

.theme-preset-sirigopal .sg-section-title-events .btn {
  padding: 0.95rem 1.55rem;
}

.theme-preset-sirigopal .home-manual-posts-cards .home-section-header.sg-section-title {
  margin-inline: auto;
  max-width: 980px;
  text-align: center;
}

.theme-preset-sirigopal .home-section-header.sg-section-title.sg-section-title-articles h2 {
  font-size: clamp(2.6rem, 3.65vw, 4.05rem);
  line-height: 1.08;
  margin-inline: auto;
  max-width: 940px;
}

.theme-preset-sirigopal .sg-section-title-articles .sg-kicker {
  margin-bottom: 1.25rem;
}

.theme-preset-sirigopal .sg-event-summary-card {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
  min-height: 100%;
}

.theme-preset-sirigopal .sg-event-summary-card:hover {
  border-color: rgba(185, 133, 59, 0.35);
  box-shadow: 0 28px 65px rgba(23, 63, 63, 0.13);
  transform: translateY(-6px);
}

.theme-preset-sirigopal .sg-event-summary-body {
  align-items: flex-start;
  display: flex;
  gap: 1.25rem;
  min-height: 330px;
  padding: 1.85rem;
}

.theme-preset-sirigopal .sg-event-summary-content {
  min-width: 0;
}

.theme-preset-sirigopal .sg-event-summary-card .sg-event-date {
  flex: 0 0 92px;
  height: 92px;
  min-width: 92px;
  width: 92px;
}

.theme-preset-sirigopal .sg-event-summary-card .sg-event-date strong {
  font-size: 2.35rem;
}

.theme-preset-sirigopal .sg-event-summary-card .sg-event-date span {
  font-size: 0.86rem;
}

.theme-preset-sirigopal .sg-event-summary-card h3 {
  color: var(--sg-primary);
  font-size: clamp(1.72rem, 1.9vw, 2.15rem);
  line-height: 1.14;
  margin-bottom: 0.9rem;
}

.theme-preset-sirigopal .sg-event-summary-card p:not(.sg-kicker) {
  color: var(--sg-muted);
  font-size: 1.02rem;
  line-height: 1.65;
  margin-bottom: 1.15rem;
}

.theme-preset-sirigopal .sg-event-summary-card .sg-card-link {
  position: relative;
  z-index: 2;
}

.theme-preset-sirigopal .sg-section-title + .row {
  align-items: stretch;
}

.theme-preset-sirigopal .sg-practice-card .sg-card-body,
.theme-preset-sirigopal .sg-article-card .sg-card-body {
  min-height: 0;
}

.theme-preset-sirigopal .sg-page-hero {
  margin-top: 0;
}

.theme-preset-sirigopal .sg-hero,
.theme-preset-sirigopal .home-hero-split.sg-hero {
  color: var(--sg-text) !important;
}

.theme-preset-sirigopal .sg-hero h1,
.theme-preset-sirigopal .sg-hero h2,
.theme-preset-sirigopal .sg-hero h3,
.theme-preset-sirigopal .sg-hero .sg-hero-title,
.theme-preset-sirigopal .home-hero-split.sg-hero .display-6 {
  color: var(--sg-primary) !important;
  text-shadow: none !important;
}

.theme-preset-sirigopal .sg-hero p,
.theme-preset-sirigopal .sg-hero .sg-hero-lead,
.theme-preset-sirigopal .home-hero-split.sg-hero .lead {
  color: var(--sg-muted) !important;
  text-shadow: none !important;
}

.theme-preset-sirigopal .sg-hero .sg-eyebrow,
.theme-preset-sirigopal .sg-hero .sg-kicker {
  color: var(--sg-secondary) !important;
  text-shadow: none !important;
}

.theme-preset-sirigopal .sg-hero .sg-pill {
  color: var(--sg-primary) !important;
}

.theme-preset-sirigopal .sg-hero .sg-hero-card,
.theme-preset-sirigopal .sg-hero .sg-hero-card h2,
.theme-preset-sirigopal .sg-hero .sg-hero-card h3 {
  color: var(--sg-primary) !important;
  text-shadow: none !important;
}

.theme-preset-sirigopal .sg-hero .sg-hero-card p {
  color: var(--sg-muted) !important;
}

.theme-preset-sirigopal .sg-hero .btn-primary {
  color: #fff !important;
}

.theme-preset-sirigopal .sg-hero .btn-outline-primary {
  color: var(--sg-primary) !important;
}

.theme-preset-sirigopal .sg-hero .btn-outline-primary:hover,
.theme-preset-sirigopal .sg-hero .btn-outline-primary:focus {
  color: #fff !important;
}

.theme-preset-sirigopal .public-page-hero {
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.18), transparent 35%),
    linear-gradient(135deg, #f7f1e8 0%, #fffaf1 100%) !important;
  padding: 9rem 0 5rem !important;
}

.theme-preset-sirigopal .public-page-hero .text-center {
  text-align: left !important;
}

.theme-preset-sirigopal .public-page-hero h1 {
  color: var(--sg-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  max-width: 860px;
}

.theme-preset-sirigopal .public-page-hero p:not(.sg-kicker) {
  color: var(--sg-muted);
  font-size: 1.2rem;
  max-width: 760px;
}

.theme-preset-sirigopal .public-slot-nav a,
.theme-preset-sirigopal .public-slot-legal a,
.theme-preset-sirigopal .public-footer__link {
  color: #fff;
  text-decoration: none;
}

.theme-preset-sirigopal .public-social-link {
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  height: 2.35rem;
  justify-content: center;
  width: 2.35rem;
}

.theme-preset-sirigopal .public-social-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--sg-accent);
}

@media (max-width: 575.98px) {
  .theme-preset-sirigopal .home-post-card.sg-article-card > picture.card-img-top,
  .theme-preset-sirigopal .home-post-card.sg-article-card > picture,
  .theme-preset-sirigopal .home-post-card.sg-article-card > img.card-img-top {
    height: 210px;
    max-height: 210px;
  }

  .theme-preset-sirigopal .home-category-posts-grid .home-section-header.sg-section-title,
  .theme-preset-sirigopal .home-manual-posts-cards .home-section-header.sg-section-title {
    text-align: left;
  }

  .theme-preset-sirigopal .sg-event-summary-body {
    display: block;
    min-height: 0;
    padding: 1.5rem;
  }

  .theme-preset-sirigopal .sg-event-summary-card .sg-event-date {
    margin-bottom: 1rem;
  }

  .theme-preset-sirigopal .home-section-header.sg-section-title.sg-section-title-events h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .theme-preset-sirigopal .home-section-header.sg-section-title.sg-section-title-practices h2 {
    font-size: clamp(2rem, 8vw, 2.5rem);
  }

  .theme-preset-sirigopal .home-section-header.sg-section-title.sg-section-title-articles h2 {
    font-size: clamp(2.15rem, 9vw, 2.75rem);
  }
}

/* Sirigopal v3 bridge: internal pages, excluding Contacts. */
.theme-preset-sirigopal:not(.public-scope-contact) .public-breadcrumb-bar {
  display: none;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-main {
  background: var(--sg-bg-soft);
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero {
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.2), transparent 36%),
    linear-gradient(135deg, #f7f1e8 0%, #fffaf1 100%);
  padding: 7.5rem 0 4rem;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero .text-center {
  text-align: left !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero [class*="col-"] {
  margin-inline: 0;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero p.text-uppercase,
.theme-preset-sirigopal:not(.public-scope-contact) .public-page-content p.text-uppercase,
.theme-preset-sirigopal:not(.public-scope-contact) .public-content-header::before {
  color: var(--sg-secondary) !important;
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero h1,
.theme-preset-sirigopal:not(.public-scope-contact) .public-category-page .public-page-title,
.theme-preset-sirigopal:not(.public-scope-contact) .public-text-page .public-content-header h1 {
  color: var(--sg-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 5.5rem) !important;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.98;
  max-width: 900px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero .lead,
.theme-preset-sirigopal:not(.public-scope-contact) .public-text-page .public-content-header h2 {
  color: var(--sg-muted) !important;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.16rem !important;
  font-weight: 400 !important;
  line-height: 1.7;
  max-width: 760px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-page-content,
.theme-preset-sirigopal:not(.public-scope-contact) .public-category-page,
.theme-preset-sirigopal:not(.public-scope-contact) .public-text-page {
  padding: 5rem 0 !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-category-page .container,
.theme-preset-sirigopal:not(.public-scope-contact) .public-text-page .container {
  max-width: 1140px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-category-page .public-page-title {
  margin-bottom: 1rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-text-page .public-content-header {
  margin-bottom: 2.5rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-content-header::before {
  content: "Approfondimento";
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.theme-preset-sirigopal.public-section-foto-e-video .public-content-header::before,
.theme-preset-sirigopal.public-section-gallery .public-content-header::before {
  content: "Gallery";
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-category-page > .container > .lead {
  color: var(--sg-muted) !important;
  max-width: 760px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-category-page .row.gx-5 {
  --bs-gutter-x: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-category-page .row.gx-5 > [class*="col-"] {
  margin: 0 !important;
  max-width: none;
  padding: 0;
  width: auto;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-list-card {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  min-height: 210px;
  overflow: hidden;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-list-card .card-body {
  padding: 1.6rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-list-card__media {
  aspect-ratio: auto !important;
  grid-row: 1 / span 2;
  height: 100%;
  min-height: 210px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-list-card__media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-list-card h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 2.4vw, 2.3rem);
  line-height: 1.05;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-list-card .card-footer {
  align-self: end;
  padding: 0 1.6rem 1.6rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-list-card .btn,
.theme-preset-sirigopal:not(.public-scope-contact) .public-archive-card .btn,
.theme-preset-sirigopal:not(.public-scope-contact) .public-detail-box .btn {
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  padding: 0.65rem 1.1rem;
}

.theme-preset-sirigopal.public-scope-news-index .public-page-content .row.g-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.theme-preset-sirigopal.public-scope-news-index .public-page-content .row.g-4 > [class*="col-"] {
  max-width: none;
  padding: 0;
  width: auto;
}

.theme-preset-sirigopal.public-scope-news-index .public-archive-card--news {
  display: grid;
  grid-template-columns: minmax(240px, 40%) 1fr;
  overflow: hidden;
}

.theme-preset-sirigopal.public-scope-news-index .public-archive-card--news .public-archive-card__media {
  aspect-ratio: auto !important;
  height: 100%;
  min-height: 230px;
}

.theme-preset-sirigopal.public-scope-news-index .public-archive-card--news .card-body {
  padding: 1.6rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-archive-card h2,
.theme-preset-sirigopal:not(.public-scope-contact) .public-archive-card h3 {
  color: var(--sg-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3vw, 3rem) !important;
  line-height: 1.05;
}

.theme-preset-sirigopal.public-scope-events-index .public-archive-card--event .public-archive-card__media {
  display: none !important;
}

.theme-preset-sirigopal.public-scope-events-index .public-archive-card--event {
  min-height: 310px;
}

.theme-preset-sirigopal.public-scope-events-index .public-archive-card--event .card-body {
  padding: 1.9rem !important;
}

.theme-preset-sirigopal.public-scope-events-index .public-archive-card--event .badge,
.theme-preset-sirigopal.public-scope-news-index .public-archive-card--news .badge {
  background: transparent !important;
  border: 0 !important;
  color: var(--sg-secondary) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding: 0;
  text-transform: uppercase;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-detail-box,
.theme-preset-sirigopal:not(.public-scope-contact) .public-detail-media img,
.theme-preset-sirigopal:not(.public-scope-contact) .public-content-body {
  border-radius: var(--sg-radius);
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-detail-box {
  background: #fff !important;
  border: 1px solid var(--sg-border) !important;
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
  padding: 2rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-content-body {
  color: #4d4943;
  font-size: 1.06rem;
  line-height: 1.78;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-content-body h2,
.theme-preset-sirigopal:not(.public-scope-contact) .cms-content h2 {
  color: var(--sg-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 3.5vw, 2.7rem);
  margin: 2.5rem 0 1rem;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-gallery-grid {
  --bs-gutter-x: 0;
  display: grid;
  gap: 1rem;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(4, 1fr);
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-gallery-grid > [class*="col-"] {
  margin: 0 !important;
  max-width: none;
  padding: 0;
  width: auto;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-gallery-thumb {
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.12);
  display: block;
  height: 100%;
  overflow: hidden;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-gallery-thumb__img {
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
  width: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-gallery-thumb:hover .public-gallery-thumb__img {
  transform: scale(1.05);
}

@media (max-width: 991.98px) {
  .theme-preset-sirigopal:not(.public-scope-contact) .public-list-card,
  .theme-preset-sirigopal.public-scope-news-index .public-archive-card--news {
    grid-template-columns: 1fr;
  }

  .theme-preset-sirigopal:not(.public-scope-contact) .public-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero {
    padding: 5.5rem 0 3rem;
  }

  .theme-preset-sirigopal:not(.public-scope-contact) .public-page-hero h1,
  .theme-preset-sirigopal:not(.public-scope-contact) .public-category-page .public-page-title,
  .theme-preset-sirigopal:not(.public-scope-contact) .public-text-page .public-content-header h1 {
    font-size: clamp(2.45rem, 12vw, 3.4rem) !important;
  }

  .theme-preset-sirigopal:not(.public-scope-contact) .public-gallery-grid {
    grid-auto-rows: 260px;
    grid-template-columns: 1fr;
  }
}

/* Sirigopal v3 real page structures. These selectors are intentionally late:
   the CMS now renders v3 classes directly, so keep generic public bridges quiet. */
.theme-preset-sirigopal:not(.public-scope-contact) .sg-page-hero {
  background:
    radial-gradient(circle at top right, rgba(217, 164, 65, 0.22), transparent 35%),
    linear-gradient(135deg, #f7f1e8 0%, #fffaf1 100%);
  padding: 8rem 0 4rem;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-page-title,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-page-hero h1 {
  color: var(--sg-primary);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.6rem, 4vw, 4.7rem) !important;
  line-height: 1.08;
  max-width: 980px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-page-hero .lead,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-page-hero p:not(.sg-kicker) {
  color: var(--sg-muted) !important;
  font-size: 1.2rem !important;
  line-height: 1.65;
  max-width: 760px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-section {
  padding: 6rem 0;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-hero-side-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--sg-radius);
  box-shadow: var(--sg-shadow);
  display: block;
  height: auto;
  max-height: 360px;
  object-fit: cover;
  width: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-detail-media__img,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-content > picture > .sg-detail-media__img,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-content > .sg-detail-media__img {
  aspect-ratio: auto !important;
  display: block;
  height: auto !important;
  max-height: none !important;
  max-width: 100% !important;
  object-fit: contain !important;
  width: auto !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-content > picture {
  display: block;
  max-width: 100%;
  width: fit-content;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-content > picture:has(.sg-detail-media__img) {
  margin-bottom: 3rem;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-sidebar-box {
  position: sticky;
  top: 92px;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card {
  min-height: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card h2 {
  color: var(--sg-primary);
  font-size: clamp(1.65rem, 2vw, 2.25rem) !important;
  line-height: 1.12;
  margin-bottom: 0.9rem;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card p:not(.sg-kicker) {
  color: var(--sg-muted);
  font-size: 1rem;
  line-height: 1.62;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-card-hitarea {
  inset: 0;
  position: absolute;
  z-index: 1;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card .sg-card-link,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card .sg-event-date,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card .sg-kicker,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card h2,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-event-card p {
  position: relative;
  z-index: 2;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-news-list {
  display: grid;
  gap: 1.25rem;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item {
  background: var(--sg-surface);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
  overflow: hidden;
  position: relative;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item > .row {
  min-height: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item picture,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item__placeholder {
  align-items: center;
  background: #f3eee4;
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 230px;
  overflow: hidden;
  width: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item img {
  display: block;
  height: auto !important;
  max-height: 260px;
  max-width: 100%;
  min-height: 0 !important;
  object-fit: contain !important;
  width: auto !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item h2 {
  color: var(--sg-primary);
  font-size: clamp(1.6rem, 2.2vw, 2.35rem) !important;
  line-height: 1.12;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-text-item h2 {
  color: var(--sg-primary);
  font-size: clamp(1.45rem, 1.8vw, 2rem);
  margin-bottom: 0.55rem;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-text-item h2 a {
  color: inherit;
  text-decoration: none;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-category-card h2 {
  font-size: clamp(1.45rem, 1.9vw, 2.05rem);
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-filter-strip {
  background: rgba(255, 250, 241, 0.72);
  border-bottom: 1px solid var(--sg-border);
  padding: 1.25rem 0;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination {
  margin-top: 3rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination .pagination {
  align-items: center;
  gap: 0.45rem !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination .page-item {
  margin: 0;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination .page-link {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--sg-border);
  border-radius: 999px !important;
  box-shadow: none;
  color: var(--sg-primary);
  display: inline-flex;
  font-size: 0.98rem;
  font-weight: 700;
  justify-content: center;
  line-height: 1;
  min-height: 2.8rem;
  min-width: 2.8rem;
  padding: 0.78rem 1rem;
  text-decoration: none;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination .page-link:hover,
.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination .page-link:focus {
  background: #fffaf1;
  border-color: var(--sg-primary);
  color: var(--sg-primary);
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination .page-item.active .page-link {
  background: var(--sg-primary);
  border-color: var(--sg-primary);
  color: #fff;
}

.theme-preset-sirigopal:not(.public-scope-contact) .public-pagination .page-item.disabled .page-link {
  background: rgba(255, 255, 255, 0.45);
  border-color: rgba(23, 63, 63, 0.1);
  color: rgba(23, 63, 63, 0.38);
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item picture,
  .theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item__placeholder {
    min-height: 0;
    padding: 1rem;
  }

  .theme-preset-sirigopal:not(.public-scope-contact) .sg-news-item img {
    max-height: 220px;
  }
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-grid {
  display: grid;
  gap: 1rem;
  grid-auto-rows: auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-grid .sg-gallery-item {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  margin: 0;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item.public-gallery-thumb,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item .public-gallery-thumb {
  aspect-ratio: 4 / 3;
  display: block;
  height: auto;
  overflow: hidden;
  width: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item .public-gallery-thumb__img,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item.public-gallery-thumb .public-gallery-thumb__img,
.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item > img {
  display: block;
  height: 100% !important;
  object-fit: cover !important;
  width: 100% !important;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item .public-gallery-thumb {
  display: block;
  height: 100%;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item::after {
  pointer-events: none;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-item figcaption {
  display: none;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-wide {
  grid-column: auto;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-tall {
  grid-row: auto;
}

.theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-copy {
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--sg-border);
  border-radius: var(--sg-radius);
  box-shadow: 0 18px 45px rgba(23, 63, 63, 0.08);
  padding: clamp(1.25rem, 2vw, 2rem);
}

.theme-preset-sirigopal .public-gallery-lightbox {
  align-items: center;
  background: rgba(15, 46, 46, 0.86);
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: clamp(1rem, 3vw, 2.5rem);
  pointer-events: none;
  position: fixed;
  transition: opacity 0.18s ease;
  z-index: 2000;
}

.theme-preset-sirigopal .public-gallery-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.theme-preset-sirigopal .public-gallery-lightbox__dialog {
  max-height: 92vh;
  max-width: min(1120px, 96vw);
  position: relative;
  width: fit-content;
}

.theme-preset-sirigopal .public-gallery-lightbox__img {
  background: #fffaf1;
  border-radius: var(--sg-radius);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.32);
  display: block;
  max-height: 82vh;
  max-width: 100%;
  object-fit: contain;
  width: auto;
}

.theme-preset-sirigopal .public-gallery-lightbox__close {
  align-items: center;
  background: #fffaf1;
  border: 0;
  border-radius: 999px;
  color: var(--sg-primary);
  display: inline-flex;
  font-size: 2rem;
  font-weight: 700;
  height: 2.75rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -0.75rem;
  top: -0.75rem;
  width: 2.75rem;
  z-index: 2;
}

.theme-preset-sirigopal .public-gallery-lightbox__caption {
  color: #fffaf1;
  font-weight: 700;
  margin-top: 1rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .theme-preset-sirigopal:not(.public-scope-contact) .sg-page-hero {
    padding: 6rem 0 3.5rem;
  }

  .theme-preset-sirigopal:not(.public-scope-contact) .sg-section {
    padding: 4rem 0;
  }

  .theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-grid {
    grid-template-columns: 1fr;
  }

  .theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-wide,
  .theme-preset-sirigopal:not(.public-scope-contact) .sg-gallery-tall {
    grid-column: auto;
    grid-row: auto;
  }
}
