/*
Theme Name:  About Sorrento
Theme URI:   https://aboutsorrento.com
Description: Tema editoriale per la Penisola Sorrentina – convertito da React/Vite
Version:     1.0.0
Author:      About Sorrento
Author URI:  https://aboutsorrento.com
Text Domain: aboutsorrento
License:     GPL-2.0-or-later
*/

/* ─────────────────────────────────────────────
   DESIGN TOKENS — Light mode (default)
   Valori verificati dalla conversione HSL→HEX
   ───────────────────────────────────────────── */
:root {
  --background:          #FAF9F5;
  --foreground:          #1A1A1A;
  --card:                #FFFFFF;
  --card-foreground:     #1A1A1A;
  --popover:             #FFFFFF;
  --popover-foreground:  #1A1A1A;
  --primary:             #006699;
  --primary-foreground:  #FFFFFF;
  --secondary:           #FF6A00;
  --secondary-foreground:#FFFFFF;
  --muted:               #6B7280;
  --muted-foreground:    #6B7280;
  --accent:              #E8F4FA;
  --accent-foreground:   #006699;
  --destructive:         #EF4444;
  --destructive-foreground:#FFFFFF;
  --border:              #E5E7EB;
  --input:               #E5E7EB;
  --ring:                #006699;
  --navy:                #001061;
  --navy-foreground:     #FFFFFF;
  --warm-bg:             #FFF7F0;
  --telegram:            #0088CC;
  --radius:              0.75rem;
}

/* Dark mode */
html.dark {
  --background:          #0F1117;
  --foreground:          #F0F4FF;
  --card:                #161B2A;
  --card-foreground:     #F0F4FF;
  --popover:             #161B2A;
  --popover-foreground:  #F0F4FF;
  --primary:             #006699;
  --primary-foreground:  #FFFFFF;
  --secondary:           #FF6A00;
  --secondary-foreground:#FFFFFF;
  --muted:               #1E2D40;
  --muted-foreground:    #8FA3BF;
  --accent:              #1A2333;
  --accent-foreground:   #AABFD9;
  --destructive:         #7F1D1D;
  --destructive-foreground:#F0F4FF;
  --border:              #1E2D40;
  --input:               #1E2D40;
  --ring:                #006699;
  --navy:                #000A3D;
  --navy-foreground:     #FFFFFF;
  --warm-bg:             #13161F;
  --telegram:            #0088CC;
}

/* ─────────────────────────────────────────────
   BASE RESET & TYPOGRAPHY
   ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--foreground);
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
  font-family: inherit;
}

/* ─────────────────────────────────────────────
   CONTAINER
   ───────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 640px)  { .container { padding-inline: 1.5rem; } }
@media (min-width: 1024px) { .container { padding-inline: 2rem; } }
