:root {
  --overlay-color: rgba(30, 20, 15, 0.4);
  --overlay-color-dark: rgba(30, 20, 15, 0.7);
  --primary-color: #f5e1cc;
  --accent-color: #c78e40;
  --light-white: rgba(255, 255, 255, 0.7);
  --transition: 0.3s ease;
  --focus-color: #c78e40;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  color: var(--primary-color);
  line-height: 1.6;
  background: url('../src/bannerveneto.jpg') center/cover no-repeat fixed;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.7);
  min-height: 100vh;
  scroll-behavior: smooth;
}

/* ===== Header / hero ===== */
header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background-color: var(--overlay-color);
}

.logo {
  width: 140px;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--primary-color);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.tagline-header {
  font-size: 1.25rem;
  font-style: italic;
  color: var(--accent-color);
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
  white-space: normal;
  line-height: 1.3;
}

.established {
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.6);
}

/* ===== Nav ===== */
nav,
.main-nav {
  margin-top: 2rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

nav a,
.main-nav a {
  color: var(--primary-color);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 2px solid var(--primary-color);
  border-radius: 25px;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  outline-offset: 2px;
}

/* Hover/focus */
nav a:hover,
nav a:focus,
.main-nav a:hover,
.main-nav a:focus {
  background: var(--primary-color);
  color: #333;
  outline: none;
}

/* Keyboard focus ring */
nav a:focus-visible,
.main-nav a:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

/* ACTIVE PAGE HIGHLIGHT (use aria-current="page" or .active on the current link) */
nav a[aria-current="page"],
.main-nav a[aria-current="page"],
nav a.active,
.main-nav a.active {
  background: var(--primary-color);
  color: #333;
  border-color: var(--primary-color);
}

/* ===== Layout containers ===== */
main {
  padding: 4rem 1rem;
}

section {
  max-width: 1000px;
  margin: 0 auto 3rem;
  background-color: var(--overlay-color);
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  text-align: center;
}

section blockquote {
  font-size: 1rem;
  background: transparent;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  margin: 1rem 0;
  color: var(--primary-color);
  font-style: italic;
  line-height: 1.4;
}

/* ===== Footer (global bottom banner) ===== */
#bottom-banner {
  text-align: center;
  margin-top: 2rem;
  background-color: var(--overlay-color-dark);
  padding: 1rem;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.contacts,
.tagline,
.support {
  margin: 0.5rem 0;
}

.contacts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* Keep footer links white (not blue) */
.contacts a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition);
}

.contacts a:hover,
.contacts a:focus {
  text-decoration: underline;
  color: var(--accent-color);
  outline: none;
}

.contacts a:focus-visible {
  outline: 3px solid var(--focus-color);
  outline-offset: 3px;
}

.contacts img {
  width: 1.2em;
  height: 1.2em;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

/* Utility */
[hidden] { display: none !important; }

/* Small screens */
@media (max-width: 600px) {
  section { padding: 1.5rem 1rem; }
}
  /* Ensure footer links appear white like the rest */
#bottom-banner .support a,
#bottom-banner .contacts a { color: var(--primary-color); }