/*
Theme Name: Metodo RINATA
Theme URI: https://metodorinata.it
Author: Marisa Pagliuca
Author URI: https://metodorinata.it
Description: Tema ufficiale Metodo RINATA 40+ — compatibile con Elementor ed Elementor Pro. Design elegante, femminile e professionale per il brand di Marisa Pagliuca.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metodorinata
Tags: elementor, custom-header, custom-footer, full-width-template, blog, portfolio
*/

/* ==========================================
   PALETTE UFFICIALE RINATA
   ========================================== */
:root {
  --sfondo-crema: #F2E8D5;
  --oro-antico:   #7A6435;
  --lavanda-soft: #9B8BB0;
  --salvia-verde: #8A9E82;
  --oro-luminoso: #C4A35A;
  --testo-scuro:  #5C4D26;
  --sfondo-alt:   #EDE0C8;
  --bianco:       #FFFFFF;
}

/* ==========================================
   RESET & BASE
   ========================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--sfondo-crema);
  color: var(--oro-antico);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
}

a {
  color: var(--oro-antico);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--oro-luminoso); }

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

ul, ol { list-style: none; }

/* ==========================================
   LAYOUT
   ========================================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.site-main {
  flex: 1;
}

/* ==========================================
   ANIMAZIONI
   ========================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-up { animation: fadeUp 0.75s ease both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.25s; }
.delay-3 { animation-delay: 0.4s; }
.delay-4 { animation-delay: 0.55s; }

/* ==========================================
   PULSANTI
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
  line-height: 1;
}

.btn-primary {
  background-color: var(--oro-luminoso);
  color: var(--sfondo-crema);
  box-shadow: 0 4px 18px rgba(196,163,90,0.35);
}
.btn-primary:hover {
  background-color: #b3924e;
  color: var(--sfondo-crema);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--salvia-verde);
  color: var(--sfondo-crema);
  box-shadow: 0 4px 18px rgba(138,158,130,0.3);
}
.btn-secondary:hover {
  background-color: #728a6b;
  color: var(--sfondo-crema);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid rgba(122,100,53,0.35);
  color: var(--oro-antico);
}
.btn-outline:hover {
  border-color: var(--oro-antico);
  background-color: rgba(122,100,53,0.06);
  color: var(--oro-antico);
}

.btn-lavanda {
  background-color: var(--lavanda-soft);
  color: #fff;
  box-shadow: 0 4px 18px rgba(155,139,176,0.3);
}
.btn-lavanda:hover {
  background-color: #8a79a0;
  color: #fff;
  transform: translateY(-2px);
}

/* ==========================================
   HEADER / NAVIGAZIONE
   ========================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(242,232,213,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,100,53,0.1);
  padding: 14px 0;
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 4px 24px rgba(122,100,53,0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.site-logo {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  flex-shrink: 0;
}

.site-logo img {
  max-height: 56px;
  width: auto;
}

.logo-text-fallback {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
}

.logo-main {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--oro-antico);
  letter-spacing: 4px;
  text-transform: uppercase;
}

.logo-dec {
  font-size: 0.7rem;
  color: var(--oro-luminoso);
  letter-spacing: 2px;
  margin-top: 1px;
}

.logo-sub {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--salvia-verde);
  margin-top: 1px;
}

/* Navigazione desktop */
.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 28px;
  align-items: center;
}

.main-navigation ul a {
  text-decoration: none;
  color: var(--oro-antico);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.2s;
  padding-bottom: 2px;
}

.main-navigation ul a:hover,
.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  color: var(--oro-luminoso);
}

.main-navigation ul li.current-menu-item > a,
.main-navigation ul li.current_page_item > a {
  border-bottom: 2px solid var(--oro-luminoso);
}

.nav-cta-link {
  background-color: var(--salvia-verde) !important;
  color: var(--sfondo-crema) !important;
  padding: 9px 20px !important;
  border-radius: 30px !important;
  border-bottom: none !important;
}

.nav-cta-link:hover {
  background-color: #728a6b !important;
  color: var(--sfondo-crema) !important;
}

/* Hamburger mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--oro-antico);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(242,232,213,0.98);
  z-index: 9999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--oro-antico);
  text-decoration: none;
  letter-spacing: 2px;
}

.mobile-nav a:hover { color: var(--oro-luminoso); }

.mobile-nav-close {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 1.8rem;
  cursor: pointer;
  background: none;
  border: none;
  color: var(--oro-antico);
  line-height: 1;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background-color: var(--oro-antico);
  color: rgba(242,232,213,0.75);
  padding: 48px 0;
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--sfondo-crema);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

.footer-logo span { color: var(--salvia-verde); }

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(242,232,213,0.7);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--sfondo-crema); }

.footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(242,232,213,0.12);
  font-size: 0.75rem;
  color: rgba(242,232,213,0.5);
}

.footer-email a {
  color: rgba(242,232,213,0.7);
  text-decoration: none;
}
.footer-email a:hover { color: var(--sfondo-crema); }

/* ==========================================
   SEZIONI COMUNI
   ========================================== */
.section-subtitle {
  color: var(--salvia-verde);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: block;
}

.section-title-wrapper {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-title-wrapper h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.6rem;
  color: var(--oro-antico);
  line-height: 1.2;
}

.section-title-wrapper p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--testo-scuro);
  margin-top: 14px;
}

/* Tag badge */
.tag {
  display: inline-block;
  background-color: rgba(138,158,130,0.14);
  color: var(--salvia-verde);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

/* Quote block */
.about-quote {
  background: linear-gradient(135deg, rgba(155,139,176,0.1), rgba(138,158,130,0.1));
  border-left: 3px solid var(--lavanda-soft);
  padding: 16px 20px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--oro-antico);
}

/* Placeholder immagini Elementor */
.img-placeholder {
  background: linear-gradient(135deg, var(--sfondo-alt) 0%, rgba(196,163,90,0.15) 50%, rgba(155,139,176,0.2) 100%);
  border: 2px dashed rgba(122,100,53,0.25);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: rgba(122,100,53,0.45);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-align: center;
  padding: 24px;
}

/* Form styles */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-group label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(122,100,53,0.65);
}

.form-control {
  width: 100%;
  background-color: var(--sfondo-crema);
  border: 1px solid rgba(122,100,53,0.2);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--oro-antico);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  border-color: var(--salvia-verde);
  box-shadow: 0 0 0 3px rgba(138,158,130,0.15);
}

.form-control::placeholder { color: rgba(122,100,53,0.35); }

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================
   BLOG ARCHIVE
   ========================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.blog-card {
  background-color: var(--sfondo-crema);
  border: 1px solid rgba(122,100,53,0.09);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(122,100,53,0.1);
}

.blog-card-image {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--sfondo-alt) 0%, rgba(155,139,176,0.2) 100%);
  border-bottom: 1px solid rgba(122,100,53,0.07);
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card-body {
  padding: 24px;
}

.blog-card-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(122,100,53,0.55);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-card-meta .cat-link {
  color: var(--salvia-verde);
  text-decoration: none;
  font-weight: 700;
}

.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  color: var(--oro-antico);
  margin-bottom: 10px;
  line-height: 1.3;
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-title a:hover { color: var(--oro-luminoso); }

.blog-card-excerpt {
  font-size: 0.85rem;
  font-weight: 300;
  color: var(--testo-scuro);
  line-height: 1.6;
  margin-bottom: 18px;
}

.blog-card-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--salvia-verde);
  text-decoration: none;
  letter-spacing: 0.5px;
}

.blog-card-link:hover { color: var(--oro-antico); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}

.pagination a,
.pagination span {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(122,100,53,0.2);
  color: var(--oro-antico);
  transition: all 0.2s;
}

.pagination a:hover,
.pagination .current {
  background-color: var(--oro-luminoso);
  color: var(--sfondo-crema);
  border-color: var(--oro-luminoso);
}

/* Single post */
.single-post-hero {
  padding: 80px 0 60px;
  text-align: center;
  border-bottom: 1px solid rgba(122,100,53,0.08);
}

.single-post-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 24px;
}

.single-post-content p {
  font-size: 1rem;
  font-weight: 300;
  color: var(--testo-scuro);
  margin-bottom: 20px;
  line-height: 1.8;
}

.single-post-content h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.9rem;
  color: var(--oro-antico);
  margin: 36px 0 16px;
}

.single-post-content h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--oro-antico);
  margin: 28px 0 12px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 992px) {
  .main-navigation { display: none; }
  .menu-toggle { display: flex; }

  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section-title-wrapper h2 { font-size: 2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 576px) {
  .blog-grid { grid-template-columns: 1fr; }
  .btn { padding: 12px 24px; font-size: 0.88rem; }
}

/* ==========================================
   ELEMENTOR OVERRIDES
   ========================================== */
.elementor-section,
.e-con {
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.elementor-widget-heading .elementor-heading-title {
  font-family: 'Cormorant Garamond', serif;
}

/* Assicura che il body Elementor erediti il font */
body.elementor-page .elementor {
  font-family: 'Plus Jakarta Sans', sans-serif;
}
