/* Internazionali di Tennis Emilia Romagna */
:root {
  --brand: #1e73be;
  --brand-dark: #095ea9;
  --gray-bg: #f1f1f1;
  --text: #333;
  --max: 1140px;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Lato, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
}
h1, h2, h3, .site-logo-text {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); text-decoration: underline; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--brand);
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.site-header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}
.site-brand { display: flex; align-items: center; gap: 16px; flex: 1 1 200px; }
.site-brand img { max-height: 56px; width: auto; }
.site-challenger img { max-height: 48px; }
.site-nav-toggle {
  display: none;
  background: var(--brand);
  color: #fff;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 3px;
}
body > .site-nav {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 0;
}
body > .site-nav > ul {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px 10px;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a {
  display: block;
  padding: 10px 12px;
  color: #444;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 13px;
}
.site-nav > ul > li > a:hover,
.site-nav > ul > li.is-active > a { background: var(--brand); color: #fff; text-decoration: none; }
.site-nav .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  flex-direction: column;
  z-index: 100;
}
.site-nav li:hover > .sub-menu,
.site-nav li:focus-within > .sub-menu { display: flex; }
.site-nav .sub-menu a { padding: 10px 14px; font-size: 13px; color: #444; }
.site-nav .sub-menu a:hover { background: var(--gray-bg); color: var(--brand); text-decoration: none; }
.site-main { min-height: 50vh; }
.page-header {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff;
  padding: 28px 0;
  margin-bottom: 24px;
}
.page-header h1 { margin: 0; font-size: 2rem; text-transform: uppercase; }
.content-wrap { padding-bottom: 40px; }
.content-wrap p { margin: 0 0 1em; }
.content-wrap img { max-width: 100%; height: auto; }
.content-wrap iframe { width: 100%; border: 0; min-height: 400px; margin: 1em 0; }
.blog-container { margin: 1em 0; }
.blog-grid { display: flex; flex-direction: column; gap: 16px; }
.blog-card { border-bottom: 1px solid #e5e5e5; padding-bottom: 16px; }
.blog-title { margin: 0 0 8px; font-size: 1.25rem; }
.blog-preview p { margin: 0; color: #555; }
.hero {
  position: relative;
  background: var(--brand-dark);
  color: #fff;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
}
.hero-overlay { background: linear-gradient(transparent 30%, rgba(0,0,0,.75)); width: 100%; padding: 40px 0 32px; }
.hero h2 { margin: 0 0 8px; font-size: 2.2rem; text-transform: uppercase; }
.hero .hero-meta { opacity: .9; font-style: italic; }
.section-title { text-align: center; color: var(--brand); text-transform: uppercase; margin: 32px 0 16px; }
.section-title h2 { margin: 0; font-size: 1.5rem; }
.section-gray { background: var(--gray-bg); padding: 32px 0; margin: 32px 0; }
.quick-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; text-align: center; }
.quick-links a {
  display: block;
  padding: 16px 8px;
  background: var(--gray-bg);
  border: 1px solid #ddd;
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
}
.quick-links a:hover { background: var(--brand); color: #fff; text-decoration: none; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.news-card { border: 1px solid #e0e0e0; background: #fff; }
.news-card img { width: 100%; height: auto; display: block; }
.news-card-body { padding: 16px; }
.news-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.news-card h3 a { color: #444; }
.news-card .meta { font-size: 13px; color: #777; margin-bottom: 8px; }
.torneo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.torneo-card h3 { color: var(--brand); text-transform: uppercase; }
.partners-grid { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; align-items: center; }
.partners-grid img { max-height: 80px; max-width: 140px; object-fit: contain; }
.sponsors-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.sponsors-grid img { max-height: 90px; max-width: 160px; }
.op-list { list-style: none; padding: 0; }
.op-list li { padding: 10px 0; border-bottom: 1px solid #eee; }
.op-list a { font-weight: 600; }
.foto-list { list-style: none; padding: 0; }
.foto-list li { padding: 12px 0; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; gap: 12px; }
.tabelloni-section { margin-bottom: 32px; }
.tabelloni-section h2 { color: var(--brand); font-size: 1.2rem; }
.contact-block { margin: 1.5em 0; }
.contact-block p { margin: .35em 0; }
.map-wrap iframe { width: 100%; min-height: 350px; border: 0; }
.site-footer { background: #2a2a2a; color: #ccc; padding: 32px 0 16px; margin-top: 40px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.footer-grid h4 { color: #fff; margin-top: 0; text-transform: uppercase; font-family: "Barlow Condensed", sans-serif; }
.footer-bottom { text-align: center; padding-top: 20px; margin-top: 24px; border-top: 1px solid #444; font-size: 14px; }
@media (max-width: 900px) {
  .site-nav-toggle { display: block; margin-left: auto; }
  .site-nav { display: none; width: 100%; flex: 1 1 100%; }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .sub-menu { position: static; box-shadow: none; border: 0; padding-left: 12px; display: none; }
  .site-nav li.sub-open > .sub-menu { display: flex; }
}
