
/*
Theme Name: Turisti
Theme URI: https://kubeitalia.it/
Author: kubeitalia
Author URI: https://kubeitalia.it/
Description: Tema WordPress "Turisti" per una guida turistica interattiva di Catania.
Version: 1.0
*/

:root {
  --primary: #0077cc;
  --text: #1a1a1a;
  --background: #f7f9fc;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.08) 0px 4px 12px;
  --radius: 12px;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  line-height: 1.6;
  background: var(--background);
  color: var(--text);
  transition: background 0.3s, color 0.3s;
}

body.dark-mode {
  --background: #121212;
  --text: #eeeeee;
  --white: #1e1e1e;
  --primary: #66b2ff;
  --shadow: rgba(0, 0, 0, 0.5) 0px 4px 12px;
}

header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
}

.header-logo {
  height: 60px;
}

.header-center {
  flex: 1;
  text-align: center;
}

.top-nav {
  display: inline-flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  font-size: 1rem;
}

.top-nav a, .bottom-nav a {
  text-decoration: none;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
  cursor: pointer;
}

.top-nav a:hover, .bottom-nav a:hover {
  color: #004f8c;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.search-icon, .dark-toggle {
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--primary);
  background: none;
  border: none;
}

.search-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 2rem;
  display: none;
  z-index: 2000;
  transition: opacity 0.3s ease;
}

.search-container.active {
  display: flex;
}

.search-input {
  width: 100%;
  max-width: 600px;
  padding: 0.75rem 1rem;
  font-size: 1.2rem;
  border: none;
  border-radius: var(--radius);
  outline: none;
  box-shadow: var(--shadow);
}

.close-search {
  margin-top: 1.5rem;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.tab-content {
  display: none;
  padding: 4rem 1.5rem;
  max-width: 1000px;
  margin: auto;
}

.tab-content.active {
  display: block;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  border-left: 6px solid var(--primary);
  padding-left: 0.5rem;
}

.location {
  margin-bottom: 2rem;
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.location h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 1.25rem;
}

.location-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.location-details div {
  flex: 1 1 200px;
  background: #eef4fa;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}

.itinerary-controls {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
}

.itinerary-controls input {
  padding: 0.5rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex: 1;
}

.itinerary-controls button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.bottom-nav {
  display: none;
}

@media (max-width: 768px) {
  .top-nav {
    display: none;
  }

  .bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-top: 1px solid #ccc;
    justify-content: space-around;
    padding: 0.75rem 0;
    z-index: 1000;
    box-shadow: var(--shadow);
  }

  .header-logo {
    height: 50px;
  }
}