:root {
  --terracotta: #A0522D;
  --terracotta-deep: #7B3F1E;
  --bronzo: #C48B4A;
  --bronzo-chiaro: #D4A96A;
  --ocra: #C69538;
  --avorio: #F5EFE0;
  --avorio-caldo: #EDE4D0;
  --pietra: #D6CBBA;
  --pietra-scura: #B8A994;
  --carbone: #2C241D;
  --carbone-soft: #3D342B;
  --ombra: #5C4E40;
  --oro: #B8943E;
  --verde: #5E6B52;
  --rosso: #8B3A2F;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--avorio);
  color: var(--carbone);
  font-family: 'Cormorant Garamond', Georgia, serif;
  overflow-x: hidden;
}

/* ============================
   TEXTURE & NOISE OVERLAY
   ============================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* ============================
   NAVIGATION
   ============================ */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(44, 36, 29, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(196, 139, 74, 0.2);
}

nav .nav-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  position: relative;
}

nav .nav-links {
  display: flex;
  width: 100%;
  justify-content: space-around;
  list-style: none;
}

nav .nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--pietra);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  transition: color 0.3s;
  position: relative;
}

nav .nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--oro);
  transition: width 0.3s ease;
}

nav .nav-links a:hover {
  color: var(--bronzo-chiaro);
}

nav .nav-links a:hover::after {
  width: 100%;
}

nav .nav-links a.active {
  color: var(--bronzo-chiaro);
}

nav .nav-links a.active::after {
  width: 100%;
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  position: absolute;
  right: 20px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bronzo-chiaro);
  margin: 5px 0;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================
   HERO - FULL SCREEN W/ ARCHES
   ============================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--carbone);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(0.6) sepia(0.3);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(44, 36, 29, 0.5) 0%, rgba(44, 36, 29, 0.2) 40%, rgba(44, 36, 29, 0.7) 100%),
    radial-gradient(ellipse at 30% 70%, rgba(160, 82, 45, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 30%, rgba(184, 148, 62, 0.1) 0%, transparent 50%);
  z-index: 1;
}

.arch-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.arch-frame svg {
  position: absolute;
  height: 100%;
}

.arch-frame .arch-left {
  left: 0;
}

.arch-frame .arch-right {
  right: 0;
  transform: scaleX(-1);
}

.arch-top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 60px;
  animation: fadeUp 1.2s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero h1 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  color: var(--avorio);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 8px;
  text-shadow: 0 2px 40px rgba(44, 36, 29, 0.5);
}


.hero-desc {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--pietra);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--avorio);
  border: 1px solid var(--oro);
  padding: 14px 40px;
  text-decoration: none;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.hero-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--oro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  z-index: -1;
}

.hero-cta:hover {
  color: var(--carbone);
}

.hero-cta:hover::before {
  transform: scaleX(1);
}

.btn-storia-preview {
  color: var(--carbone);
  border-color: var(--terracotta-deep);
}

.btn-storia-preview:hover {
  color: var(--ombra);
}

.btn-storia-preview::before {
  background: var(--terracotta-deep);
}


/* ============================
   COLONNADE SECTION DIVIDER
   ============================ */
.colonnade {
  background: var(--avorio-caldo);
  position: relative;
  overflow: hidden;
}

.colonnade-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: stretch;
  min-height: 500px;
}

.column-decorative {
  flex-shrink: 0;
  width: 70px;
  position: relative;
}

.column-decorative svg {
  height: 100%;
  width: 100%;
}

.colonnade-content {
  flex: 1;
  padding: 80px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.colonnade-image {
  flex: 0 0 400px;
  position: relative;
  overflow: hidden;
}

.colonnade-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) sepia(0.15);
  transition: transform 0.6s ease;
}

.colonnade-image:hover img {
  transform: scale(1.03);
}

.colonnade-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--avorio-caldo), transparent 30%);
  pointer-events: none;
}

.colonnade-image-stack {
  display: flex;
  flex-direction: column;
  gap: 30px;
  padding: 40px;
}

.colonnade-image-stack img {
  flex: 1;
  height: auto;
  min-height: 0;
  border-radius: 6px;
}

.colonnade-image-stack::after {
  display: none;
}

.colonnade-content .section-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 16px;
}

.colonnade-content h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--terracotta-deep);
  line-height: 1.25;
  margin-bottom: 24px;
}

.colonnade-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--carbone-soft);
  max-width: 600px;
  margin-bottom: 16px;
}

/* ============================
   ARCHED CARDS SECTION
   ============================ */
.arched-section {
  padding: 100px 40px;
  background: var(--carbone);
  position: relative;
}

.arched-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(196, 139, 74, 0.06) 0%, transparent 50%);
}

.arched-section .section-header {
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}

.arched-section .section-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 12px;
}

.arched-section h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--avorio);
}

.arched-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.arch-card {
  background: var(--avorio);
  border-radius: 140px 140px 6px 6px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  cursor: pointer;
  position: relative;
}

.arch-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.arch-card-img {
  height: 260px;
  background: var(--pietra);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.arch-card-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to top, var(--avorio), transparent);
}

.mosaic-pattern {
  width: 100%;
  height: 100%;
  opacity: 0.25;
}

.arch-card-body {
  padding: 28px 28px 32px;
  text-align: center;
}

.arch-card-body h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--terracotta-deep);
  margin-bottom: 10px;
}

.arch-card-body p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1rem;
  color: var(--ombra);
  line-height: 1.65;
}

/* ============================
   ARTICLE PREVIEW (LIGHT)
   ============================ */
.articles-section {
  padding: 100px 40px;
  background: var(--avorio);
}

.articles-header {
  max-width: 1100px;
  margin: 0 auto 50px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.articles-header h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: 2rem;
  color: var(--terracotta-deep);
}

.articles-header a {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  text-decoration: none;
  border-bottom: 1px solid var(--terracotta);
  padding-bottom: 2px;
  transition: color 0.3s;
}

.articles-header a:hover {
  color: var(--terracotta-deep);
}

.article-list {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.article-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--pietra);
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
  cursor: pointer;
}

.article-row:hover {
  background: rgba(214, 203, 186, 0.2);
  padding-left: 16px;
  padding-right: 16px;
  margin: 0 -16px;
  border-radius: 6px;
}

.article-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 0.85rem;
  color: var(--pietra-scura);
  letter-spacing: 0.05em;
}

.article-info h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--carbone);
  margin-bottom: 4px;
}

.article-info p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ombra);
  line-height: 1.5;
}

.article-arrow {
  font-size: 1.2rem;
  color: var(--bronzo);
  transition: transform 0.3s;
}

.article-row:hover .article-arrow {
  transform: translateX(4px);
}

/* ============================
   FOOTER WITH COLUMNS
   ============================ */
footer {
  background: var(--carbone);
  position: relative;
  overflow: hidden;
}

.footer-columns {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 20px;
}

.footer-col-svg {
  width: 50px;
  height: 120px;
  opacity: 0.15;
  flex-shrink: 0;
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .logo {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bronzo-chiaro);
  margin-bottom: 12px;
}

.footer-brand p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--pietra-scura);
  line-height: 1.6;
  max-width: 320px;
}

.footer-col h4 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bronzo);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--pietra-scura);
  text-decoration: none;
  margin-bottom: 8px;
  transition: color 0.3s;
}

.footer-col a:hover {
  color: var(--bronzo-chiaro);
}

.footer-bottom {
  border-top: 1px solid rgba(196, 139, 74, 0.15);
  padding: 20px 40px;
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ombra);
  letter-spacing: 0.05em;
}

/* ============================
   PAGE HEADER (for sub-pages)
   ============================ */
.page-header {
  background: var(--carbone);
  padding: 120px 40px 60px;
  text-align: center;
}

.page-header h1 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--avorio);
  margin-bottom: 12px;
}

.page-header p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  color: var(--pietra-scura);
}

/* ============================
   SINGLE ARTICLE PAGE
   ============================ */
.article-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 40px 100px;
}

.article-content .article-meta {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.9rem;
  color: var(--pietra-scura);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.article-content h1 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--carbone);
  margin-bottom: 16px;
  line-height: 1.3;
}

.article-content .article-body {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  line-height: 1.85;
  color: var(--carbone-soft);
}

.article-content .article-body p {
  margin-bottom: 20px;
}

/* ============================
   ADMIN PANEL
   ============================ */
.admin-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
}

.login-form {
  max-width: 400px;
  margin: 60px auto;
  padding: 40px;
  background: var(--avorio-caldo);
  border: 1px solid var(--pietra);
  border-radius: 8px;
}

.login-form h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--carbone);
  margin-bottom: 24px;
  text-align: center;
}

.login-form label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ombra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.login-form input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--pietra);
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  background: var(--avorio);
  color: var(--carbone);
}

.login-form input:focus {
  outline: none;
  border-color: var(--oro);
}

.login-form button,
.admin-btn {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--avorio);
  background: var(--carbone);
  border: 1px solid var(--oro);
  padding: 12px 32px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s;
  border-radius: 4px;
}

.login-form button:hover,
.admin-btn:hover {
  background: var(--oro);
  color: var(--carbone);
}

.admin-btn-danger {
  border-color: var(--rosso);
  color: var(--rosso);
  background: transparent;
}

.admin-btn-danger:hover {
  background: var(--rosso);
  color: var(--avorio);
}

.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--pietra);
}

.admin-toolbar h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--carbone);
}

.admin-article-list {
  list-style: none;
}

.admin-article-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--pietra);
}

.admin-article-list li.admin-category-header {
  border-bottom: none;
  padding: 24px 0 8px;
}

.admin-article-list li.admin-category-header h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oro);
}

.admin-article-list li h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--carbone);
}

.admin-article-list li .actions {
  display: flex;
  gap: 8px;
}

/* ============================
   MODAL
   ============================ */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(44, 36, 29, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}

.modal.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.modal-content {
  background: var(--avorio);
  padding: 40px;
  border-radius: 8px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--pietra);
}

.editor-form label {
  display: block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ombra);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  margin-top: 20px;
}

.editor-form input,
.editor-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pietra);
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  background: var(--avorio);
  color: var(--carbone);
}

.editor-form textarea {
  min-height: 300px;
  resize: vertical;
}

.editor-form input:focus,
.editor-form textarea:focus {
  outline: none;
  border-color: var(--oro);
}

.alert {
  padding: 12px 16px;
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.alert-error {
  background: rgba(139, 58, 47, 0.1);
  border: 1px solid var(--rosso);
  color: var(--rosso);
}

.alert-success {
  background: rgba(94, 107, 82, 0.1);
  border: 1px solid var(--verde);
  color: var(--verde);
}

.hidden {
  display: none;
}

/* ============================
   GALLERY
   ============================ */
.gallery-section {
  padding: 80px 40px 100px;
  background: var(--avorio);
}

.gallery-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) sepia(0.15);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(0.9) sepia(0.05);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(44, 36, 29, 0.3) 0%, transparent 50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.gallery-item:hover::after {
  opacity: 1;
}

/* ============================
   GALLERIA SEZIONI
   ============================ */
.galleria-sezione {
  padding: 80px 40px;
}

.galleria-sezione-header {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.galleria-sezione-header h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--terracotta-deep);
  margin-bottom: 6px;
}

.galleria-sezione-header p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ombra);
  line-height: 1.6;
}

/* ============================
   VISIT INFO
   ============================ */
.visit-section {
  padding: 80px 40px 100px;
  background: var(--avorio);
}

.visit-content {
  max-width: 760px;
  margin: 0 auto;
}

.visit-content h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--terracotta-deep);
  margin-bottom: 24px;
}

.visit-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--carbone-soft);
  margin-bottom: 16px;
}

/* ============================
   TIMELINE
   ============================ */
.timeline-section {
  padding: 80px 40px 100px;
  background: var(--avorio);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--oro), var(--pietra), var(--oro));
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -48px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--avorio);
  border: 2px solid var(--oro);
  z-index: 1;
}

.timeline-date {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 8px;
}

.timeline-item h3 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  color: var(--terracotta-deep);
  margin-bottom: 12px;
  line-height: 1.3;
}

.timeline-item p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--carbone-soft);
  margin-bottom: 12px;
}

/* ============================
   VISIT PAGE
   ============================ */
.visit-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.visit-hours h2,
.visit-map h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--terracotta-deep);
  margin-bottom: 24px;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.05rem;
}

.hours-table tr {
  border-bottom: 1px solid var(--pietra);
}

.hours-table td {
  padding: 14px 0;
  color: var(--carbone-soft);
}

.hours-table td:first-child {
  font-weight: 600;
  color: var(--carbone);
  width: 160px;
}

.hours-table tr.closed td {
  color: var(--pietra-scura);
  font-style: italic;
}

.visit-map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 6px;
  filter: saturate(0.8) sepia(0.1);
}

/* ============================
   PROGETTO / INFO PAGE
   ============================ */
.progetto-section {
  padding: 80px 40px 100px;
  background: var(--avorio);
}

.progetto-content {
  max-width: 760px;
  margin: 0 auto;
}

.progetto-content h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--terracotta-deep);
  margin-bottom: 24px;
}

.progetto-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--carbone-soft);
  margin-bottom: 16px;
}

/* Short storia preview on homepage */
.storia-preview {
  padding: 80px 40px;
  background: var(--avorio-caldo);
}

.storia-preview-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.storia-preview .section-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--oro);
  margin-bottom: 16px;
}

.storia-preview h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--terracotta-deep);
  margin-bottom: 20px;
}

.storia-preview p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--carbone-soft);
  margin-bottom: 24px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.storia-preview .hero-cta {
  margin-top: 8px;
}

/* ============================
   LOADING INDICATOR
   ============================ */
.loading {
  text-align: center;
  padding: 60px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: var(--pietra-scura);
}

/* ============================
   HERO CAROUSEL
   ============================ */
@keyframes kenBurns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.08);
  }
}

.hero-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.35) saturate(0.6) sepia(0.3);
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.5s ease;
}

.hero-slide.active {
  opacity: 1;
  animation: kenBurns 5s ease-out forwards;
}

/* ============================
   BARBARINI QUOTE
   ============================ */
.quote-section {
  background: var(--carbone);
  padding: 80px 40px;
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(196, 139, 74, 0.06) 0%, transparent 60%);
}

.barbarini-quote {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  text-align: center;
  padding: 0 40px;
}

.barbarini-quote::before {
  content: '\201C';
  position: absolute;
  top: -40px;
  left: 0;
  font-family: 'Cinzel Decorative', serif;
  font-size: 6rem;
  color: var(--oro);
  opacity: 0.3;
  line-height: 1;
}

.barbarini-quote::after {
  content: '\201D';
  position: absolute;
  bottom: -20px;
  right: 0;
  font-family: 'Cinzel Decorative', serif;
  font-size: 6rem;
  color: var(--oro);
  opacity: 0.3;
  line-height: 1;
}

.barbarini-quote p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-style: italic;
  font-size: 1.25rem;
  line-height: 1.9;
  color: var(--pietra);
  position: relative;
  z-index: 1;
}

.barbarini-quote cite {
  display: block;
  margin-top: 24px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--oro);
  font-style: normal;
}

/* ============================
   NOVITA SECTIONS
   ============================ */
.novita-section {
  padding: 0;
}

.novita-category {
  padding: 80px 40px;
}

.novita-category-header {
  max-width: 1100px;
  margin: 0 auto 40px;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.novita-number {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--oro);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}

.novita-category-header h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--terracotta-deep);
  margin-bottom: 6px;
}

.novita-category-header p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.05rem;
  color: var(--ombra);
  line-height: 1.6;
}

.novita-cards {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.novita-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 24px 28px;
  border-left: 3px solid var(--pietra);
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: 0 6px 6px 0;
  transition: background 0.3s, padding-left 0.3s;
  background: rgba(255, 255, 255, 0.4);
}

.novita-card:hover {
  background: rgba(255, 255, 255, 0.8);
  padding-left: 36px;
}

.novita-card--eventi {
  border-left-color: var(--oro);
}

.novita-card--pubblicazioni {
  border-left-color: var(--verde);
}

.novita-card--centenario {
  border-left-color: var(--terracotta);
}

.novita-card-date {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--pietra-scura);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.novita-card-content h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--carbone);
  margin-bottom: 6px;
  line-height: 1.3;
}

.novita-card-content p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--ombra);
  line-height: 1.5;
}

.novita-empty {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1rem;
  color: var(--pietra-scura);
}

/* ============================
   CATEGORY BADGE
   ============================ */
.category-badge {
  display: inline-block;
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 12px;
  vertical-align: middle;
}

.category-badge--eventi {
  background: rgba(184, 148, 62, 0.15);
  color: var(--oro);
  border: 1px solid rgba(184, 148, 62, 0.3);
}

.category-badge--pubblicazioni {
  background: rgba(94, 107, 82, 0.15);
  color: var(--verde);
  border: 1px solid rgba(94, 107, 82, 0.3);
}

.category-badge--centenario {
  background: rgba(160, 82, 45, 0.15);
  color: var(--terracotta);
  border: 1px solid rgba(160, 82, 45, 0.3);
}

/* ============================
   STORIA - SEZIONE CONTINUO
   ============================ */
.storia-continuo {
  background: var(--avorio);
  padding: 80px 40px;
}

.storia-continuo-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.storia-continuo h3 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
  color: var(--terracotta-deep);
  margin-bottom: 32px;
}

.storia-continuo p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--carbone-soft);
  margin-bottom: 20px;
  text-align: left;
}

.sezione-ornamento {
  display: flex;
  justify-content: center;
  margin: 40px auto;
  width: 120px;
}

.sezione-ornamento svg {
  width: 100%;
}

/* ============================
   STORIA - SEZIONE DESCRITTIVA
   ============================ */
.storia-descrittiva {
  background: var(--avorio-caldo);
  padding: 80px 40px 100px;
  position: relative;
}

.storia-descrittiva-inner {
  max-width: 760px;
  margin: 0 auto;
}

.storia-descrittiva-inner .section-label {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--terracotta);
  margin-bottom: 16px;
}

.storia-descrittiva-inner h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--terracotta-deep);
  margin-bottom: 40px;
}

.descrittiva-blocco p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.12rem;
  line-height: 1.8;
  color: var(--carbone-soft);
  margin-bottom: 16px;
}

.descrittiva-blocco p:first-child::first-letter {
  font-family: 'Cinzel Decorative', serif;
  font-size: 2.8em;
  float: left;
  line-height: 0.8;
  margin-right: 8px;
  margin-top: 6px;
  color: var(--terracotta-deep);
}

/* ============================
   PROGETTO - SPAZIO IMMAGINI
   ============================ */
.progetto-immagini {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.progetto-immagini img {
  width: 100%;
  border-radius: 6px;
  filter: saturate(0.85) sepia(0.05);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.progetto-immagini img:hover {
  transform: scale(1.02);
  filter: saturate(1) sepia(0);
}

@media (max-width: 600px) {
  .progetto-immagini {
    grid-template-columns: 1fr;
  }
}

/* ============================
   PERCORSI SECTION
   ============================ */
.percorsi-section {
  padding: 80px 40px 100px;
}

.percorsi-section h2 {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 400;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--terracotta-deep);
  text-align: center;
  margin-bottom: 60px;
}

.percorso-card {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding: 60px 40px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.percorso-card:nth-child(odd) {
  background: var(--avorio);
}

.percorso-card:nth-child(even) {
  background: var(--avorio-caldo);
}

.percorso-card:nth-child(even) .percorso-text {
  order: 2;
}

.percorso-card:nth-child(even) .percorso-thumbs {
  order: 1;
}

.percorso-number {
  font-family: 'Cinzel Decorative', serif;
  font-weight: 700;
  font-size: 3rem;
  color: var(--oro);
  opacity: 0.4;
  line-height: 1;
}

.percorso-text h3 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--terracotta-deep);
  margin-bottom: 16px;
  line-height: 1.3;
}

.percorso-text p {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--carbone-soft);
}

.percorso-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  cursor: pointer;
}

.percorso-thumbs img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 4px;
  filter: saturate(0.7) sepia(0.15);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.percorso-thumbs img:hover {
  transform: scale(1.03);
  filter: saturate(0.9) sepia(0.05);
}

.percorso-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  color: var(--pietra-scura);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 0.95rem;
}

/* ============================
   LIGHTBOX
   ============================ */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.95);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--avorio);
  font-size: 2rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  z-index: 3001;
  font-family: sans-serif;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--avorio);
  font-size: 2.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s;
  padding: 20px;
  z-index: 3001;
  font-family: sans-serif;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 10px;
}

.lightbox-next {
  right: 10px;
}

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  color: var(--pietra-scura);
  letter-spacing: 0.1em;
  z-index: 3001;
}

/* ============================
   EDITOR SELECT (admin)
   ============================ */
.editor-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--pietra);
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  background: var(--avorio);
  color: var(--carbone);
  cursor: pointer;
}

.editor-form select:focus {
  outline: none;
  border-color: var(--oro);
}

/* ============================
   RESPONSIVE
   ============================ */
@media (max-width: 900px) {
  .arched-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .arch-card {
    border-radius: 100px 100px 6px 6px;
  }

  .colonnade-inner {
    flex-direction: column;
  }

  .column-decorative {
    width: 100%;
    height: 40px;
  }

  .colonnade-content {
    padding: 50px 30px;
  }

  .colonnade-image {
    flex: 0 0 280px;
  }

  .colonnade-image::after {
    background: linear-gradient(to bottom, var(--avorio-caldo), transparent 20%);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .article-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .article-date {
    order: 2;
  }

  .article-arrow {
    display: none;
  }

  .articles-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .visit-grid {
    grid-template-columns: 1fr;
  }

  .percorso-card {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 40px 24px;
  }

  .percorso-number {
    font-size: 2rem;
  }

  .percorso-card:nth-child(even) .percorso-text {
    order: 0;
  }

  .percorso-card:nth-child(even) .percorso-thumbs {
    order: 0;
  }

  .percorso-thumbs {
    grid-template-columns: 1fr 1fr;
  }

  .lightbox-prev,
  .lightbox-next {
    font-size: 1.8rem;
    padding: 12px;
  }

  .novita-category {
    padding: 60px 20px;
  }

  .novita-number {
    font-size: 2rem;
  }

  .nav-toggle {
    display: block;
  }

  nav .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(44, 36, 29, 0.97);
    padding: 20px 40px;
    gap: 16px;
  }

  nav .nav-links.open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .hero-content {
    padding: 0 24px;
  }

  nav .nav-inner {
    padding: 18px 20px;
  }

  .arched-section,
  .articles-section {
    padding: 60px 20px;
  }

  .gallery-section,
  .visit-section,
  .timeline-section,
  .progetto-section,
  .storia-preview,
  .percorsi-section,
  .quote-section {
    padding: 60px 20px;
  }

  .timeline {
    padding-left: 40px;
  }

  .timeline-item::before {
    left: -28px;
  }

  .article-content {
    padding: 40px 20px 60px;
  }

  .admin-container {
    padding: 20px;
  }
}

/* ============================
   CATEGORY PICKER (admin)
   ============================ */
.category-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  padding: 28px 16px 24px;
  border: 2px solid var(--pietra);
  border-radius: 8px;
  background: var(--avorio);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  font-family: 'Cormorant Garamond', serif;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(44, 36, 29, 0.12);
}

.cat-card--centenario {
  border-color: var(--terracotta);
}

.cat-card--centenario:hover {
  border-color: var(--terracotta-deep);
  background: rgba(160, 82, 45, 0.05);
}

.cat-card--eventi {
  border-color: var(--oro);
}

.cat-card--eventi:hover {
  border-color: #a87820;
  background: rgba(184, 148, 62, 0.05);
}

.cat-card--pubblicazioni {
  border-color: var(--verde);
}

.cat-card--pubblicazioni:hover {
  border-color: #3a4a32;
  background: rgba(94, 107, 82, 0.05);
}

.cat-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.cat-card-label {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--carbone);
}

.cat-card-desc {
  font-size: 0.85rem;
  color: var(--pietra-scura);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .category-picker {
    grid-template-columns: 1fr;
  }
}