/*
Theme Name: Retroeventi
Theme URI: https://retroeventi.local/
Author: Retroeventi
Description: Tema WordPress per la landing Retroeventi, con testi, contatti e immagini modificabili dal Personalizza.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: retroeventi
*/

:root {
  --paper: #f7eddc;
  --paper-light: #fff8eb;
  --ink: #2d2418;
  --muted: #705f4b;
  --wine: #7b241f;
  --wine-dark: #4a1716;
  --sage: #566d5b;
  --brass: #b8863b;
  --charcoal: #171310;
  --line: rgba(45, 36, 24, 0.18);
  --shadow: 0 22px 55px rgba(23, 19, 16, 0.22);
  --radius: 8px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    repeating-linear-gradient(90deg, rgba(45, 36, 24, 0.025) 0 1px, transparent 1px 18px),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  width: min(calc(100% - 32px), var(--content));
  min-height: 70px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 12px;
  color: var(--ink);
  background: rgba(255, 248, 235, 0.9);
  border: 1px solid rgba(255, 248, 235, 0.76);
  box-shadow: 0 16px 36px rgba(23, 19, 16, 0.16);
  backdrop-filter: blur(16px);
}

.admin-bar .site-header {
  top: 48px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border: 1px solid rgba(45, 36, 24, 0.18);
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.92rem;
  color: var(--muted);
}

.main-nav a,
.plain-contact {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.main-nav a:hover,
.plain-contact:hover {
  color: var(--wine);
  text-decoration: underline;
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.78rem 1.05rem;
  font-weight: 800;
  line-height: 1.1;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.header-cta {
  color: var(--paper-light);
  background: var(--wine);
  white-space: nowrap;
}

.header-cta:hover,
.button:hover {
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 88svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper-light);
  background: var(--charcoal);
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center 45%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(23, 19, 16, 0.86) 0%, rgba(23, 19, 16, 0.64) 42%, rgba(23, 19, 16, 0.18) 100%),
    linear-gradient(0deg, rgba(23, 19, 16, 0.78) 0%, rgba(23, 19, 16, 0.08) 52%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: calc(100% - 36px);
  max-width: var(--content);
  min-width: 0;
  margin: 0 auto;
  padding: 150px 0 70px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brass);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.text-panel h2,
.quote-section blockquote,
.gallery-heading h2,
.contact-copy h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.02;
  font-weight: 700;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 1000px;
  font-size: clamp(4rem, 14vw, 9.6rem);
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.hero-kicker {
  margin: 8px 0 0;
  color: #f2c983;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 1.14;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 248, 235, 0.9);
  font-size: clamp(1.02rem, 1.7vw, 1.28rem);
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button.primary {
  color: var(--paper-light);
  background: var(--wine);
  border-color: var(--wine);
}

.button.secondary {
  color: var(--paper-light);
  border-color: rgba(255, 248, 235, 0.64);
  background: rgba(255, 248, 235, 0.08);
}

.button.dark.secondary {
  color: var(--ink);
  border-color: rgba(45, 36, 24, 0.28);
  background: rgba(255, 248, 235, 0.44);
}

.button.dark.primary {
  background: var(--wine-dark);
  border-color: var(--wine-dark);
}

.intro-band {
  background: var(--wine-dark);
  color: var(--paper-light);
  border-top: 1px solid rgba(255, 248, 235, 0.18);
  border-bottom: 1px solid rgba(255, 248, 235, 0.18);
}

.intro-inner {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 248, 235, 0.18);
}

.intro-inner p {
  margin: 0;
  padding: 20px clamp(14px, 3vw, 32px);
  background: var(--wine-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.section {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-heading.compact {
  max-width: 700px;
}

.section-heading h2,
.text-panel h2,
.gallery-heading h2,
.contact-copy h2 {
  color: var(--ink);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
}

.section-heading p,
.text-panel p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.wedding-grid,
.experience-grid,
.process-list {
  display: grid;
  gap: 18px;
}

.wedding-grid {
  grid-template-columns: repeat(3, 1fr);
}

.feature-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.62);
  box-shadow: 0 18px 40px rgba(23, 19, 16, 0.07);
}

.feature-number {
  display: block;
  margin-bottom: 38px;
  color: var(--wine);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.feature-card h3,
.experience-card h3,
.process-list h3 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  line-height: 1.2;
}

.feature-card p,
.experience-card p,
.process-list p,
.check-list {
  margin: 0;
  color: var(--muted);
}

.image-text-section {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(320px, 0.94fr);
  align-items: center;
  gap: clamp(26px, 5vw, 70px);
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  padding: 10px 0 clamp(72px, 10vw, 120px);
}

.image-panel img {
  width: 100%;
  aspect-ratio: 5 / 3.6;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.text-panel {
  padding: clamp(8px, 2vw, 20px) 0;
}

.check-list {
  padding-left: 20px;
  margin-top: 22px;
}

.check-list li + li {
  margin-top: 10px;
}

.experiences-section {
  border-top: 1px solid var(--line);
}

.experience-grid {
  grid-template-columns: repeat(3, 1fr);
}

.experience-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper-light);
  box-shadow: 0 18px 44px rgba(23, 19, 16, 0.08);
}

.experience-card img {
  width: 100%;
  aspect-ratio: 1.3 / 1;
  object-fit: cover;
}

.experience-card div {
  padding: 22px;
}

.quote-section {
  color: var(--paper-light);
  background:
    linear-gradient(rgba(23, 19, 16, 0.72), rgba(23, 19, 16, 0.72)),
    url("assets/riscio-vintage.jpg") center / cover;
}

.quote-section > div {
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(82px, 13vw, 150px) 0;
}

.quote-section blockquote {
  max-width: 880px;
  margin: 0;
  color: var(--paper-light);
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.process-list {
  grid-template-columns: repeat(4, 1fr);
  counter-reset: process;
}

.process-list article {
  padding: 24px 0 0;
  border-top: 2px solid rgba(123, 36, 31, 0.35);
}

.process-list span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: var(--paper-light);
  background: var(--sage);
  border-radius: 50%;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.gallery-section {
  padding: clamp(72px, 10vw, 120px) max(18px, calc((100vw - var(--content)) / 2));
  background: #ece1ce;
}

.gallery-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.8fr 1.05fr;
  grid-auto-rows: 270px;
  gap: 16px;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery-grid img:first-child {
  grid-row: span 2;
}

.gallery-grid img:last-child {
  grid-column: span 2;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: end;
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) 0;
}

.contact-actions {
  align-content: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 248, 235, 0.72);
}

.plain-contact {
  width: 100%;
  color: var(--muted);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(18px, calc((100vw - var(--content)) / 2));
  color: rgba(255, 248, 235, 0.78);
  background: var(--charcoal);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 920px) {
  .site-header {
    top: 10px;
    width: min(calc(100% - 20px), var(--content));
  }

  .main-nav {
    display: none;
  }

  .hero {
    min-height: 82svh;
  }

  .hero-content {
    padding-top: 130px;
  }

  .intro-inner,
  .wedding-grid,
  .experience-grid,
  .process-list,
  .image-text-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .image-text-section {
    padding-top: 0;
  }

  .process-list {
    gap: 26px;
  }

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

  .gallery-grid img:first-child,
  .gallery-grid img:last-child {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 620px) {
  .brand span {
    display: none;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .header-cta {
    min-height: 42px;
    padding: 0.72rem 0.86rem;
  }

  .hero {
    min-height: 78svh;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(23, 19, 16, 0.88) 0%, rgba(23, 19, 16, 0.42) 68%, rgba(23, 19, 16, 0.18) 100%),
      linear-gradient(90deg, rgba(23, 19, 16, 0.62), rgba(23, 19, 16, 0.22));
  }

  .hero-content {
    width: calc(100% - 28px);
    padding: 112px 0 42px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 15vw, 4rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button,
  .header-cta {
    width: 100%;
  }

  .intro-inner p {
    padding: 15px 18px;
  }

  .section {
    width: min(calc(100% - 28px), var(--content));
    padding: 62px 0;
  }

  .feature-card {
    min-height: auto;
    padding: 24px;
  }

  .feature-number {
    margin-bottom: 24px;
  }

  .gallery-section {
    padding: 62px 14px;
  }

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

  .contact-section {
    width: min(calc(100% - 28px), var(--content));
    padding: 62px 0;
  }

  .contact-actions {
    padding: 22px;
  }

  .site-footer {
    display: block;
  }

  .site-footer p + p {
    margin-top: 8px;
  }
}
