/*
Theme Name: Dormi in Centro
Theme URI: https://example.com/
Author: Archimede - ASI srl
Author URI: https://arc.it
Description: Tema WordPress per Dormi in Centro - Fornovo di Taro
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dormi-in-centro
*/

/* Dormi in Centro - Fornovo di Taro */

:root {
  --blue-dark: #1a3a6b;
  --blue-medium: #2a5298;
  --gold: #e8b923;
  --gold-light: #f5d76e;
  --red-accent: #c0392b;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f1f3f5;
  --gray-200: #e9ecef;
  --gray-600: #6c757d;
  --gray-800: #343a40;
  --shadow: 0 4px 20px rgba(26, 58, 107, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 58, 107, 0.18);
  --radius: 12px;
  --transition: 0.3s ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--gray-800);
  line-height: 1.7;
  background: var(--white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue-medium);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--gold);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.logo-link img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text {
  display: none;
}

.logo-text strong {
  display: block;
  font-size: 1.1rem;
  color: var(--blue-dark);
  line-height: 1.2;
}

.logo-text span {
  font-size: 0.8rem;
  color: var(--gray-600);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--blue-dark);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  color: var(--blue-dark);
  font-size: 1.25rem;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 0.5rem 0.85rem;
  color: var(--blue-dark);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
}

.main-nav a:hover,
.main-nav a.active,
.main-nav .current-menu-item a,
.main-nav .current_page_item a {
  background: var(--blue-dark);
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.35;
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 3rem 0;
  max-width: 700px;
}

.hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.95;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-block;
  background: var(--gold);
  color: var(--blue-dark);
  padding: 0.35rem 1rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hero-home {
  background: var(--gray-50);
}

.hero-home .hero-bg {
  opacity: 1;
}

.hero-home::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 55%, rgba(255, 255, 255, 0.15) 100%);
  z-index: 0;
}

.hero-home .hero-content {
  color: #000;
}

.hero-home .hero h1 {
  color: #000;
}

.hero-home .hero p {
  color: #000;
  opacity: 1;
}

.hero-home .hero-badge {
  background: var(--gold);
  color: var(--blue-dark);
  border: none;
}

.hero-home .btn-outline {
  color: var(--blue-dark);
  border-color: var(--blue-dark);
}

.hero-home .btn-outline:hover {
  background: var(--blue-dark);
  color: var(--white);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform var(--transition), box-shadow var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--blue-dark);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 185, 35, 0.4);
  color: var(--blue-dark);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  margin-left: 0.75rem;
}

.btn-outline:hover {
  background: var(--white);
  color: var(--blue-dark);
}

/* Page header */
.page-header {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-medium) 100%);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
}

.page-header h1 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.page-header p {
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

/* Sections */
section {
  padding: 3.5rem 0;
}

section:nth-child(even) {
  background: var(--gray-50);
}

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--blue-dark);
  margin-bottom: 0.5rem;
}

.section-title .underline {
  width: 60px;
  height: 4px;
  background: var(--gold);
  margin: 0 auto 1rem;
  border-radius: 2px;
}

.section-title p {
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  height: 200px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-body h3 {
  color: var(--blue-dark);
  margin-bottom: 0.75rem;
  font-size: 1.15rem;
}

.card-body p {
  color: var(--gray-600);
  font-size: 0.95rem;
}

/* Features list */
.features-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  list-style: none;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.features-list .icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--gold-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* Two columns */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.two-col img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.two-col h2 {
  color: var(--blue-dark);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.two-col p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* Services grid on home */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.75rem;
}

.service-item {
  background: var(--white);
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--gold);
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.75rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: var(--radius);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--blue-dark);
}

/* Info boxes */
.info-box {
  background: var(--blue-dark);
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.info-box h3 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.info-box ul {
  list-style: none;
}

.info-box li {
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  position: relative;
}

.info-box li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* Links list for events */
.links-list {
  list-style: none;
}

.links-list li {
  padding: 1rem;
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow);
}

.links-list a {
  font-weight: 600;
  word-break: break-all;
}

.links-list p {
  color: var(--gray-600);
  margin-top: 0.35rem;
  font-size: 0.9rem;
}

/* Contact form */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 500;
  color: var(--blue-dark);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-medium);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-info {
  background: var(--gray-50);
  padding: 2rem;
  border-radius: var(--radius);
  margin-top: 2rem;
}

.contact-info h3 {
  color: var(--blue-dark);
  margin-bottom: 1rem;
}

.contact-info p {
  margin-bottom: 0.5rem;
}

.contact-info a {
  font-weight: 600;
}

/* Footer */
.site-footer {
  background: var(--blue-dark);
  color: var(--white);
  padding: 2.5rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-grid h4 {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 1rem;
}

.footer-grid ul {
  list-style: none;
}

.footer-grid li {
  margin-bottom: 0.4rem;
}

.footer-grid a {
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
}

.footer-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-codes {
  margin-top: 0.5rem;
  font-size: 0.8rem;
}

.footer-credit {
  margin-top: 0.75rem;
  font-size: 0.8rem;
}

.footer-credit a {
  color: var(--gold);
  font-weight: 500;
}

.footer-credit a:hover {
  color: var(--gold-light);
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #25D366;
  color: var(--white);
  padding: 0.75rem 1.25rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  color: var(--white);
}

.whatsapp-float img,
.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Alert / notice */
.notice {
  background: #fff3cd;
  border-left: 4px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}

.notice strong {
  color: var(--blue-dark);
}

/* Responsive */
@media (min-width: 768px) {
  .logo-text {
    display: block;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 1rem;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav ul {
    flex-direction: column;
  }

  .main-nav a {
    padding: 0.75rem 1rem;
  }

  .two-col {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 320px;
  }

  .btn-outline {
    margin-left: 0;
    margin-top: 0.75rem;
    display: inline-block;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: 0.85rem;
    border-radius: 50%;
  }
}
