/*
Theme Name: Datodigitale Avvocato
Theme URI: http://example.com
Author: Your Name
Author URI: http://example.com
Description: A custom WordPress theme based on Bootstrap 5.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: bootstrap, responsive, custom
Text Domain: datodigitale2026
*/
@charset "UTF-8";

/*--------------------------------------------------------------
# Font & Color Variables
--------------------------------------------------------------*/
:root {
  /* Colors */
  --primary-color: #1a2a40;
  /* --primary-color: #283b6f; */
  /* Navy */
  --accent-color: #b8860b;
  /* Gold */
  --text-color: #2d3748;
  --light-bg: #f8f9fa;
  --white: #ffffff;

  /* Fonts */
  --heading-font: "Playfair Display", serif;
  --body-font: "Montserrat", sans-serif;
}

.text-muted {
  --bs-text-opacity: 1;
  color: rgb(0 0 0 / 90%) !important;
  font-weight: 400;
}

/*--------------------------------------------------------------
# General Styling
--------------------------------------------------------------*/
body {
  font-family: var(--body-font);
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--white);
}

b,
strong {
  font-weight: bold;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--heading-font);
  color: var(--primary-color);
  font-weight: 700;
}

/*--------------------------------------------------------------
# Header & Navigation
--------------------------------------------------------------*/
#site-header {
  border-bottom: 2px solid var(--accent-color);
  background-color: var(--white);
}

.navbar-brand {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--accent-color) !important;
}

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  font-family: var(--body-font);
  font-weight: 600;
  padding: 10px 25px;
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/
section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: 15px;
}

.section-title h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
footer {
  background-color: var(--primary-color);
  color: var(--white);
  /* padding: 60px 0 20px; */
}

footer a {
  color: var(--accent-color);
  text-decoration: none;
}

footer a:hover {
  color: var(--white);
}

/* custom */
.navbar-brand {
  font-family: var(--heading-font);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color) !important;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar-brand span {
  font-size: 1rem;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero-section {
  width: 100%;
  /* min-height: 500px; */
  height: 60vh;
  background-size: cover;
  background-position: center;
  position: relative;
  margin-bottom: 50px;
}

.hero-section::before {
  content: "";
  background: rgba(26, 42, 64, 0.4);
  /* Navy with opacity */
  position: absolute;
  bottom: 0;
  top: 0;
  left: 0;
  right: 0;
}

.hero-section .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--heading-font);
  font-size: 5rem;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin: 0;
  letter-spacing: -1px;
}

.lorenzo_img {
  min-height: auto;
  max-height: 68vh;
  background-size: cover;
  background-position: center;
  background-image: url("/wp-content/uploads/2026/02/Lorenzo.jpeg");
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-section {
    height: auto;
    min-height: 24vh;
  }

  .lorenzo_img {
    min-height: 80vh;
    max-height: unset;
  }
}

/*--------------------------------------------------------------
# Activity Areas
--------------------------------------------------------------*/
.activity-card {
  transition:
    transform 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.activity-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
  border-color: var(--accent-color);
}

.activity-card h4 a {
  color: var(--primary-color) !important;
  transition: color 0.3s ease;
}

.activity-card h4 a:hover {
  color: var(--accent-color) !important;
}

.activity-card .btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.activity-card .btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

.activity-img-container {
  height: 220px; /* Fixed height for uniformity */
  width: 100%;
  max-width: 532px;
  margin-bottom: 20px;
  border-radius: 5px;
  overflow: hidden;
}

.activity-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image covers the area without distortion */
  object-position: center;
}

/*--------------------------------------------------------------
# Cookie Consent
--------------------------------------------------------------*/
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  background-color: var(--primary-color);
  color: var(--white);
  padding: 20px;
  z-index: 2147483647; /* Max Z-Index to ensure it's on top of everything */
  display: none; /* Hidden by default, shown by JS */
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-banner p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
}

.cookie-banner .btn-accept {
  background-color: var(--accent-color);
  color: var(--white);
  border: none;
  padding: 8px 20px;
  cursor: pointer;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  transition: background 0.3s;
}

.cookie-banner .btn-accept:hover {
  background-color: #fff;
  color: var(--primary-color);
}

.google-maps-placeholder {
  width: 100%;
  height: 250px;
  background-color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  border: 1px solid #ddd;
}

.google-maps-placeholder p {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: 500;
}

/* MENU */
.dropdown-item {
  white-space: wrap;
}
