/*
Theme Name: Performa Simple
Theme URI: https://performasrl.it/
Author: Ellepiweb
Description: Tema WordPress minimale per il sito Performa.
Version: 1.0.0
Text Domain: performa-simple
*/


/* ==========================================================================
   Performa Srl — Homepage redesign
   ========================================================================== */

:root {
  --ink: #14181f;
  --muted: #45403a;
  --bg: #ffffff;
  --dark: #101521;
  --accent: #e6541f;
  --accent-dark: #7a2d10;
  --header-blue: #0f3d73;
  --biobarica: #3e7bd6;
  --biobarica-text: #6fa8e8;
  --biobarica-tint: #e9f0fa;
  --oxy4vet: #4fae55;
  --oxy4vet-text: #6fc17a;
  --oxy4vet-tint: #f5faf1;
  --card-neutral: #171c27;
  --card-muted: #7a8194;
  --whatsapp: #25d366;
  --radius-lg: 24px;
  --radius-md: 20px;
  --radius-sm: 10px;

  /* Fluid horizontal gutter: shrinks smoothly instead of jumping at breakpoints */
  --gutter: clamp(20px, 6vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: "Sora", "Manrope", system-ui, sans-serif;
  margin: 0;
}

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

a:hover {
  opacity: 0.85;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  min-height: 44px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}

.btn-dark {
  background: var(--bg);
  color: var(--header-blue);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-white {
  background: #fff;
  color: var(--accent-dark);
}

.icon-btn {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Header ---------- */

.site-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--gutter);
  background: var(--header-blue);
  position: relative;
  z-index: 100;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  flex-shrink: 0;
}

.logo img {
  width: clamp(140px, 20vw, 250px);
  height: auto;
}

.logo .word {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.logo .sub {
  font-size: 11px;
  letter-spacing: 2px;
  color: #b9cbe3;
  font-weight: 600;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.main-nav a.link {
  font-weight: 600;
  font-size: 15px;
  color: #ffffff;
  white-space: nowrap;
}

.main-nav a.link.is-accent {
  font-weight: 700;
  color: #ff8a5b;
}

.social-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-row.light .icon-btn {
  background: #fff;
}
.social-row.dark .icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

/* Hamburger toggle — hidden on desktop */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.menu-toggle svg { display: block; }
.menu-toggle .icon-close { display: none; }

.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

/* ---------- Hero ---------- */

.hero {
  width: 100%;
  padding: clamp(40px, 8vw, 72px) var(--gutter) clamp(56px, 10vw, 96px);
  background: var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 36px);
}

.hero-eyebrow {
  color: var(--header-blue);
  font-size: clamp(22px, 4.2vw, 34px);
  font-weight: 800;
  line-height: 1.25;
  margin: clamp(8px, 3vw, 30px) 0;
  font-family: Sora, Manrope, system-ui, sans-serif;
  text-align: center;
  max-width: 760px;
}

.hero-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Featured brand box (Muscle Decompression) */
.brand-box-featured {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  min-height: clamp(240px, 34vw, 320px);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 44px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(120deg, #1a1108 0%, #3a1a0c 55%, #7a2d10 100%);
}

.brand-box-featured .content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  flex-shrink: 0;
}

.brand-box-featured .title {
  color: #fff;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 5vw, 40px);
  line-height: 1.08;
}

.brand-box-featured .tagline {
  color: #f0c6ae;
  font-size: clamp(14px, 2.2vw, 16px);
  font-weight: 600;
  line-height: 1.5;
}

.logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.logo-slot img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.logo-slot-featured {
  width: clamp(110px, 18vw, 200px);
}


/* Secondary boxes row */
.brand-box-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.brand-box {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 176px;
  border-radius: var(--radius-md);
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.brand-box.biobarica {
  background: var(--card-neutral);
  border-top: 3px solid var(--biobarica);
}
.brand-box.oxy4vet {
  background: var(--card-neutral);
  border-top: 3px solid var(--oxy4vet);
}

.brand-box-text {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  height: 100%;
  min-width: 0;
}

.brand-box .eyebrow {
  color: var(--card-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.brand-box .name {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 24px;
}

.brand-box .name.biobarica {
  color: var(--biobarica-text);
}
.brand-box .name.oxy4vet {
  color: var(--oxy4vet-text);
}

.brand-box .link-line {
  color: var(--card-muted);
  font-size: 14px;
}

.brand-box .logo-slot {
  width: clamp(56px, 20vw, 180px);
}

/* ---------- Section layout ---------- */

.section {
  width: 100%;
  padding: clamp(56px, 10vw, 96px) var(--gutter);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 64px);
  align-items: center;
}

.section-eyebrow {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.section-title {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.section-text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.section-link {
  font-weight: 700;
  font-size: 15px;
}

/* Muscle Decompression featured section */
#muscle-decompression {
  background: #fff4ee;
}
#muscle-decompression .section-eyebrow {
  color: var(--accent);
}
#muscle-decompression .section-title {
  font-size: clamp(28px, 4.6vw, 40px);
}
#muscle-decompression .section-text {
  font-size: clamp(15px, 2vw, 17px);
}

.benefit-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}

.benefit-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink);
  font-weight: 600;
}

.benefit-item svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.image-placeholder {
  background: #fff;
  border: 2px dashed #e6b39c;
  border-radius: var(--radius-lg);
  min-height: clamp(220px, 34vw, 380px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #c97a56;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Biobarica section */
#biobarica {
  background: var(--bg);
}
#biobarica .section-eyebrow {
  color: var(--biobarica);
}
#biobarica .section-link {
  color: var(--biobarica);
}
#biobarica .logo-tile img,
#oxy4vet .logo-tile img {
  max-width: 100%;
  max-height: 280px;
  width: auto;
  object-fit: contain;
}
#biobarica .logo-tile {
  background: var(--biobarica-tint);
  border-radius: var(--radius-lg);
  min-height: clamp(220px, 30vw, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
#biobarica .logo-tile span {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 30px);
  color: var(--biobarica);
}

/* Oxy4Vet section */
#oxy4vet {
  background: var(--oxy4vet-tint);
}
#oxy4vet .section-eyebrow {
  color: var(--oxy4vet);
}
#oxy4vet .section-link {
  color: var(--oxy4vet);
}
#oxy4vet .logo-tile {
  background: #e4f1dd;
  border-radius: var(--radius-lg);
  min-height: clamp(220px, 30vw, 340px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
#oxy4vet .logo-tile span {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(24px, 4vw, 30px);
  color: var(--oxy4vet);
}

/* ---------- Contact ---------- */

#contatti {
  background: var(--header-blue);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 72px);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info h2 {
  color: #fff;
  font-size: clamp(28px, 4.6vw, 36px);
  font-weight: 800;
}

.contact-info > p {
  color: #b7bcc9;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  max-width: 420px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 8px;
}

.contact-details .label {
  color: #7a8194;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  margin-bottom: 6px;
}

.contact-details .value {
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  word-break: break-word;
}

.contact-details a.value {
  display: block;
  font-size: 16px;
  font-weight: 600;
}

.contact-form {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}

.field input,
.field textarea {
  border: 1px solid #dad6cc;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px; /* 16px avoids iOS auto-zoom on focus */
  font-family: inherit;
  width: 100%;
}

.field textarea {
  resize: vertical;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.consent-row input {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.consent-row label {
  font-size: 13px;
  color: #6b6659;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 6px;
  width: 100%;
}

@media (min-width: 480px) {
  .contact-form .btn { width: auto; }
}

.site-footer-bottom {
  max-width: 1200px;
  margin: clamp(40px, 8vw, 72px) auto 0;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.site-footer-bottom .copyright {
  color: #7a8194;
  font-size: 13px;
}

.footer-right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-legal {
  display: flex;
  gap: 20px;
}

.footer-legal a {
  color: #7a8194;
  font-size: 13px;
}

/* ---------- WhatsApp fixed button ---------- */

.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6);
  z-index: 60;
}

.contact-message {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
}

.contact-message.success {
    display: block;
    background: #eaf8ef;
    color: #18753a;
}

.contact-message.error {
    display: block;
    background: #fff0ec;
    color: #b8321c;
}

.contact-form button:disabled {
    opacity: .65;
    cursor: not-allowed;
}


/* =========================================================
   WORDPRESS PAGES
========================================================= */

.wp-page {
    min-height: 70vh;
    padding: 160px 0 100px;
    background: #ffffff;
}

.wp-page-article {
    max-width: 900px;
    margin: 0 auto;
}

.wp-page-heading {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.wp-page-title {
    font-family: "Sora", sans-serif;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    margin: 12px 0 0;
    color: #14181f;
}

.wp-page-content {
    font-family: "Manrope", sans-serif;
    font-size: 16px;
    line-height: 1.8;
    color: #454b54;
}

.wp-page-content h2 {
    font-family: "Sora", sans-serif;
    font-size: 28px;
    line-height: 1.25;
    color: #14181f;
    margin: 50px 0 18px;
}

.wp-page-content h3 {
    font-family: "Sora", sans-serif;
    font-size: 20px;
    color: #14181f;
    margin: 35px 0 12px;
}

.wp-page-content p {
    margin: 0 0 20px;
}

.wp-page-content ul,
.wp-page-content ol {
    margin: 0 0 25px;
    padding-left: 25px;
}

.wp-page-content li {
    margin-bottom: 8px;
}

.wp-page-content a {
    color: #e6541f;
    text-decoration: underline;
}

.wp-page-content strong {
    color: #14181f;
}

.page-footer {
    background: #14181f;
    color: #ffffff;
    padding: 30px 0;
}

.page-footer .site-footer-bottom {
    margin: 0;
    padding: 0;
    border: 0;
}

@media (max-width: 860px) {

    .wp-page {
        padding: 120px 0 70px;
    }

    .wp-page-heading {
        margin-bottom: 35px;
    }

    .wp-page-content h2 {
        font-size: 24px;
        margin-top: 40px;
    }

}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet: tighten a few layouts before the full mobile stack */
@media (max-width: 1024px) {
  .main-nav {
    gap: 20px;
  }

  #biobarica .section-grid,
  #oxy4vet .section-grid {
    gap: 40px;
  }
}

/* Mobile nav breakpoint: collapse header into a hamburger menu */
@media (max-width: 860px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--header-blue);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .site-header.is-open .main-nav {
    max-height: 420px;
  }

  .main-nav a.link {
    padding: 16px var(--gutter);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
  }

  .main-nav .social-row {
    padding: 16px var(--gutter);
    justify-content: flex-start;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .main-nav .btn {
    margin: 16px var(--gutter);
    width: calc(100% - 2 * var(--gutter));
  }
}

/* Mobile stack: grids, forms, footer */
@media (max-width: 780px) {
  .hero-eyebrow {
    text-align: left;
  }

  .hero-heading {
    align-items: flex-start;
  }

  .brand-box-featured {
    align-items: flex-start;
    flex-direction: column-reverse;
    justify-content: flex-end;
    gap: 20px;
  }

  .logo-slot-featured {
    width: clamp(80px, 24vw, 250px);
    align-self: flex-start;
  }

  .brand-box-row {
    grid-template-columns: 1fr;
  }

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

  #biobarica .logo-tile,
  #oxy4vet .logo-tile {
    order: -1;
  }

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

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

  .site-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-right {
    width: 100%;
    justify-content: space-between;
  }
}

/* Small phones */
@media (max-width: 420px) {
  .site-header {
    padding: 14px var(--gutter);
  }

  .brand-box-featured {
    padding: 22px;
    border-radius: var(--radius-md);
  }

  .brand-box {
    padding: 22px;
  }

  .contact-form {
    padding: 22px;
  }

  .whatsapp-fab {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .whatsapp-fab svg {
    width: 26px;
    height: 26px;
  }
}
