/* Viyapa-Mucasu - Main Stylesheet */

/* Reset e impostazioni globali */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --gradient-bg: linear-gradient(135deg, #00b4db 0%, #ff7e5f 100%);
  --accent-olive: #708238;
  --accent-purple: #4b0082;
  --text-dark: #333333;
  --text-light: #ffffff;
  --shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  --card-bg: rgba(255, 255, 255, 0.85);
  --neon-border: 0 0 10px var(--accent-purple);
}

body {
  font-family: 'Segoe UI', 'Roboto', sans-serif;
  color: var(--text-dark);
  background: var(--gradient-bg);
  background-attachment: fixed;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-style: italic;
  margin-bottom: 1rem;
  text-align: center;
}

h1 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2.3rem;
  color: var(--accent-purple);
}

h3 {
  font-size: 1.8rem;
  color: var(--accent-olive);
}

p {
  margin-bottom: 1rem;
  text-align: center;
}

.section > .container > p {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

a {
  color: var(--accent-purple);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-olive);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 5rem 0;
  animation: fadeIn 1s ease-in-out;
}

/* Layout e componenti */
.header {
  padding: 1rem 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  width: 180px;
  height: auto;
}

.logo svg {
  width: 100%;
  height: auto;
}

.navigation ul {
  display: flex;
  list-style: none;
}

.navigation li {
  margin-left: 1.5rem;
}

/* Hero section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-position: center;
  background-size: cover;
  position: relative;
  overflow: hidden;
}

.hero-content {
  animation: slideUp 1s ease-out;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.hero h1 {
  color: var(--text-light);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero p {
  color: var(--text-light);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* About section */
.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.about-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease;
  animation: fadeIn 1s ease-in-out;
}

.about-card:hover {
  transform: translateY(-10px);
}

.about-card p {
  text-align: center;
}

/* Recipe cards */
.recipes {
  background: rgba(255, 255, 255, 0.5);
}

.recipe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 3rem;
}

.recipe-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  position: relative;
  animation: fadeIn 1s ease-in-out;
  transition: all 0.3s ease;
}

.recipe-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--neon-border);
}

.recipe-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.recipe-content {
  padding: 1.5rem;
  text-align: center;
}

.recipe-price {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent-purple);
  margin: 0.5rem 0;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.step {
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 50px;
  background: var(--accent-olive);
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

/* Testimonials */
.testimonials {
  background: rgba(255, 255, 255, 0.5);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
  text-align: center;
}

.testimonial:before {
  content: "\201C";
  font-size: 5rem;
  position: absolute;
  top: -10px;
  left: 10px;
  color: rgba(0, 0, 0, 0.1);
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  justify-content: center;
}

.client-info img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 1rem;
}

/* Form styling */
.contact-form {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  max-width: 600px;
  margin: 0 auto;
  animation: fadeIn 1s ease-in-out;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

input, select, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid var(--accent-olive);
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent-purple);
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.radio-option {
  flex: 1;
  min-width: 150px;
  background: white;
  border: 2px solid var(--accent-olive);
  border-radius: 5px;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.radio-option:hover {
  background: rgba(113, 130, 56, 0.1);
}

input[type="radio"] {
  display: none;
}

input[type="radio"]:checked + .radio-option {
  border-color: var(--accent-purple);
  background: rgba(75, 0, 130, 0.1);
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1rem;
}

input[type="checkbox"] {
  width: auto;
  margin-right: 10px;
}

.btn {
  display: inline-block;
  background: var(--accent-purple);
  color: white;
  padding: 0.8rem 2rem;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background: var(--accent-olive);
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 1rem;
  z-index: 9999;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-text {
  flex: 1;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* Footer */
.footer {
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  color: white;
  font-size: 1.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  text-align: left;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
}

.footer a:hover {
  color: white;
}

.copyright {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Alert for form errors */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 5px;
  text-align: left;
}

.alert-error {
  background: rgba(255, 0, 0, 0.1);
  border: 1px solid rgba(255, 0, 0, 0.3);
  color: darkred;
}

.alert ul {
  margin-left: 1.5rem;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .header {
    position: relative; /* Remove fixed position on mobile */
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .navigation {
    margin-top: 1rem;
  }
  
  .navigation ul {
    flex-direction: column;
    align-items: center;
  }
  
  .navigation li {
    margin: 0.5rem 0;
    margin-left: 0;
  }
  
  .recipe-grid,
  .steps,
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
  
  .recipe-card {
    max-width: 400px;
    margin: 0 auto;
  }
  
  .cookie-banner {
    flex-direction: column;
    text-align: center;
  }
  
  .cookie-buttons {
    margin-top: 1rem;
  }
  
  .footer-column h3 {
    text-align: center;
  }
  
  .footer-links {
    text-align: center;
  }
}

@media screen and (max-width: 480px) {
  .section {
    padding: 3rem 0;
  }
  
  .radio-group {
    flex-direction: column;
  }
  
  .radio-option {
    width: 100%;
  }
} 