/* 
  style.css - Main stylesheet for Chicken Road Italia website
  Version: 1.0.0
  Framework: Bulma (0.9.4)
*/

/* ======= CSS VARIABLES ======= */
:root {
  /* Base colors */
  --primary-color: #FF6B35; /* Primary: Orange */
  --secondary-color: #1C77C3; /* Secondary/Complementary: Blue */
  --accent-color: #39A9DB; /* Light blue accent */
  --dark-accent: #2D3E50; /* Dark blue/slate for contrast */
  --success-color: #48C774;
  
  /* Neutral shades */
  --light-color: #F9F9F9;
  --light-gray: #E6E6E6;
  --mid-gray: #999;
  --dark-gray: #444;
  --darker-gray: #222;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.15);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: rgba(0, 0, 0, 0.1);
  --glass-blur: 10px;
  
  /* Font sizes */
  --h1-size: 3.5rem;
  --h2-size: 2.8rem;
  --h3-size: 2.2rem;
  --h4-size: 1.8rem;
  --h5-size: 1.4rem;
  --p-size: 1.1rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Animation timing */
  --transition-fast: 0.2s;
  --transition-medium: 0.4s;
  --transition-slow: 0.6s;
  
  /* Border radius */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-inset: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* ======= GLOBAL STYLES ======= */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  color: var(--dark-gray);
  line-height: 1.6;
  overflow-x: hidden;
  background-color: var(--light-color);
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark-accent);
  margin-bottom: 0.5em;
}

p {
  font-size: var(--p-size);
  margin-bottom: 1.5em;
}

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

a {
  color: var(--secondary-color);
  transition: color var(--transition-fast) ease-in-out;
}

a:hover {
  color: var(--primary-color);
  text-decoration: none;
}

/* ======= UTILITY CLASSES ======= */
.has-text-white {
  color: white !important;
}

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px 0 var(--glass-shadow);
  padding: var(--spacing-md);
  transition: transform var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px 0 var(--glass-shadow);
}

.image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-sm);
  position: relative;
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium) ease;
}

.image-container:hover img {
  transform: scale(1.05);
}

/* ======= BUTTON STYLES ======= */
.button {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: all var(--transition-medium) ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
}

.button.is-primary {
  background-color: var(--primary-color);
  border-color: transparent;
}

.button.is-primary:hover {
  background-color: var(--dark-accent);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.button.is-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.pulse-button {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 107, 53, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 53, 0);
  }
}

/* ======= HEADER/NAVBAR ======= */
.navbar {
  transition: background-color var(--transition-medium) ease, box-shadow var(--transition-medium) ease;
  padding: 0.5rem 1rem;
}

.navbar.is-transparent {
  background-color: transparent;
}

.navbar.is-fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand .title {
  margin-bottom: 0;
  color: var(--primary-color);
}

.navbar-item {
  font-family: 'Oswald', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-fast) ease;
}

.navbar-burger span {
  height: 2px;
  width: 20px;
  left: calc(50% - 10px);
}

/* ======= HERO SECTION ======= */
.hero {
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.7) 100%);
  z-index: 1;
}

.hero-body {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-title {
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero .subtitle {
  margin-bottom: 2rem;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.animated-title {
  animation: fadeInUp 1.5s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.scroll-down-arrow {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 0 auto;
  margin-bottom: 20px;
  cursor: pointer;
}

.scroll-down-arrow span {
  position: absolute;
  top: 0;
  left: 50%;
  width: 24px;
  height: 24px;
  margin-left: -12px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
  animation: scrollDown 2s infinite;
  box-sizing: border-box;
}

.scroll-down-arrow span:nth-of-type(1) {
  animation-delay: 0s;
}

.scroll-down-arrow span:nth-of-type(2) {
  top: 16px;
  animation-delay: 0.15s;
}

.scroll-down-arrow span:nth-of-type(3) {
  top: 32px;
  animation-delay: 0.3s;
}

@keyframes scrollDown {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* ======= MISSION SECTION ======= */
#mission .glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#mission .card-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

#mission .content {
  padding: var(--spacing-md);
}

/* ======= METHODOLOGY SECTION ======= */
.method-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.method-card .card-image {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.method-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium) ease;
}

.method-card:hover .card-image img {
  transform: scale(1.1);
}

.method-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* ======= INSIGHTS SECTION ======= */
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  margin: var(--spacing-md) 0;
}

.stat-item {
  text-align: center;
  padding: var(--spacing-sm) var(--spacing-md);
  margin: var(--spacing-xs);
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  border-radius: var(--radius-md);
  min-width: 150px;
  transition: transform var(--transition-medium) ease;
}

.stat-item:hover {
  transform: scale(1.05);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  display: block;
  font-size: 1rem;
  color: var(--dark-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ======= RESOURCE CARDS ======= */
.resource-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.resource-card .card-image {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.resource-card .image-container {
  height: 100%;
  width: 100%;
  margin-bottom: 0;
}

.resource-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.resource-card .button {
  margin-top: auto;
}

/* ======= CASE STUDIES SECTION ======= */
.case-study-card {
  overflow: hidden;
  transition: transform var(--transition-medium) ease;
}

.case-study-card:hover {
  transform: translateY(-5px);
}

.case-study-card .image-container {
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.case-study-card .image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium) ease;
}

.case-study-card:hover .image-container img {
  transform: scale(1.05);
}

/* ======= MEDIA SECTION ======= */
.video-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-placeholder {
  position: relative;
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  transition: transform var(--transition-medium) ease;
}

.video-placeholder:hover {
  transform: scale(1.02);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background-color: rgba(255, 107, 53, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast) ease;
}

.play-button i {
  color: white;
  font-size: 2rem;
}

.play-button:hover {
  background-color: var(--primary-color);
  transform: translate(-50%, -50%) scale(1.1);
}

.gallery-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-card .card-image {
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.gallery-card .image-container {
  height: 100%;
  width: 100%;
  margin-bottom: 0;
}

.gallery-card .card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: var(--spacing-md);
}

/* ======= RESEARCH SECTION ======= */
#research .glass-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#research .card-image {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
}

#research .content {
  padding: var(--spacing-sm);
}

.research-cta {
  margin-top: var(--spacing-md);
}

/* ======= PARTNERS SECTION ======= */
.partner-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
}

.partner-card .card-image {
  height: 150px;
  width: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.partner-card .image-container {
  height: 100%;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-card .card-content {
  flex-grow: 1;
}

/* ======= CONTACT SECTION ======= */
.contact-info {
  padding: var(--spacing-sm);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--spacing-sm);
}

.contact-item .icon {
  margin-right: var(--spacing-sm);
  color: var(--primary-color);
  font-size: 1.2rem;
}

.map-container {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--spacing-md);
}

.map-placeholder {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

#contactForm .field {
  margin-bottom: var(--spacing-sm);
}

#contactForm .label {
  color: var(--dark-gray);
}

#contactForm .input,
#contactForm .textarea {
  background-color: var(--light-color);
  border: 1px solid var(--light-gray);
  transition: all var(--transition-fast) ease;
}

#contactForm .input:focus,
#contactForm .textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.2);
}

/* ======= FOOTER ======= */
.footer {
  background-color: var(--dark-accent);
  color: white;
  padding: var(--spacing-xl) 0;
}

.footer .title {
  color: white;
}

.footer p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast) ease;
  text-decoration: none;
}

.footer-links a:hover {
  color: white;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links a {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast) ease;
  text-decoration: none;
  padding: 5px 10px;
  margin-right: 5px;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
  color: white;
  background-color: var(--primary-color);
}

.newsletter .input {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.newsletter .input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.newsletter .input:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ======= BACK TO TOP BUTTON ======= */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: all var(--transition-medium) ease;
  z-index: 99;
  transform: translateY(100px);
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--dark-accent);
  transform: translateY(-5px);
}

/* ======= SUCCESS PAGE ======= */
.success-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--light-color);
  padding: var(--spacing-md);
}

.success-container {
  max-width: 600px;
  text-align: center;
}

.success-icon {
  font-size: 5rem;
  color: var(--success-color);
  margin-bottom: var(--spacing-md);
}

/* ======= PRIVACY AND TERMS PAGES ======= */
.privacy-content,
.terms-content {
  padding-top: 100px;
  padding-bottom: var(--spacing-xl);
}

.privacy-content h2,
.terms-content h2 {
  color: var(--dark-accent);
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.privacy-content p,
.terms-content p {
  margin-bottom: var(--spacing-md);
}

/* ======= RESPONSIVE ADJUSTMENTS ======= */
@media (max-width: 1023px) {
  :root {
    --h1-size: 3rem;
    --h2-size: 2.4rem;
    --h3-size: 2rem;
    --h4-size: 1.6rem;
  }
  
  .stat-item {
    min-width: 120px;
  }
  
  .stat-value {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  :root {
    --h1-size: 2.5rem;
    --h2-size: 2rem;
    --h3-size: 1.8rem;
    --h4-size: 1.4rem;
    --p-size: 1rem;
    
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 4rem;
  }
  
  .hero-title {
    margin-bottom: 1rem;
  }
  
  .hero .subtitle {
    margin-bottom: 1.5rem;
  }
  
  .video-placeholder {
    height: 300px;
  }
  
  .play-button {
    width: 60px;
    height: 60px;
  }
  
  .stats-container {
    flex-direction: column;
    align-items: center;
  }
  
  .stat-item {
    width: 100%;
    max-width: 250px;
    margin-bottom: var(--spacing-sm);
  }
}

@media (max-width: 576px) {
  :root {
    --h1-size: 2.2rem;
    --h2-size: 1.8rem;
    --h3-size: 1.6rem;
    --h4-size: 1.3rem;
    
    --spacing-sm: 0.8rem;
    --spacing-md: 1.2rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
  }
  
  .section {
    padding: 3rem 1rem;
  }
  
  .case-study-card .columns {
    flex-direction: column;
  }
  
  .case-study-card .image-container {
    height: 180px;
    margin-bottom: var(--spacing-sm);
  }
  
  .video-placeholder {
    height: 200px;
  }
  
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ======= ANIMATIONS ======= */
@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  animation: fadeIn var(--transition-medium) ease-in-out;
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}