/*
Theme Name: Attiliobar Contact Theme
Theme URI: https://attiliobar.it/
Author: Attiliobar
Description: Tema minimale con homepage composta da logo e form contatti.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: attiliobar-contact-theme
*/

:root {
  --bg-1: #000000;
  --text: #f3f4f6;
  --muted: #b8bec9;
  --panel: #050505;
  --border: #2d2d2d;
  --accent: #d3c21b;
  --accent-hover: #b9ab18;
  --ok: #2a8b57;
  --fail: #b53a34;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: var(--bg-1);
}

.page-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 48px;
  padding: 60px 24px 48px;
}

.contact-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36);
  opacity: 0.86;
  text-align: center;
  margin-top: 12px;
}

.brand {
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 24px 0;
}

.brand img {
  max-width: 470px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.48));
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  text-align: center;
}

.contact-form label:nth-of-type(n + 3) {
  grid-column: 1 / -1;
}

.contact-form label {
  display: grid;
  gap: 3px;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 400;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 9px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #0a0a0a;
  color: #d3d7de;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(211, 194, 27, 0.2);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 82px;
}

.contact-form button {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(180px, 100%);
  border: 1px solid #6e6717;
  border-radius: 8px;
  padding: 8px 12px;
  background: #1a1a1a;
  color: #cbc266;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.15s ease;
}

.contact-form button:hover,
.contact-form button:focus-visible {
  background: #242424;
}

.contact-form button:active {
  transform: translateY(1px);
}

.notice {
  margin: 0 0 10px;
  font-size: 0.95rem;
  text-align: center;
}

.notice--ok {
  color: var(--ok);
}

.notice--fail {
  color: var(--fail);
}

@media (max-width: 640px) {
  .page-wrap {
    gap: 36px;
    padding-top: 42px;
  }

  .contact-card {
    max-width: 100%;
    padding: 16px;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .contact-form label:nth-of-type(n + 3) {
    grid-column: auto;
  }

  .brand img {
    max-width: 300px;
  }
}

/* ===== Booking Card ===== */

.booking-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid #262626;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.36);
  text-align: center;
}

.booking-card h2 {
  margin: 0 0 20px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

.booking-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.booking-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.booking-link--phone {
  color: #cbc266;
  border: 1px solid #6e6717;
  background: #1a1a1a;
}

.booking-link--phone:hover,
.booking-link--phone:focus-visible {
  background: #242424;
}

.booking-link--whatsapp {
  color: #25d366;
  border: 1px solid #1a7f3e;
  background: #0d1f12;
}

.booking-link--whatsapp:hover,
.booking-link--whatsapp:focus-visible {
  background: #142a18;
}

.booking-link:active {
  transform: translateY(1px);
}

.booking-address {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ===== Footer & Instagram ===== */

.site-footer {
  width: 100%;
  background: var(--panel);
  border-top: 1px solid #262626;
  padding: 36px 24px 24px;
  text-align: center;
}

.instagram-section {
  max-width: 720px;
  margin: 0 auto 20px;
}

.instagram-section h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.ig-subtitle {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---- Instagram Embed ---- */

.ig-embed-wrap {
  margin: 0 auto 20px;
  max-width: 540px;
}

/* ---- Follow Button ---- */

.ig-follow-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  color: #e1306c;
  border: 1px solid #e1306c;
  border-radius: 8px;
  padding: 10px 22px;
  transition: background 0.2s ease, transform 0.15s ease;
}

.ig-follow-btn:hover,
.ig-follow-btn:focus-visible {
  background: rgba(225, 48, 108, 0.1);
}

.ig-follow-btn:active {
  transform: translateY(1px);
}

.footer-copy {
  margin: 0;
  font-size: 0.82rem;
  color: #666;
}

@media (max-width: 640px) {
  .booking-card {
    max-width: 100%;
    padding: 22px 18px;
  }

  .booking-card h2 {
    font-size: 1.1rem;
  }

  .site-footer {
    padding: 36px 16px 18px;
  }
}
