/* Costa di Maratea — Custom Styles */
:root {
  --primary: #1a5c7a;
  --primary-light: #2d8aad;
  --primary-dark: #0f3d52;
  --secondary: #e8843a;
  --accent: #3ab5a0;
  --bg: #ffffff;
  --bg-alt: #f0f7fa;
  --bg-dark: #0d2b38;
  --text: #1a2f3a;
  --text-light: #5a7585;
  --border: #d0e6ef;
  --gold: #c9a84c;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ─── NAVBAR ─── */
.navbar {
  background: rgba(10, 35, 50, 0.97);
  backdrop-filter: blur(8px);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--gold);
}

.navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff !important;
  letter-spacing: 0.03em;
}

.navbar-brand span {
  color: var(--gold);
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Lora', serif;
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem !important;
  transition: color 0.2s;
}

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

.navbar-toggler {
  border-color: rgba(255,255,255,0.3);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ─── HERO ─── */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.55);
  transform: scale(1.03);
  transition: transform 8s ease;
}

.hero:hover .hero-bg {
  transform: scale(1.0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,35,50,0.6) 0%, rgba(10,35,50,0.2) 60%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
  padding: 2rem;
}

.hero-label {
  display: inline-block;
  background: var(--gold);
  color: var(--bg-dark);
  font-family: 'Lora', serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  margin-bottom: 2rem;
  max-width: 560px;
}

.btn-primary-gold {
  background: var(--gold);
  color: var(--bg-dark);
  border: none;
  padding: 0.85rem 2rem;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
  display: inline-block;
}

.btn-primary-gold:hover {
  background: #e0b85a;
  color: var(--bg-dark);
  transform: translateY(-2px);
}

.btn-outline-white {
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  padding: 0.85rem 2rem;
  font-family: 'Lora', serif;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 3px;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.5);
  margin: 0.5rem auto 0;
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0.5; height: 20px; }
  50% { opacity: 1; height: 40px; }
}

/* ─── SECTION HEADERS ─── */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-eyebrow {
  display: inline-block;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* ─── HIGHLIGHTS GRID ─── */
.section-highlights {
  padding: 5rem 0;
  background: var(--bg);
}

.highlight-card {
  background: var(--bg-alt);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(26, 92, 122, 0.15);
}

.highlight-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.highlight-card-body {
  padding: 1.5rem;
}

.highlight-card-body h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 0.6rem;
}

.highlight-card-body p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.card-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-link:hover {
  color: var(--secondary);
}

.card-link::after {
  content: ' →';
}

/* ─── INTRO STRIP ─── */
.section-intro {
  padding: 5rem 0;
  background: var(--bg-dark);
  color: #fff;
}

.section-intro .section-title {
  color: #fff;
}

.intro-text {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.82);
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.stat-block {
  text-align: center;
  padding: 1.5rem;
  border-left: 1px solid rgba(255,255,255,0.15);
}

.stat-block:first-child {
  border-left: none;
}

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-top: 0.4rem;
}

/* ─── CONTENT PAGES ─── */
.page-hero {
  position: relative;
  height: 55vh;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
}

.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,35,50,0.8) 0%, transparent 60%);
}

.page-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  padding: 2.5rem 0;
}

.page-hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.page-hero-content p {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
}

/* ─── ARTICLE BODY ─── */
.article-body {
  padding: 4rem 0;
}

.article-content {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text);
}

.article-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
}

.article-content h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  color: var(--primary);
  margin: 2.5rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.article-content h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: var(--primary-dark);
  margin: 1.8rem 0 0.8rem;
}

.article-content p {
  margin-bottom: 1.2rem;
}

.article-content ul, .article-content ol {
  margin: 0 0 1.2rem 1.5rem;
}

.article-content li {
  margin-bottom: 0.45rem;
}

.article-content strong {
  color: var(--primary-dark);
  font-weight: 700;
}

.article-content em {
  color: var(--secondary);
  font-style: italic;
}

.article-content a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.article-content a:hover {
  color: var(--secondary);
}

.article-image {
  border-radius: 8px;
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.article-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.article-image figcaption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-light);
  background: var(--bg-alt);
  font-style: italic;
}

/* Sidebar */
.sidebar {
  position: sticky;
  top: 80px;
}

.sidebar-widget {
  background: var(--bg-alt);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}

.sidebar-widget h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--gold);
}

.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-nav li {
  border-bottom: 1px solid var(--border);
}

.sidebar-nav li:last-child {
  border-bottom: none;
}

.sidebar-nav a {
  display: block;
  padding: 0.6rem 0;
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.2s, padding-left 0.2s;
}

.sidebar-nav a:hover {
  color: var(--primary);
  padding-left: 6px;
}

.sidebar-highlight {
  background: var(--primary-dark);
  color: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.sidebar-highlight p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1rem;
}

/* ─── CONTACT FORM ─── */
.contact-form .form-control,
.contact-form .form-select {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  font-family: 'Lora', serif;
  color: var(--text);
  background: var(--bg);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,92,122,0.12);
  outline: none;
}

.contact-form .btn {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-family: 'Lora', serif;
  font-size: 0.95rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-form .btn:hover {
  background: var(--primary-light);
}

/* ─── GALLERY GRID ─── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.photo-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

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

/* ─── FOOTER ─── */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 2rem;
  margin-top: 0;
}

.footer-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.footer-brand span {
  color: var(--gold);
}

.footer-tagline {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.2rem;
}

.footer-nav-title {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.45rem;
}

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer-divider {
  border-color: rgba(255,255,255,0.12);
  margin: 2rem 0 1.5rem;
}

.footer-bottom {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ─── BREADCRUMB ─── */
.breadcrumb-bar {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}

.breadcrumb {
  margin: 0;
  font-size: 0.84rem;
}

.breadcrumb-item a {
  color: var(--primary);
}

.breadcrumb-item.active {
  color: var(--text-light);
}

/* ─── 404 PAGE ─── */
.error-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1rem;
}

.error-code {
  font-family: 'Playfair Display', serif;
  font-size: 8rem;
  font-weight: 700;
  color: var(--border);
  line-height: 1;
  margin-bottom: 0;
}

.error-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1rem;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 768px) {
  .hero { min-height: 75vh; }
  .hero-title { font-size: 2.2rem; }
  .stat-block { border-left: none; border-top: 1px solid rgba(255,255,255,0.15); }
  .stat-block:first-child { border-top: none; }
  .article-image img { height: 240px; }
}

@media (max-width: 576px) {
  .hero-content { padding: 1rem; }
  .section-highlights { padding: 3rem 0; }
  .article-body { padding: 2.5rem 0; }
}
