/*
Theme Name: FRAME
Theme URI: https://frame-restaurant.com
Author: Francesco Gramegna
Author URI: https://frame-restaurant.com
Description: Tema WordPress statico per FRAME — Around the Table. Single-page con template di pagina dedicato.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: frame
*/

/* ── Fonts ── */
@font-face {
  font-family: 'CS Genio Mono';
  src: url('assets/fonts/CSGenioMono-Regular.otf') format('opentype'),
       url('assets/fonts/CSGenioMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'CS Genio Mono';
  src: url('assets/fonts/CSGenioMono-Italic.otf') format('opentype'),
       url('assets/fonts/CSGenioMono-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ── Reset & Base ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f5f2ed;
  --color-bg-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-light: #f5f2ed;
  --color-accent: #3a3a3a;
  --color-muted: #8a8580;
  --color-divider: rgba(26, 26, 26, 0.12);
  --color-divider-light: rgba(245, 242, 237, 0.15);
  --font-body: 'CS Genio Mono', 'Courier New', monospace;
  --page-padding: clamp(20px, 4vw, 80px);
  --section-spacing: clamp(80px, 12vh, 160px);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

/* ── GSAP initial states (set via JS) ── */
.reveal {
  visibility: hidden;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px var(--page-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled,
.nav--inner {
  background-color: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav__logo img {
  height: 40px;
  width: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
}

.nav__links a {
  color: var(--color-text-light);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-text-light);
  transition: width 0.3s ease;
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__links .nav-btn {
  border: 1px solid var(--color-text-light);
  padding: 8px 20px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  background: none;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav__links .nav-btn::after {
  display: none;
}

.nav__links .nav-btn:hover {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}

.nav__links .nav-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-light);
  transition: opacity 0.3s ease;
}

.nav__links .nav-icon:hover svg {
  opacity: 0.6;
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
}

.nav__hamburger span {
  width: 24px;
  height: 1.5px;
  background: var(--color-text-light);
  transition: all 0.3s ease;
}

.nav__hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}

.nav__hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav__hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* Mobile Menu */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg-dark);
  z-index: 105;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 36px;
}

.nav__mobile.open {
  display: flex;
}

/* Lista del menu mobile generata da wp_nav_menu */
.nav__mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
}

.nav__mobile a {
  color: var(--color-text-light);
  font-size: 1.2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.nav__mobile .nav-btn-mobile {
  border: 1px solid var(--color-text-light);
  padding: 14px 36px;
  margin-top: 12px;
}

/* ── Hero Split ── */
.hero {
  height: 100vh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
}

.hero__left {
  position: relative;
  background-image: url('assets/images/LNKB_1920x1080.webp');
  background-size: cover;
  background-position: center;
}

.hero__right {
  position: relative;
  overflow: hidden;
}

.hero__right-img {
  width: 100%;
  height: 115%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.hero__right-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.15);
}

/* Logo centrato sovrapposto a entrambe le metà */
.hero__content {
  position: absolute;
  z-index: 10;
  text-align: center;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.hero__content > * {
  pointer-events: auto;
}

.hero__logo {
  width: clamp(180px, 22vw, 340px);
  margin: 0 auto;
  opacity: 0;
  filter: drop-shadow(0 4px 24px rgba(0,0,0,0.35));
}

.hero__tagline {
  color: var(--color-text-light);
  font-size: clamp(0.6rem, 0.9vw, 0.75rem);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  opacity: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  opacity: 0;
}

.hero__scroll span {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--color-text-light);
  margin: 0 auto;
  opacity: 0.5;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50% { transform: scaleY(0.5); opacity: 0.2; }
}

/* ── Sticky Floating Book Button (bottom-right) ── */
.sticky-book {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--color-bg-dark);
  border-radius: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  cursor: pointer;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.sticky-book.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.sticky-book:hover {
  box-shadow: 0 6px 28px rgba(0,0,0,0.35);
}

.sticky-book__icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sticky-book__icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--color-text-light);
  stroke-width: 1.8;
}

.sticky-book__label {
  padding: 0 20px 0 4px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  white-space: nowrap;
}

/* ── Section Layout ── */
.section {
  padding: var(--section-spacing) var(--page-padding);
}

.section--dark {
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.section__label {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 40px;
  opacity: 0.5;
}

.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 32px;
  line-height: 1.2;
}

.section__text {
  max-width: 640px;
  font-size: clamp(0.82rem, 1.1vw, 0.95rem);
  line-height: 1.85;
  opacity: 0.85;
}

.section__text p + p {
  margin-top: 1.2em;
}

.section__text em {
  font-style: italic;
  opacity: 1;
}

.section__text strong {
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Divider */
.divider {
  width: 60px;
  height: 1px;
  margin: var(--section-spacing) auto;
}

.divider--dark {
  background: var(--color-divider);
}

.divider--light {
  background: var(--color-divider-light);
}

/* ── Concept Section ── */
.concept {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}

.concept__visual {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--color-bg-dark);
  overflow: hidden;
}

.concept__visual-inner {
  width: 100%;
  height: 120%;
  background-image: url('assets/images/cambiare_prospettiva.jpg');
  background-size: cover;
  background-position: center;
  transition: transform 6s ease;
  will-change: transform;
}

.concept__visual:hover .concept__visual-inner {
  transform: scale(1.04);
}

.concept__body {
  padding-top: clamp(20px, 4vw, 60px);
}

.concept__highlight {
  display: inline-block;
  margin-top: 24px;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--color-text);
  padding-bottom: 4px;
}

/* ── Orari Section ── */
.orari__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 48px;
  max-width: 700px;
}

.orari__item h3 {
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.5;
}

.orari__item p {
  font-size: clamp(0.82rem, 1vw, 0.9rem);
  line-height: 1.7;
  opacity: 0.85;
}

.orari__note {
  margin-top: 40px;
  font-size: 0.75rem;
  font-style: italic;
  opacity: 0.5;
}

/* ── Image Band ── */
.image-band {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 0;
}

.image-band__item {
  aspect-ratio: 4/5;
  background: var(--color-bg-dark);
  overflow: hidden;
  position: relative;
}

.image-band__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.08);
  transition: background 0.4s ease;
}

.image-band__item:hover::after {
  background: rgba(26, 26, 26, 0);
}

.image-band__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.image-band__item:hover .image-band__placeholder {
  opacity: 1;
}

/* ── Events Section ── */
.events {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.events__body {
  order: 1;
}

.events__visual {
  order: 2;
  aspect-ratio: 4/5;
  background: var(--color-accent);
  overflow: hidden;
}

.events__visual-placeholder {
  width: 100%;
  height: 120%;
  background-image: url('assets/images/tavola_al_centro.jpg');
  background-size: cover;
  background-position: center;
  will-change: transform;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.events__visual:hover .events__visual-placeholder {
  opacity: 1;
}

/* ── CTA Blocks ── */
.cta-blocks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}

.cta-block {
  padding: clamp(60px, 8vw, 120px) var(--page-padding);
  text-align: center;
  background: var(--color-bg-dark);
  color: var(--color-text-light);
  position: relative;
  overflow: hidden;
  transition: background 0.4s ease;
  cursor: pointer;
}

.cta-block:hover {
  background: #252525;
}

.cta-block__title {
  font-size: clamp(1rem, 2vw, 1.4rem);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-block__sub {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  opacity: 0.5;
}

.cta-block__arrow {
  display: block;
  margin: 24px auto 0;
  width: 32px;
  height: 1px;
  background: var(--color-text-light);
  position: relative;
  opacity: 0.4;
  transition: opacity 0.3s ease, width 0.3s ease;
}

.cta-block:hover .cta-block__arrow {
  opacity: 0.8;
  width: 48px;
}

/* ── Gift Card Section ── */
.giftcard__content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}

.giftcard__btn {
  display: inline-block;
  margin-top: 40px;
  padding: 14px 48px;
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: background 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.giftcard__btn:hover {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}

/* ── Footer ── */
.footer {
  padding: clamp(60px, 8vw, 100px) var(--page-padding);
  background: var(--color-bg-dark);
  color: var(--color-text-light);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}

.footer__col h4 {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.4;
}

.footer__col p,
.footer__col a {
  font-size: 0.8rem;
  line-height: 1.9;
  opacity: 0.7;
  display: block;
}

.footer__col a:hover {
  opacity: 1;
}

.footer__bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--color-divider-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__logo img {
  height: 48px;
  width: auto;
  opacity: 0.6;
}

.footer__copy {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  opacity: 0.3;
}

.footer__social {
  display: flex;
  gap: 20px;
}

.footer__social a svg {
  width: 18px;
  height: 18px;
  fill: var(--color-text-light);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.footer__social a:hover svg {
  opacity: 1;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav__links {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

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

  .concept__visual {
    aspect-ratio: 16/10;
  }

  .orari__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .image-band {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .image-band__item {
    aspect-ratio: 16/10;
  }

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

  .events__body {
    order: 2;
  }

  .events__visual {
    order: 1;
    aspect-ratio: 16/10;
  }

  .cta-blocks {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

/* ── Accessibilità ── */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Link in Bio ── */
.linkbio {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(40px, 8vh, 100px) var(--page-padding);
  background-color: var(--color-bg-dark);
  background-image: var(--linkbio-bg-desktop, none);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.linkbio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
}

.linkbio__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.linkbio__buttons {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.linkbio__btn {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: 1px solid var(--color-text-light);
  color: var(--color-text-light);
  background: rgba(245, 242, 237, 0.06);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease;
}

.linkbio__btn:hover {
  background: var(--color-text-light);
  color: var(--color-bg-dark);
}

.linkbio__social {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 32px;
  justify-content: center;
}

.linkbio__social a {
  color: var(--color-text-light);
  opacity: 0.8;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.linkbio__social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.linkbio__social svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .linkbio {
    background-image: var(--linkbio-bg-mobile, var(--linkbio-bg-desktop, none));
  }
}

/* ── Pagina Contatti ── */
.contact {
  /* spazio extra in alto per la navbar fissa */
  padding-top: calc(var(--section-spacing) + 40px);
}

.contact__head {
  margin-bottom: clamp(40px, 6vw, 72px);
}

.contact__head .section__title {
  margin-bottom: 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}

.contact__info-title {
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-bottom: 32px;
}

.contact__info-item {
  margin-bottom: 28px;
}

.contact__info-item h4 {
  font-size: 0.65rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.45;
}

.contact__info-item p,
.contact__info-item a {
  font-size: 0.85rem;
  line-height: 1.8;
  opacity: 0.85;
  display: block;
}

.contact__info-item a:hover {
  opacity: 1;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* ── Contact Form 7 (in linea col tema) ── */
.wpcf7 {
  font-family: var(--font-body);
}

.wpcf7-form p {
  margin-bottom: 22px;
}

/* Etichette */
.wpcf7-form label {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
  margin-bottom: 8px;
}

/* Campi testuali, textarea, select */
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form input[type="date"],
.wpcf7-form input[type="time"],
.wpcf7-form input[type="password"],
.wpcf7-form input[type="search"],
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  margin-top: 6px;
  padding: 13px 15px;
  border: 1px solid var(--color-divider);
  border-radius: 0;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-text);
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form textarea {
  min-height: 140px;
  resize: vertical;
}

.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder {
  color: var(--color-muted);
  opacity: 0.8;
}

.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus {
  border-color: var(--color-text);
}

/* Select: freccia personalizzata */
.wpcf7-form select {
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  cursor: pointer;
}

/* Checkbox & radio */
.wpcf7-form .wpcf7-checkbox .wpcf7-list-item,
.wpcf7-form .wpcf7-radio .wpcf7-list-item,
.wpcf7-form .wpcf7-acceptance .wpcf7-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px 0;
}

.wpcf7-form .wpcf7-list-item-label {
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.85;
  line-height: 1.5;
}

.wpcf7-form input[type="checkbox"],
.wpcf7-form input[type="radio"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 3px;
  accent-color: var(--color-text);
  cursor: pointer;
}

/* L'acceptance (consenso privacy) ha label discorsiva, non in maiuscolo */
.wpcf7-form .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.75;
  margin-bottom: 0;
}

/* File upload */
.wpcf7-form input[type="file"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--color-text);
  padding: 10px 0;
}

.wpcf7-form input[type="file"]::file-selector-button {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 20px;
  margin-right: 16px;
  border: 1px solid var(--color-text);
  background: none;
  color: var(--color-text);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.wpcf7-form input[type="file"]::file-selector-button:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Pulsante invio */
.wpcf7-form input[type="submit"],
.wpcf7-form button[type="submit"] {
  display: inline-block;
  width: auto;
  margin-top: 8px;
  padding: 15px 52px;
  border: 1px solid var(--color-text);
  border-radius: 0;
  background: none;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  -webkit-appearance: none;
  appearance: none;
}

.wpcf7-form input[type="submit"]:hover,
.wpcf7-form button[type="submit"]:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

/* Messaggi di validazione ed esito */
.wpcf7-not-valid-tip {
  color: #c0392b;
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 6px;
}

.wpcf7-form .wpcf7-not-valid {
  border-color: #c0392b !important;
}

.wpcf7-response-output {
  margin: 28px 0 0 !important;
  padding: 14px 18px !important;
  border: 1px solid var(--color-divider) !important;
  border-radius: 0 !important;
  font-size: 0.8rem;
  line-height: 1.6;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.payment-required .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  border-color: #c0392b !important;
}

.wpcf7-form.sent .wpcf7-response-output {
  border-color: #3a7d44 !important;
}

/* Spinner */
.wpcf7-spinner {
  margin: 0 0 0 14px;
}

